Foxit Quick PDF Library

    Explore historical articles, tutorials, and technical guides for Foxit Quick PDF Library. Note: This product has been discontinued and integrated into our latest SDK tools.

    Foxit Quick PDF Library

    Programmatically delete all form fields in a PDF

    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 [...]

    Read Article
    Foxit Quick PDF Library

    Rename an existing form field programmatically

    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 [...]

    Read Article
    Foxit Quick PDF Library

    Add a barcode to a PDF

    Adding a barcode to a PDF is simple using the Draw Barcode function available with Foxit Quick PDF Library.

    Read Article
    Foxit Quick PDF Library

    Extract fonts from a PDF programmatically

    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", ""); [...]

    Read Article
    Foxit Quick PDF Library

    Get list of available paper trays for printer

    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 [...]

    Read Article
    Foxit Quick PDF Library

    Merge PDF files together programmatically

    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 [...]

    Read Article
    Foxit Quick PDF Library

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

    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 [...]

    Read Article
    Foxit Quick PDF Library

    Convert an image to PDF programmatically

    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 [...]

    Read Article
    Foxit Quick PDF Library

    Can I use Foxit Quick PDF Library with Microsoft Access to generate PDF reports?

    Yes, you can use Foxit Quick PDF Library to generate PDF files from Microsoft Access. Below you can find sample C# code which demonstrates how this can be done. The sample demonstrates how to generate a PDF using data obtained from a Microsoft Access database. The C# sample project for this code can be downloaded [...]

    Read Article
    Foxit Quick PDF Library

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

    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 [...]

    Read Article