Foxit Quick PDF Library

Control the compression of JPG images during conversion to PDF

by Conor | February 28, 2013
The quality level of JPG images during conversion can be controlled using the SetJPEGQuality function. A number between 1 and 100 indicating the quality of the image. The higher the value, the better the image quality, but the larger the file size. The lower the value, the smaller the resulting file size, but at the […]
Keep reading Keep reading

Adobe Reader Extensions / Usage Rights

by Qiming Wang | February 21, 2013
Adobe LiveCycle Reader Extensions (also known as Adobe Reader Extensions or Reader Extensions or Usage Rights) enables PDF forms designers, using either Adobe LiveCycle or Adobe Acrobat, to unlock hidden features in Adobe Reader such as the ability to save PDF forms or digitally sign PDFs. The ability to extend Adobe Reader this way is […]
Keep reading Keep reading

Programmatically insert pages from one PDF file to another PDF file

by Conor | December 10, 2012
There are two different ways that this can be done depending on your exact requirements. I’ve included details of two different scenarios below as well as some sample code. Scenario #1: You want to extract various pages from an existing document (original.pdf) and create a new document (extracted_pages.pdf) that only consists of the extracted pages. […]
Keep reading Keep reading

Render a PDF as an image with an asymmetrical DPI

by Conor | December 10, 2012
The current rendering engine is set up to use the same DPI setting for both the horizontal and vertical axis. So it isn’t possible to render an image with an asymmetrical DPI, however, it is possible to get the same effect though by stretching the page. Here’s some pseudo code that shows how to do […]
Keep reading Keep reading

How do I programmatically create thumbnails for pages in PDFs?

by Conor | December 10, 2012
Creating thumbnails for PDFs using Foxit Quick PDF Library is simple. Simply use the functions listed in the below order: RenderPageToString AddImageFromString SetPageThumbnail Here is some C# sample code demonstrating how this works: QP.LoadFromFile("original.pdf"); byte[] ImageContent = QP.RenderPageToString(96, 1, 0); int ImageID = QP.AddImageFromString(ImageContent, 1); QP.SelectImage(ImageID); QP.SelectPage(1); QP.SetPageThumbnail(); QP.SaveToFile("original_with_thumbnail.pdf"); In this sample I’ve created the […]
Keep reading Keep reading

Code to check PDFs for security settings

by Conor | December 10, 2012
The AnalyseFile function can be used to check a PDF for security settings. If the PDF has an open password then this password will need to be passed to the AnalyseFile function before you can check the permissions for the PDF. private void btnAnalyseFile_Click(object sender, EventArgs e) { string[] item1 = { "Filename", "Filesize", "Author", […]
Keep reading Keep reading

Programmatically set initial view zoom magnification using Foxit Quick PDF Library

by Conor | December 10, 2012
The PDF specification doesn’t have a simple document setting that specifies the initial page number and zoom magnification. However it is possible to add an “open action” to the document that specifies the action to perform when the document is opened. Foxit Quick PDF Library’s SetOpenActionDestination function allows you to set the initial page and […]
Keep reading Keep reading

Generate PDF report from MS Access application coded in Visual Basic

by Conor | December 10, 2012
You can use Foxit Quick PDF Library with Microsoft Access and Visual Basic using either the DLL or ActiveX editions. There is also a knowledge base article which shows you how to generate a PDF report from a Microsoft Access database using C# and Foxit Quick PDF Library. Included below is a sample demonstrating how […]
Keep reading Keep reading

Display watermark only when a PDF is printed

by Conor | December 10, 2012
With the use of Optional Content Groups (OCGs), aka Layers in Acrobat lingo, it is possible to make specific content only appear when the PDF is viewed on screen or printed. The sample code demonstrates how this can be done by showing you three different examples of text drawn on a page. // Draw text […]
Keep reading Keep reading
Used everywhere

Trusted by