Foxit Developer Blog

    Insights, tutorials, and updates from the Foxit PDF SDK engineering team.

    Foxit Quick PDF Library

    Ambiguity between class ‘DebenuPDFLibraryAX1014.PDFLibrary’ and interface ‘DebenuPDFLibraryAX1014.PDFLibrary’

    When using the ActiveX edition of Foxit Quick PDF Library in Visual Studio it is possible to come across this error message: Ambiguity between class ‘DebenuPDFLibraryAX1014.PDFLibrary’ and interface ‘DebenuPDFLibraryAX1014.PDFLibrary’ As the error message suggests Visual Studio is confused because it has found two references to “DebenuPDFLibraryAX1014.PDFLibrary”. One is coming from the Foxit Quick PDF Library [...]

    Read Article
    Foxit Quick PDF Library

    Error message: “XXXX was compiled with a different version of/from XXXX”

    This general form of message in Delphi indicates a referencing error. In essence, it is produced when Delphi settings on the IDE or Project level contain references to multiple versions of the same library. Specific examples include: “Unit QuickPDF0724 was compiled with a different version of Printers.TPrinter” “Unit QuickPDFExtra was compiled with a different version [...]

    Read Article
    Foxit Quick PDF Library

    FireMonkey Compatibility

    FireMonkey is a modern cross-platform GUI framework developed by Embarcadero Technologies for Delphi and C++ Builder. The Delphi edition of Foxit Quick PDF Library is fully compatible with FireMonkey applications for Windows and Mac development through the Delphi IDE. Foxit Quick PDF Library does not currently support iOS and Android. This article refers to a deprecated [...]

    Read Article
    Foxit Quick PDF Library

    Releasing buffer memory when using DLL or LIB edition

    With a DLL there are a few different ways of handling memory. Many libraries ask the user to create the buffer but with the DLL and LIB editions of Foxit Quick PDF Library the library itself maintains the buffer. So if you call a certain function that returns a string then that memory will be kept [...]

    Read Article
    Foxit Quick PDF Library

    How to increase performance for programs using Foxit Quick PDF Library

    The performance of PDF generation depends on both the volume of data being processed (i.e., source input) and the specific code used. Using Foxit Quick PDF Library, PDF generation is done entirely in memory. This means that, when working with longer files, performance can often be increased by breaking up the generation process. This involves saving [...]

    Read Article
    Foxit Quick PDF Library

    How to Insert a Table into PDF

    Creating tables with text formatted using standard HTML tags is straightforward using Foxit Quick PDF Library. After positioning and creating the table, set the default HTML styles for the specific HTML tags to be used for formatting, then the content can added using the SetTableCellContent function. Some sample Delphi code for creating and formatting a PDF [...]

    Read Article
    Foxit Quick PDF Library

    Generate an invoice programmatically as a PDF

    Generating PDF files is easy using Foxit Quick PDF Library. In this example we will demonstrate how to programmatically create an invoice as a PDF. In this example we’ll use a range of functions to create the content for the page. The company logo is created using paths, but that section of code could be [...]

    Read Article
    Foxit Quick PDF Library

    How to render PDF page to device context using Delphi

    In this post I would like to show you how easy it is to render a page from a PDF onto a graphic surface using Delphi and Foxit Quick PDF Library. The graphic surface in the Windows operating system is called a Device Context handle (DC). Foxit Quick PDF Library contains two different functions that can help [...]

    Read Article
    Foxit Quick PDF Library

    Add images to PDF programmatically

    Adding images to PDF files is simple using the PDF API available with Foxit Quick PDF Library.

    Read Article
    Foxit Quick PDF Library

    What happens if Foxit Quick PDF Library is not unlocked correctly?

    Atempting to use Foxit Quick PDF Library without a license key, with an expired trial license key or with an invalid license key, will result in the follow functions being being blocked: DAOpenFile GetInformation LoadFromStream LoadFromString MergeDocument NewDocument SaveToFile SaveToString SecurityInfo EncryptFile DecryptFile AnalyseFile MergeFiles MergeStreams MergeFileListFast ExtractFilePageContent ExtractFilePageText ExtractFilePages GetFileMetadata Check the result of the [...]

    Read Article