C# import of Adobe Illustrator (.AI) files render to Bitmap?

BerggreenDK picture BerggreenDK · Apr 26, 2011 · Viewed 8.6k times · Source

Anyone knows how to load a .AI file (Adobe Illustrator) and then rasterize/render the vectors into a Bitmap so I could generate eg. a JPG or PNG from it?

I would like to produce thumbnails + render the big version with transparent background in PNG if possible.

Ofcause its "possible" if you know the specs of the .AI, but has anyone any knowledge or code to share for a start? or perhaps just a link to some components?

C# .NET please :o)

Code is most interesting as I know nothing about reading vector points and drawing splines.

Answer

margnus1 picture margnus1 · Apr 26, 2011

Well, if Gregory is right that ai files are pdf-compatible, and you are okay with using GPL code, there is a project called GhostscriptSharp on github that is a .NET interface to the Ghostscript engine that can render PDF.