Can iTextSharp rasterize/export to JPEG or other image format?
Asked Answered
L

1

6

I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF.

I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud.

I have yet to find a library that will either work in Medium trust, or in the case of ABC PDF, which works great locally, wont load in Mosso. Maybe Mosso has a custom trust level?

I know that iTextSharp works on Mosso, but I haven't been able to figure how to "screenshot" a single page of a PDF, or export a page to JPEG. Is there anyone out there who has done this before?

Langsdon answered 26/4, 2010 at 16:0 Comment(0)
R
4

No, iTextSharp does not support rendering PDF to images, knows a lot about PDF internals but anything about presentation.

There are as well many commercial products that can render PDF to several image formats. ABC PDF seems good... but maybe you can find something that works in medium trust.

Other solutions I can think like using Ghostscript or printing with Virtual Image Driver are not available in that environment.

Ricoricochet answered 20/5, 2010 at 18:28 Comment(1)
ABCpdf works in medium trust provided it is installed using the installer.Grindlay

© 2022 - 2024 — McMap. All rights reserved.