Foxit Developer Blog

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

    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
    News
    Tech

    Foxit Announces DWG Support for PDF SDK 10.0

    DWG Support to Benefit Project Engineers, Designers, and Suppliers Collaborating on Technical Drawings and Blueprints FREMONT, Calif. – (July 10, 2024) — Foxit, a leading provider of innovative PDF solutions, today announced the inclusion of DWG support for Foxit PDF SDK 10.0, allowing project engineers, designers and suppliers to leverage the solution to convert technical drawings, [...]

    Read Article
    News
    Tech

    Foxit Launches PDF SDK for Web 10.0

    Includes Streamlined and More Efficient User Experience Along with New Enhanced Productivity Tools and Added Functionality FREMONT, Calif. – (July 11, 2024) — Foxit, a leading provider of innovative PDF solutions, today announced the launch of Foxit PDF SDK for Web 10.0, delivering new advanced tools and features for developers. Foxit’s PDF SDK is built on [...]

    Read Article
    News
    Tech

    Foxit Launches PDF SDK for Desktop 10.0.0

    Includes New Enhanced Productivity Tool and Added Functionality Foxit Also Introduces Office2PDF Conversion Tool for Effortless PDF Creation Without Microsoft Office FREMONT, Calif. – (May 22, 2024) — Foxit, a leading provider of innovative PDF and eSignature products and services, helping knowledge workers to increase their productivity and do more with documents, today announced the launch of Foxit [...]

    Read Article
    Foxit PDF SDK for Web

    How to use ActionCallback

    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 [...]

    Read Article