Foxit Developer Blog

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

    Tech

    How to Create and Use PDF Templates with Foxit PDF SDK

    PDF templates are a vital tool for many modern businesses. They serve as a standardized canvas that organizations can use to easily create, read, and update content for internal and external stakeholders. Before PDF documents were in common use, document formatting was a struggle for individuals and organizations. Varying document software meant there was no [...]

    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
    Tech

    How to Programmatically Redact Data from PDFs

    When your web application needs to allow users to download reports, charts, or invoices, PDFs are a great option. However, there are times when you must remove personal information from the PDFs you generate. For example, an administrator in your application may be permitted to view all user data, but other users may be restricted [...]

    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
    Tech

    How to Create and Use PDF Templates with Foxit PDF SDK for Web

    PDF templates are predefined patterns that are used to generate PDF files. PDF templates can be created and added to any platform, such as web or mobile apps, and used automatically or manually with PDF software. You can have as many PDF templates as you want, each with its own purpose. For example, if you [...]

    Read Article
    Foxit PDF SDK for iOS

    Create a PDF Library app in iOS with Swift

    This article is the first in a series on how to integrate Foxit PDF SDK for iOS to develop your own in-app PDF viewer. This article refers to the integration with Swift.

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Search

    With PDF SDK, text search enables you to search a string across thousands of documents since the full content (including split text, combined words, metadata, annotations and so on) is indexed. This means no more sifting through endless reams of paper to find that all important contract or invoice again. Text search takes seconds to execute and your query can be as simple or complex as needs be. Our search functionality in the Web SDK is more UI based. To use more text search functionality than shown in the sample below, you must use annotations as per the developer guide.

    Read Article