Insights, tutorials, and updates from the Foxit PDF SDK engineering team.
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:
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); }
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”
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.
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.
How to trigger JavaScript //JsActionCallback is the implementation class of ActionCallback. JsActionCallback* action_handler = new JsActionCallback(); Library::SetActionCallback(action_handler); Form form(pdf_doc); PDFPage pdf_page = pdf_doc.GetPage(0); //Set JavaScript for the button. Control control = form.GetControl(pdf_page, 0); Widget widget_annot = control.GetWidget(); AdditionalAction widget_aa(widget_annot); Action action = Action::Create(pdf_doc, Action::e_TypeJavaScript); JavaScriptAction javascipt_action(action); javascipt_action.SetScript(L"JavaScript code"); widget_aa.SetAction(AdditionalAction::e_TriggerAnnotMouseButtonPressed, javascipt_action); //Trigger JavaScript Script. widget_aa.DoJSAction(AdditionalAction::e_TriggerAnnotMouseButtonPressed) How [...]
Foxit Quick PDF Library Lite includes a small subset of the features available in the full Foxit Quick PDF Library SDK. As of version 11.14 Foxit Quick PDF Library Lite includes 44 functions and the full version of Foxit Quick PDF Library has over 900 functions.
Fill and Sign is a modern document processing feature mainly used to fill out forms in PDF documents and sign documents. It allows users to easily add form elements such as text boxes, select boxes, and date pickers to PDF documents, fill in form information, and add electronic signatures and dates. This function is widely used in the filling and signing process of contracts, forms, reports, and other documents, which can greatly improve the efficiency and accuracy of document processing, helping users complete the signing process more quickly, efficiently, and conveniently.
If you purchased within 60 days of a major release (i.e. version 8 to version 9) or you own a valid subscription for Premium Upgrade Protection then the upgrade to the latest major version of Foxit Quick PDF Library is free. If you do not fall into either of these categories then you will need [...]
Securely capture, present, move, process, output, update and print information associated with static and dynamic XFA forms. Simplify data sharing, transportation and availability with XFA. Enjoy added functionality to PDF Forms so anyone can open calendar windows to choose dates, submit data easily or encrypt data upon submission to protect personally identifiable information. If forms are hugely important to how you do business, then this add-on is worth investing in.