Developer Posts

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

Programmatically remove a password from a PDF

by Conor | December 5, 2012
The ease with which you can remove a password from a PDF document depends on whether you have the user password. If the user password is known then removing security from a PDF is as simple as loading a document using the LoadFromFile function and at the same time including the user password in the […]
Keep reading Keep reading

Programmatically delete all form fields in a PDF

by Conor | October 11, 2012
All form fields in a PDF can be deleted with the assistance of the DeleteFormField function in Foxit Quick PDF Library. Some JScript sample code that demonstrates how to do this is shown below: DPL.LoadFromFile("pdf_form.pdf"); TotalFormFields = DPL.FormFieldCount() While (TotalFormFields > 0) { DPL.DeleteFormField(TotalFormFields); TotalFormfields = TotalFormFields - 1; } DPL.SaveToFile("no_form_fields.pdf"); This article refers to […]
Keep reading Keep reading

Rename an existing form field programmatically

by Conor | September 14, 2012
It is possible to rename a form field programmatically using the SetFormFieldChildTitle function in Foxit Quick PDF Library. Say for example that you have a parent field called Details, with child fields Name and Address, the full field names will be: Details.Name Details.Address If you wanted to change Details.Name to Details.FirstName you can use: int […]
Keep reading Keep reading

Add a barcode to a PDF

by Qiming Wang | September 14, 2012
Foxit Quick PDF Library includes support for a variety of different barcodes, including: Below is some C# sample code that demonstrates how to use the DrawBarcode function to draw some of the barcodes listed above. The last three barcode types listed above have their own functions. /* Draw a variety of different barcodes on a […]
Keep reading Keep reading

Extract fonts from a PDF programmatically

by Conor | September 14, 2012
Foxit Quick PDF Library lets you extract embedded TrueType fonts from PDF files to a font file on the local disk. All other font types and subsetted TrueType fonts are not supported by the SaveFontToFile function. Here is some C# code that demonstrates how to extract the embedded fonts. // Load the PDF DPL.LoadFromFile("fonts.pdf", ""); […]
Keep reading Keep reading

Get list of available paper trays for printer

by Conor | September 14, 2012
In order to get a list of the available paper trays for a printer you need to use the GetPrinterBins function in Foxit Quick PDF Library. This function will return a list of the available paper trays and associated values. You can then use the returned value with the SetupCustomPrinter function to print your documents […]
Keep reading Keep reading
Used everywhere

Trusted by