Developer Posts

Foxit Quick PDF Library and Mac Xcode Projects

by Conor | April 30, 2013
Several sample projects are provided with the download files for the Dylib edition of Foxit Quick PDF Library for Mac OS X. We recommend that you start your evaluation of Foxit Quick PDF Library on Mac using these sample projects as they provide a useful guide for how to initialise the library inside an Xcode project […]
Keep reading Keep reading

Programmatically render PDF files in Windows Forms with .NET and C#

by Conor | April 23, 2013
Foxit Quick PDF Library can render a PDF as an image so that you can place it in your .NET application. Sample code using C# is provided below. private void Form1_Load(object sender, EventArgs e) { // Remember to initialize the library and call the // UnlockKey function with your license key before // calling the following […]
Keep reading Keep reading

Add visual digital signature to a PDF programmatically

by Qiming Wang | March 19, 2013
Foxit Quick PDF Library lets you add visual digital signatures to PDF files programmatically with a few simple lines of code. It lets you sign existing signature form fields or will automatically create a signature form field with the name that you specify as part of the signing process. Here is some C# and Delphi sample […]
Keep reading Keep reading

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
Used everywhere

Trusted by