Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Support for PDF to TIFF conversion?

Question

Does this PDF library support the conversion of PDF files to TIFF images? if so, do you have any sample code for this task?

Answer

Converting a PDF file to a TIFF image can be easily done using the RenderPageToFile function. I've included some basic sample code below that demonstrates just how simple it is:

// Load the PDF that you want to convert

QP.LoadFromFile("source.pdf"); 

// Render the specified page to a TIFF image

QP.RenderPageToFile(96, 1, 7, "image.tiff");

Yep, like I said, pretty simple. If you wanted to convert each page in the PDF to a TIFF image then you would simply use the PageCount function to get the total number of pages in the PDF and then you would loop through each page rendering it to a TIFF image.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum