Foxit Developer Blog

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

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

    How to fix the blank “FoxitHelpLibForNet.##.##.chm” help file?

    When your Foxit Merger for .NET SDK Getting Started Library don’t show any content, do the steps below to fix this error: Right click on the “FoxitHelpLibForNet.##.##.chm” file and select properties Click on “Unblock”

    Read Article
    Foxit PDF SDK 5.3

    Foxit PDF SDK 4.x/5.x module breakdown

    Break down of the Module package. Note: Please read the list like this “Module package – Module included.” Standard – Renderer, Image (write for Bitmap only), PDF Base, PDF Document(Read), PDF Async(read), PDF Page (Read), PDF Object (Read), PDFTextPage(Read), PDF Reflow(Read), App, Base Edit – Image(Read), PDF Document(Write), PDF Page(Write), PDF Object(Write), PDF Page Object(Write) [...]

    Read Article
    Foxit PDF SDK Activex

    How to use Foxit PDF SDK ActiveX in C# or VB?

    Follow the steps outlined to use Foxit PDF SDK ActiveX in C# or Visual Basic: Open Visual Studio 2010/2013 Select File -> New ->Project -> Visual C# or Visual Basic -> Windows -> Windows Forms Application -> OK Select Tools -> Choose Toolbox Items-> COM Components Check “FoxitPDFSDK Pro Control” -> OK Note: If “FoxitPDF Pro [...]

    Read Article
    Foxit PDF SDK Activex

    List of the common problems with licensing and getting a watermark.

    Sometimes even after licensing Foxit PDF SDK ActiveX you can still get a watermark on your PDF files. The most common problems causing that are described below: License is not applied correctly. Please call UnlockActiveX after the ActiveX component initialized. Please also check if there is spacing in the unlock code that shouldn’t be there. axFoxitPDFSDK1.UnLockActiveX("XXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); [...]

    Read Article
    Foxit PDF SDK Activex

    How to use the OnShowSavePrompt?

    To use the OnShowSavePrompt function in Foxit PDF SDK ActiveX, follow the guidelines below: Setting bShow=false will disable the prompt when closing the ActiveX. Setting the following will control how the PDF is handled without the prompt. // nResult=0 is not to save. // nResult=1 is to save. // nResult=6 no setting has been set. private void [...]

    Read Article
    Foxit PDF SDK 5.3

    How to render only a section of a PDF?

    It is possible to render only a section of a PDF with the functionality provided in Foxit PDF SDK. The steps to do that are outlined below: Foxit PDF SDK Change the parameters of FSPDF_Page_GetMatrix before rendering Go to “samplessimple_samplecomm_srcfgsdk_common.cpp” of the evaluation package and locate the call for FSPDF_Page_GetMatrix Change the parameters. For example, [...]

    Read Article