Foxit Developer Blog

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

    Foxit SDK .NET

    How to solve Framework/DLL compatibility error

    The most common error with Foxit PDF Generator or Merger .NET SDK is that the project .NET Framework does not match with the .NET correct Generator or Merger .NET SDK DLL. Solution: Set your project to the .NET SDK DLL you are using, or use the correct .NET SDK for your project (i.e 2.0 .NET [...]

    Read Article
    Foxit PDF SDK 5.3

    How to fix semantic issue : no matching function for call to ‘FSPDF_Doc_CountPages’

    To fix this issue, you must change your simulator to a device that is ARMv6, ARMv7, or ARMv7s. Note: Foxit PDF SDK 4.1 does not support ARM64 at this time. Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit PDF SDK 5.3 or older, please refer [...]

    Read Article
    Foxit PDF SDK 5.3

    How to fix the FSCRT_ERRCODE_INVALIDMODULE error

    To fix the FSCRT_ERRCODE_INVALIDMODULE error, check if you are using the latest evaluation of Foxit PDF SDK. Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit PDF SDK 5.3 or older, please refer to your download package documents for Developer Guide and API Reference. Get a [...]

    Read Article
    Foxit PDF SDK 5.3

    How to fix object destroy item bug?

    To fix the bug when you destroy an item, follow these steps: Locate the file PDFPagerAdapter.java Locate “if (viewMap.containsKey(container))” and change it to “if (viewMap.containsKey(position))” Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit PDF SDK 5.3 or older, please refer to your download package documents [...]

    Read Article
    Foxit PDF SDK 5.3

    How to modify or add additional functionality/methods to the Android C API demo?

    Follow the steps to add new functionality to your Android C API demo for Foxit PDF SDK: Go to “samplesViewerDemojni” and review how the implementation on how some of the API are already done. Tip: Look for functions that have similar parameters and use it has your template for writing your own. Create a new [...]

    Read Article
    Foxit MobilePDF SDK
    Foxit PDF SDK 5.3
    Foxit Quick PDF Library

    How to make rendering faster?

    The following suggestion can help improving rendering speed of your viewer: Render only part of the PDF page Render at lower quality. Reduce the width and height and scale it to fit the size needed. Some PDF page requires a lot of time because of its complexity. Recreate the PDF. Note: This article refers to [...]

    Read Article
    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