September 2012

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

Can I embed a file in a PDF using Foxit Quick PDF Library?

by Conor | September 14, 2012
Yes, you can easily embed a file in a PDF using the EmbedFile function. This will embed the file (any file type) in a PDF document and then make that file accessible from within the PDF via the attachment panel. This C# sample code demonstrates how easy it is to embed a file within a […]
Keep reading Keep reading
Used everywhere

Trusted by