Foxit Developer Blog

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

    Foxit MobilePDF SDK
    Foxit PDF SDK
    Foxit PDF SDK 5.3
    Foxit PDF SDK for Web
    Foxit PDF SDK for Web 6.2
    Foxit Premium PDFium
    Foxit WebPDF Viewer - Discontinued

    How to request an SDK for a different platform?

    Learn how to request an SDK library for a different platform by following the instructions, outlined in this article.

    Read Article
    Foxit PDF SDK 5.3

    How to provide Foxit with the necessary data for printing related problems?

    Follow these steps to provide Foxit with the necessary data for printing related problems: Open Devices and Printers by clicking the Start button , and then, on the Start menu, clicking Devices and Printers. Right-click a printer, and then click Printer properties. On the General tab, click Print Test Page. Scan print info and send [...]

    Read Article
    Foxit PDF SDK 5.3

    How to display fonts correctly using Foxit PDF SDK?

    To display the fonts correctly, you must use the FSCRT_Library_AddFontFile or use FSCRT_Library_SetFontMapperHandler. Here is how to use FSCRT_Library_SetFontMapperHandler in C++. declare the following structure: static FSCRT_FONTMAPPERHANDLER ExternalFontMapper; static string FallbackFontPath; static FS_RESULT MapExternalFont(FS_LPVOID clientData, FS_LPCSTR fontName, FS_DWORD fontStyles, FS_INT32 weight, FS_INT32 charset, FSCRT_FILE *fontFile, FS_INT32 *faceIndex){ //This call back will trigger when an external [...]

    Read Article
    Foxit PDF SDK 5.3

    How to render only a section of a PDF on Foxit PDF SDK?

    Follow the steps outlined below to render a selection of a PDF on Foxit PDF SDK: Change the parameters of FSPDF_Page_GetMatrix before rendering Go to “samplessimple_samplecomm_srcfgsdk_common.cpp” and locate the call for FSPDF_Page_GetMatrix Change the parameters. For example, “FSPDF_Page_GetMatrix(page, -200, -100, (FS_INT32)width*1.5, (FS_INT32)height*3, 0, &mt)” Run the demo at “simple_samplepdf2img” and look at the output to [...]

    Read Article
    Foxit PDF SDK 5.3

    How to fix “error C3861: ‘InitializeCriticalSectionEx’:identifier not found” or “error C3861: ‘FSCRT_Renderer_CreateOnWindowsDC’: identifier not found”

    To fix these errors in Foxit PDF SDK, follow the steps below: In Visual Studio’s “Solution Explorer” right click on the project with the error and select properties Select Configuration Properties ->General Set “Platform Toolset” to “Visual Studio 2010 (v100)” Note: This article refers to a deprecated version of a Foxit Product. If you are [...]

    Read Article
    Foxit PDF SDK 5.3

    How to read outlines with Foxit PDF SDK

    Outline and Bookmarks are the same in PDF. Please see the header file fpdf_document_r.h and locate the method starting with FSPDF_Bookmark_XXX. Function with the naming convention FSPDF_Bookmark_XXX are the function that will allow user to extract bookmark information. Note: This article refers to a deprecated version of a Foxit Product. If you are still using [...]

    Read Article
    Foxit PDF SDK Activex

    Can Foxit PDF SDK ActiveX work in a 64-bit application/program?

    The 64-bit version of Foxit PDF SDK ActiveX is located in the bin folder with the 32-bit version, but includes x64 in the filename.

    Read Article
    Foxit PDF SDK Activex

    How to use Foxit PDF SDK ActiveX with Visual Basic

    Basically, you have two options to use Foxit PDF SDK ActiveX component with Visual Basic. Both are described above: Option A: Open Excel or Access Select DEVELOPER->Visual BasicNote: If you do not have the Developer tab. Go to File->Option->Customize Ribbon-> Check the Developer tab to add it In the Microsoft Visual Basic for applications, select [...]

    Read Article
    Foxit PDF SDK Activex

    How to remove the Foxit PDF SDK ActiveX Professional header?

    Calling the function ShowTitleBar(false) will remove the header panel that appears above the toolbar on the Foxit PDF SDK ActiveX component. ShowTitleBar() Description: Show or hide the title bar. Prototype: void ShowTitleBar(BOOL bShow) Parameters: bShow: A flag specifying specify whether to show the title bar. TRUE - Show the title bar. FALSE - Hide the title bar. [...]

    Read Article
    Foxit PDF SDK 5.3

    Can I extract text from PDF files using Foxit PDF SDK?

    Yes. Text extraction from a PDF can be done by calling the FSPDF_TextPage_ExportToFile function using C++. Download Foxit PDF SDK 4.1 and get the demo at: samplessimple_samplepdf2textpdf2text.cpp FS_RESULT FSPDF_TextPage_ExportToFile(FSPD_TEXTPAGE textPage, FSCRT_FILE file) Parameters: textPage - Handle to FSPD_TEXTPAGE object returned by function PSPDF_TextPage_Load file - Handle to a FSCRT_FILE object which can be a file object or [...]

    Read Article