Foxit Quick PDF Library

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

Merge PDF files together programmatically

by Conor | September 14, 2012
Foxit Quick PDF Library supports the merging of two or more PDF documents into one PDF document. The primary functions available for this task are MergeDocument, MergeFileList and MergeFileListFast. The function that you use for merging will depend on what your exact requirements are. Merge a list of PDF files If you want to merge […]
Keep reading Keep reading

Create a multi-page PDF from a multi-page TIFF programmatically

by Conor | September 14, 2012
Using Foxit Quick PDF Library you can programmatically convert a multi-page TIFF image to a multi-page PDF. Here is some C# sample code that shows you how it’s done. The size of the image drawn onto the PDF is determined by the DPI value of the image (if present). The ImageHorizontalResolution and ImageVerticalResolution functions return […]
Keep reading Keep reading

Convert an image to PDF programmatically

by Conor | September 14, 2012
Converting an image to PDF is simple using Foxit Quick PDF Library. The key functions involved are AddImageFromFile and DrawImage. The size of the image drawn onto the PDF is determined by the DPI value of the image (if present). The ImageHorizontalResolution and ImageVerticalResolution functions return the necessary DPI information. PNG and GIF image files do not […]
Keep reading Keep reading
Used everywhere

Trusted by