Is convert special page size PDF to image possible?

back to home  >  Tech FAQ  >  Convert specific page size PDF to image in C#

Question:

Hi,support, I have many PDF documents with different page layout, such as A4, A3, B4, Executive, etc. I want to convert these PDF to separated image files in my .net project. So does your .net PDF to image converter be able to turn multiple page size PDF documents to multiple pager size image files?

---- Lambert

Answer:

Hi, Lambert.

We are glad to tell you, pqScan .net PDF to image SDK can convert any type of page layout PDF document to image files, which including jpeg/jpg, png, tiff/tif, bmp and gif.

The .net PDF converter is able to convert all kinds of page size PDF document to images, such as commonly used A4, A3, Letter, or more special Foolscap, RoyalQuarto mode. Besides, the landscape and portrait page layout mode are both supported. Our PDF converting library will render the output image graphics depending on the original PDF page content and size. So the PDF page is large, the image graphs is large, too. And if you don't want to keep the original PDF page size into the image, you can also call the "ToImage(int pageIndex, int width, int height)" method to change to output image with customized size.

Here we provide some C# sample code to convert PDF with specific page size to images. You can copy the code to your PDF converting method in your .net application.

PDFDocument doc = new PDFDocument();
doc.LoadPDF("special-page-size.pdf");

Bitmap bmp = doc.ToImage(0);
bmp.Save("output.jpg");

Hope the C# code can be helpful.

---- pqScan Support Team

Online Demo Download Trial Problem with converting PDF to image in Mac. How to use .NET PDF converter in Mono? Can .net PDF to image converter integrate to Windows7 or Windows8? Can I Get a Compression Jpeg Image from PDF ? How to convert PDF to high quality image in C#? How to get transparent background png from PDF document in C#? Support Converting specific pages from PDF to images in C# .NET ? Converting specific languagePDF to images is possible? Is convert special page size PDF to image possible? Converting specific style PDF to images is allowed?