Foxit Developer Blog

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

    Foxit PDF SDK for Web

    How to Set Annotation Flags for Different Users with Foxit PDF SDK for Web

    This article aims to demonstrate how to set annotation flags for different users with our Web SDK. Follow the two steps below to perform the function. We use Foxit PDF SDK to do it and you can get a free 30 day trial here. Platform: Web Programming Language: JavaScript License Key Requirement: Standard SDK Version: Foxit PDF SDK 8.3 Step 1: Set annotation flags to lock annotations of other users at the application level:

    Read Article
    Tech

    How to Perform Full-Text Search in PDF using JavaScript

    Sometimes, Ctrl-F just doesn’t cut it. If you’re working with a large collection of documents, trying to find specific phrases or locate sources in metadata can be a nightmare. Thankfully, full-text search is a feature that scans an entire collection and provides detailed results. If you’re working with PDFs, you can use the Foxit PDF [...]

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

    How to Create a Table of Contents Based on Bookmark Information in PDFs

    This article contains sample code that enables you to create a table of contents based on bookmark Information in PDFs. We use Foxit PDF SDK to do it and you can get a free 30 day trial here. Platform: Windows, Mac, Linux Programming Language: C++, Java, C#, Objective-C, C License Key requirement: StandardC++ void AddTOCToPDF(PDFDoc doc) { //Set the table of contents configuration. Int32Array intarray; int depth = doc.GetBookmarkLevelDepth(); if (depth > 0) { for (int i = 1; i <= depth; i++) { intarray.Add(i); } } WString title = L""; TableOfContentsConfig toc_config = TableOfContentsConfig(title, intarray, true, false); //Add the table of contents doc.AddTableOfContents(toc_config); }

    Read Article
    Tech

    How to Redact Data from PDFs in Java

    Sharing information among various stakeholders is obviously important. And when the information is digital, it’s important to preserve its content and format. PDF files usually meet this need perfectly. However, it’s not an uncommon scenario to need to share a PDF that happens to include some personal information. Obviously, not everyone who needs that file [...]

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

    How to Create your own JavaScript for Annotations

    This article demonstrates how to use JavaScript for annotations so you can get the most out of Foxit PDF SDK. Read on below for the 4 simple steps to get started. Platform: Windows, Mac, Linux Programming Language: C++, Java, C#, Objective-C, C License Key requirement: Standard SDK Version: Foxit PDF SDK 8.3 Step 1 LaunchURL: We will start by adding a link annotation to trigger the “launchURL” JavaScript to launch “https://webviewer-demo.foxit.com”

    Read Article
    Tech

    Using the Foxit SDK to Edit Text in a PDF

    PDF files are handy when a document needs to be shared but protected from further edits. However, there are some circumstances where you might need to add or change information in a PDF anyway, for example, adding a signature to a contract. Because the very nature of PDFs is to protect the document from edits, [...]

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

    How to Create your own JavaScript for PDF Forms

    JavaScript is crucial to form workflows for companies who want to boast the latest and greatest in document technologies. The article below demonstrates how to add JavaScript to PDF forms with Foxit PDF SDK. Platform: Windows, Mac, Linux Programming Language: C++, Java, C#, Objective-C, C License Key requirement: Standard SDK Version: Foxit PDF SDK 8.3 Below we will detail six simple demos. Step 1 AFSimple_Calculate: We will add two text field whose values will be used to add together. The third text field will contain the value of the sum of the first two form fields.

    Read Article
    News
    Tech

    Foxit Announces Launch of PDF SDK for Desktop 10.1.0 and PDF Conversion SDK 2.1.0

    New Software Development Kits (SDKs) Save Developers Time, Reduces Frustration, and Enables Creation of More Efficient, Compliant, and Tailored PDF Solutions to Meet the Demands of Modern Applications. FREMONT, Calif. (February 19, 2025) – Foxit, a leading provider of innovative PDF and eSignature products and services, helping knowledge workers to increase their productivity and do [...]

    Read Article
    Tech

    Manipulate PDFs in your Team with Real-Time Collaboration!

    We’re delighted to announce a brand new feature to our Web-based JavaScript PDF viewer; real-time collaboration! This is a sample application using our viewer that allows users to connect multiple clients through a server, webservice or network. Enabling multiple people to work on the same PDF is more important than ever before. Not only because [...]

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Advanced Forms

    Foxit’s advanced forms consist of Ultraforms that render a 2D barcode inside a PDF fillable form. It does this using JavaScript libraries which makes it unique relative to alternative 2D barcode solutions on the market. By comparison, other providers render a 2D barcode inside a PDF fillable form by using the PDF reader application to produce the 2D barcode. This means that they can only render a 2D barcode in a PDF form so long as the form user is using their product. Ultraforms will render a 2D barcode inside a PDF form using any PDF reader product, so long as it has implemented support for the JavaScript specification for PDF. Foxit PDF SDK for Web now adds a fantastic addition because it means form users don’t have to install a PDF reader on their device anymore.

    Read Article