Foxit Developer Blog

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

    Foxit PDF SDK for Web

    How to Customize Language Resources with Foxit PDF SDK for Web

    Click here to find out more on how Foxit PDF SDK for Web can help customize language resources for your application.Assumption Assume you have an assets/in your website root directory, where you will configure the language resources. Let’s call this path as websiteRoot/assets/.

    Read Article
    Foxit PDF SDK for Web

    How to Change the Loading Icon & Text with PDF SDK for Web

    Foxit PDF SDK for Web comes with lots of customization options and you can now edit the loading icon and text. Click here to find out more. Foxit PDF SDK for Web comes with lots of customization options and you can now edit the loading icon and text. This icon/text refers to the time between UI initialization and document display. Follow the guidelines below to update this icon and text, or you can have neither a loading icon/text if you wish. Code Snippet:

    Read Article
    Foxit PDF SDK for Web

    How to Add Annotations with Foxit PDF SDK for Web

    Click here to find out more on how to add annotations through Foxit PDF SDK for Web. Add an annotation on a given page Programmatically add an annotation var pdfviewer = await pdfui.getPDFViewer();var pdfdoc = await pdfviewer.getCurrentPDFDoc();var page = await pdfdoc.getPageByIndex(0);var json = {type:’square’,rect:{left:98,right:200,top:500,bottom:450},contents:’this is a rectangle’,color: 0x008080,borderInfo:{width:15}};await page.addAnnot(json)

    Read Article
    Foxit PDF SDK for Web

    How to Show the First Third of a PDF with Foxit PDF SDK for Web

    Often times you need to show just certain parts of a PDF. This is often due to a particular PDF template that a company follows with the same kinds of information in the same location. For example, a 6 page invoice where you just want to show the first 2 pages that contains the key information you’re after. The following example will show you how to produce a PDF that shows only the first third of pages of a document in our Web-based JavaScript PDF viewer.

    Read Article
    Foxit PDF SDK for Web

    How to Customize Right Click Annotation Menus with Foxit PDF SDK for Web

    This guide highlights how to Customizing a right-click menu for supported annotations, Customizing a right-click menu for unsupported annotations, Hiding a right click menu or menu items & Showing a customized right-click menu.

    Read Article
    Foxit PDF SDK for Web

    How to Customize the Floating Text Selection Tooltip with Foxit PDF SDK for Web

    Customizing the floating tooltip involves two steps. Click here to find out these two steps.

    Read Article
    Foxit PDF SDK for Web

    How to Add Another Language to Foxit PDF SDK for Web

    Foxit PDF SDK for Web enables you to update all of the strings used by the PDF viewer so you can change it to your language. You can easily create a new folder for your own language at the ‘locales’ folder and translate the string content on ‘ui.json’ and ‘viewer.json’ for all objects. By directing [...]

    Read Article
    Foxit PDF SDK for Web

    How to Use Foxit PDF SDK for Web Offline

    Using PDF SDK for Web offline enables you to get the most out of our Web based JavaScript PDF viewer for your workflows. In order to use the SDK offline, please follow the following easy steps.

    Read Article
    Foxit PDF SDK for Web

    Introduction to PDF SDK for Web Permissions

    PDF SDK for Web enables you to integrate a PDF viewer in a website and provides a very flexible permission configuration to help you control documents better. It supports viewer side user permissions to control how users can interact with documents. By default, users can directly interact with documents and can be restricted by document [...]

    Read Article
    Foxit PDF SDK for Web

    Advanced Annotation Handling with Foxit PDF SDK for Web

    Foxit PDF SDK for Web provides two methods to set annotation flags. Click here for the instructions below to use the different annotation functionality.

    Read Article