Foxit Developer Blog

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

    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Redaction

    Programmatically search and sensor sensitive information in a document for legal or security purposes to keep customer and employee information safe. Achieve full GDPR-compliance with Foxit’s powerful technology. Our redaction module applies annotations to block sensitive information in a document. Only a dark line will show in the place of the content in the front-end and no sensitive data is kept in the meta information. Our technology utilizes a process that ensures redacted material is deleted and the blacked out (redacted) areas become images, stopping someone being able to access the sensitive information underneath.

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Digital Signatures

    A digital signature is a digitally generated representation of a person’s identity through either an image of a persons signature or a computer generated typed signature which verifies a person’s identify and authenticates the contents of a document. In technical terms digital signatures are generated public key encryption that confirms a person’s identity in order to substantiate a document for legal or other purposes. Digital signatures can happen at page or document level depending on regulation and company standards.

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Collaboration

    Enabling multiple people to work on the same PDF is more important than ever before. Not only because of its role in the ‘going paperless’ approach that countless companies are utilizing across the globe, but also because of the benefits to your document workflows and productivity. In a world where streamlining business processes is key, this brings working remotely to the next level, as even though you are not in the same office as a colleague, you can still see the exact same version of a live document as they do. 

    Read Article
    Foxit PDF SDK for Web

    Foxit PDF SDK for Web: Edit PDFs

    When it comes to editing PDFs, you can change just about anything with PDF SDK. Reorder pages, edit text on the fly, rotate pages and so much more. Take a look at the sample codes below to get started.Page reorder and page rotation Use the snippet below in order to reorder and rotate pages in the viewer.

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

    How to Combine PDFs with PDF SDK

    Foxit PDF SDK has the ability to combine or merge multiple PDFs into one. Please use the following sample codes for the different languages below to get started. Simple code for C++ #include "include/pdf/fs_combination.h" ...// SDK has already been initialized successfully. CombineDocumentInfoArray info_array; info_array.Add(CombineDocumentInfo(input_path + L"AboutFoxit.pdf", L"")); info_array.Add(CombineDocumentInfo(input_path + L"Annot_all.pdf", L"")); info_array.Add(CombineDocumentInfo(input_path + L"SamplePDF.pdf", L"")); [...]

    Read Article
    Foxit PDF SDK for Web

    How to use PDF Linearization with Foxit PDF SDK for Web

    PDF linearization is a quick web viewing format which displays pages instantly without having to wait for an entire file to be completely downloaded. To make use of this feature, PDF SDK for Web’s viewer checks at the initialization stage to programmatically detect if it is a linearization document. If it is, the Web viewer uses the fast web view mode (AsyncReaderCallback) to request the data. Otherwise, it follows the normal process mode.

    Read Article
    Foxit PDF SDK for Web

    Quick tips to speed up PDF SDK for Web’s performance

    If you experience slow page loading with PDF SDK for Web, use Chrome Dev Tools to inspect your Network activity to check if the slowness is related to repeat file loading. If so, you should consider using a cache policy on static assets to optimize repeat page load speed. PDF SDK for Web allows a temporary and permanent cache on files. The cache code sample is available at ..\examples\PDFViewCtrl\service-worker in the Web SDK package.

    Read Article
    Foxit PDF SDK for Web

    How to use the preload worker thread with Foxit PDF SDK for Web

    preloadJRWorker is Foxits Web SDK worker thread to perform tasks in the background and with v7, major improvements have been made. Read more about it here.

    Read Article
    Foxit PDF SDK for Web

    How to Set Custom Fonts with PDF SDK for Web

    Foxit PDF SDK for Web has a huge range of custom fonts available with the Foxit package. Click here for more information on custom fonts with Foxit. Foxit PDF SDK for Web has a huge range of custom fonts available with the package. You can customize as much as you wish by using the 2 sample codes below. Setting up the font Path var pdfui = new PDFUI({ viewerOptions: { libPath: '../../../lib', preloadJR: true, jr: { licenseSN:"", LicenseKey:"", fontPath:"../external/brotli" } })

    Read Article
    Foxit PDF SDK for Web

    Additional Language support with Foxit PDF SDK for Web

    Foxit PDF SDK for Web has adopted the i18Next international framework to implement additional language support. Find out more here. Internalization Resources Foxit PDF SDK for Web has adopted the i18Next international framework to implement additional language support. The localization resources are stored at ~lib\locales. Each folder contains two resource files – the ui_.json and viewer_.json. The first one is for the advanced web viewer demo, and the other is for the basic web viewer demo.

    Read Article