We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert whole pdf file to on Image

Is there any way could convert whole pdf file which has multiple pages to one image (number of page x height of page == height of the new Image)?

Sample code is needed.

Many thanks!


Thanks for your inquiry.

At the moment, you can convert multipage PDF document into single TIFF image using following code snippet:

Document doc = new Document(dataDir + "ReplaceTextAll.pdf");
// Create Resolution object
Resolution resolution = new Resolution(300, 300);
// Create TiffSettings object
TiffSettings tiffSettings = new TiffSettings()
 Compression = CompressionType.LZW,
 Depth = ColorDepth.Format1bpp
// Create TIFF device
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
// Convert a particular page and save the image to stream
tiffDevice.Process(doc, dataDir + "ReplaceTextAll.tiff"); 

However, we already have logged an investigation ticket on converting multipage PDF into single PNG image as PDFNET-43015 in our issue tracking system. We have linked the ticket ID with you post so that you will receive notification once the ticket is resolved. Please be patient and spare us little time.

We are sorry for the inconvenience.

Many thanks!