Foxit Developer Blog

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

    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
    Foxit SDK .NET

    Requirements for using Foxit PDF SDK Rasterizer for .net SDK

    To deploy your application using XCOPY, it is prerequisite to have Microsoft Visual C++ 2008 Redistributable Package for .NET 2.0/3.0/3.5 application and Microsoft Visual C++ 2010 Redistributable Package for.NET 4.0/4.5 application. To deploy the application using your own setup program, it is required to include the following redistributables (Merge modules) which need to be installed [...]

    Read Article
    Foxit SDK .NET

    How to create a new document to add a single page on Foxit Merger for .NET SDK?

    To create new documents, merge or add pages to a document, follow the steps outlined below: MergeDocument document = new MergeDocument(); PdfDocument sourcePDF = new PdfDocument( “C:\ImportPDF.pdf” ); document.Append(sourcePDF, 1, 1); Note: This can be used to split up a PDF document. You must create an additional document to append additional pages.

    Read Article
    Foxit PDF Generator for .NET SDK
    Foxit PDF Merger for .NET SDK

    How to resolve watermarks that persists after applying the license?

    After you apply your license, sometime the watermark stays on your exported documents. Follow these steps to fix that issue: 1) Get the watermark code on the top of the PDF. 2) Use the following information to find out the reason for the watermark. [X : Y : s/d Z : v2.0] X – Indicates [...]

    Read Article
    Foxit PDF Generator for .NET SDK

    How to convert a text file to PDF?

    To make text to PDF files conversion, follow the steps outlined below: Extract the text from the text file. Add the extracted text to a PDF using the TextArea class.Here is an example that adds “Hello World!” to a PDF. // Create a PDF Document Document document = new Document(); // Create a PDF Page [...]

    Read Article