Foxit Developer Blog

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

    Foxit PDF SDK for Web

    How to configure MIME types in IIS

    When using IIS to run Foxit PDF SDK for WEB, we may encounter some resource file parsing errors that lead to access failure. At this time, we need to configure the MIME type of IIS. Let’s take Windows Server 2019 for example, here are the steps: 1. Open the Microsoft IIS management console, then select [...]

    Read Article
    Foxit PDF SDK for Linux
    Foxit PDF SDK for Mac
    Foxit PDF SDK for Windows

    How to import a template-based FDF to PDF

    FDF (Forms Data Format) is a kind of file format, used for interactive form data. If these FDF data are customized into a template, and then imported into the target PDF file according to the specified content of the template.

    Read Article
    Foxit PDF SDK

    About fdf/xfdf/xml

    Foxit PDF SDK, as an outstanding document processing tool, offers users abundant functionalities and high flexibility. Among them, the FDF, XFDF, and XML file formats play crucial roles in PDF processing. This article will provide you with a detailed introduction to these file formats, their definitions, uses, and their utilization within the Foxit SDK.

    Read Article
    Foxit PDF SDK for Linux
    Foxit PDF SDK for Mac
    Foxit PDF SDK for Windows

    How to work with associated files

    AF attributes are provided from the PDF 2.0 standard. AF Attributes (Attachment File Attributes) are metadata in PDF documents that allow additional files to be attached to PDF documents, such as Word documents, Excel tables, images, audio and video files, and more.

    Read Article
    Foxit PDF Conversion SDK

    How to convert pdf2office using node.js

    Foxit PDF Conversion SDK is a flexible, high-performance library to convert PDF files to MS office suite formats while maintaining the layout and format of your original documents. From version 1.0, Foxit PDF CONVERSION SDK has added support for the Node.js programming language, which is an open-source, cross-platform, server-side JavaScript runtime environment. With this new support for Node.js, developers can now use the Foxit PDF CONVERSION SDK to build powerful conversion tools and applications using the popular programming language.

    Read Article
    Foxit PDF SDK for Linux
    Foxit PDF SDK for Mac
    Foxit PDF SDK for Windows

    How to add, delete and modify the header-footer of PDF file

    What is the header-footer of PDF documents Located at the top and bottom of the PDF page, it can display page numbers, dates, and text. How to update header-footer of PDF file Call PDFDoc:: GetEditableHeaderFooter() to get the editable header and footer object. After adjusting the header and footer content, call PDFDoc:: UpdateHeaderFooter() to update the header and footer.

    Read Article
    Foxit PDF Conversion SDK

    How to convert office 2 pdf via Conversion SDK

    Office2PDF provides three conversion interfaces: ConvertFromWord, ConvertFromExcel, ConvertFromPowerPoint.In Foxit PDF Conversion SDK, these interfaces are defined in the header file ”fs_office2pdf.h”.Take “ConvertFromWord” as an example to introduce interface parameters in Windows.(The parameters of the two interfaces “ConvertFromExcel” and “ConvertFromPowerPoint” are similar to “ConvertFromWord”.)

    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 for Web

    Foxit PDF SDK for Web: Annotations

    In Foxit PDF SDK for Web, annotations include not only regular PDF annotations but also text markup (think text highlighting, underlining, strikeout, squiggly, etc.), drawing annotations (think shapes like circle, rectangle, arrow), and other annotations, such as notes, free text, as well as standard and dynamic PDF stamping. Annotation The annotation supports three types of files to import/export data: XFDF, FDF and JSON. The following table lists what annotations currently support or not supported to import/export.

    Read Article
    Foxit PDF SDK for Web

    How to Save PDFs back to a Web Server with PDF SDK for Web

    Foxit PDF SDK for Web allows you save PDF files to a web server easily with a short code. Find out more about it here. Foxit PDF SDK for Web allows you save PDF files to a web server easily with a short code. Please add the code below to do so:var FRAGMENT_ACTION = UIExtension.UIConsts.FRAGMENT_ACTIONar FRAGMENT_ACTION = UIExtension.UIConsts.FRAGMENT_ACTION var pdfui = new PDFUI({ fragments: [{ target: 'download-file-button', action: FRAGMENT_ACTION.AFTER, template: '<xbutton icon-class="customers-save-button-icon-css-class" name="upload-to-server-button"></xbutton>', config: [{ target: 'upload-to-server-button', callback: function() { this.getPDFUI() .getPDFViewer() .then(pdfViewer => { pdfViewer.setActiveElement(null); const buffers = []; return pdfViewer.currentPDFDoc .getStream(({ arrayBuffer }) => { buffers.push(arrayBuffer); }) .then(_ => { return [buffers, pdfViewer.currentPDFDoc.getFileName()]; }); }) .then(([buffers, fileName]) => { if (!fileName || fileName.length === 0) { fileName = "unknown.pdf"; } const blob = new Blob(buffers, {type: 'application/pdf'}) console.info('start uploading', blob); // ajax upload here }); } }] }] })

    Read Article