Insights, tutorials, and updates from the Foxit PDF SDK engineering team.
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.
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 [...]
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.
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.
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);
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 [...]
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:
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 [...]
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); }
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 [...]