Foxit Developer Blog

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

    Foxit PDF SDK for Web

    How to Use the Select Text Event to Activate a Browser Translation Plugin

    This article demonstrates how you can use the select text function with Foxit PDF SDK to activate a web browser translation plugin. In this example, we will use the Chrome Saladict plugin to implement a pop-up dictionary or page translator. 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 9.0 Step 1 The first step is to enable the Saladict plugin in the Chrome://extensions panel.

    Read Article
    Tech

    Let Your Clients Fill Insurance Claim Forms Online with the Foxit SDK

    Software has revolutionized the signing, storage, and manipulation of paper forms by converting a paper process into a digital one. PDFs are perhaps the most widely used format for digital versions of paper forms. Modern PDF technologies like the Foxit SDK even allow users to fill out forms online that are embedded inside PDFs, then [...]

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

    How to Identify PDFs using Layout Recognition

    The data structure parsed by Layout Recognition is a bit like a tree structure, the root node is class LRStructureElement. Generally, class LRStructureElement has many child nodes, including class LRGraphicsObjectElement, class LRContentElement or class LRStructureElement. LRContentElement may have a corresponding LRGraphicsObjectElement,, whereas LRGraphicsObjectElement generally does not contain child nodes.

    Read Article
    Tech

    How to Create your own iOS Mobile PDF Scanning Tool

    The ability to scan direct to PDF on your mobile is a function that can revolutionize your document workflows. We’ve detailed how to do this with Android here and in this article, we will be doing the same with iOS.The guide below describes how you can use Foxit PDF SDK for iOS (free 30 day trial available here) to quickly create an app with powerful scanning functionality. By taking multiple photos or by selecting multiple photos from an album, a PDF can be generated with just one click. You can use this project to integrate scanning into your own environment and make this a powerful addition to your mobile application.

    Read Article
    Foxit PDF SDK for Web

    How to Create a Custom Screenshot Tool with Foxit PDF SDK for Web

    This article will demonstrate creating a custom screenshot tool with Foxit PDF SDK for Web. You can get a free 30 day trial here. Platform: Web Programming Language: JavaScript License Key Requirement: Standard SDK Version: Foxit PDF SDK 9.0 Step 1: Create a customized screenshot image storage service to upload the snapshots. //Custom screenshot image storage service const SnapshotServer = PDFViewCtrl.SnapshotServer; const pdfui = new PDFUI({ ... viewerOptions: { snapshotServer: new SnapshotServer({ origin: location.origin, uploadSnapshotAPIPath: 'snapshot/upload', payloadFieldName: 'file', method: 'POST', render: function(resp) { return resp; } }) ... } }) var pdfviewer = await pdfui.getPDFViewer(); // Capture the picture of the specified area on the page. var imageBlob = await pdfviewer.takeSnapshot(0, 0, 0, 200, 200); // Upload images to a specified server. var uploadResult = await pdfviewer.uploadImage(imageBlob); // Capture the picture and copy it to the clipboard var copyResult = await pdfviewer.copySnapshot(uploadResult);

    Read Article
    Tech

    How to Add Digital Signatures to PDFs in a Web Application

    Everyone knows what a signature is—it’s how you sign your name at the end of an official document, typically to enter a contract. But what is a _digital_ signature? It’s a digitally generated representation of a person’s identity. This can either be through an image of a person’s actual signature, or it can be a [...]

    Read Article
    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