Document
Choose a document
Explore further
Web articles & project samples
How to use the preload worker thread with Foxit PDF SDK for Web
Updated 11 August 2021
preloadJRWorker is our web SDK worker thread to perform tasks in the background. With version 7, we have made major improvements to the worker in order to reduce loading time. It can run simultaneously with the SDK JS libraries to...
Keep reading
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({
 ...
Keep reading
Additional Language support with Foxit PDF SDK for Web
Updated 13 October 2023
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...
Keep reading
How to Customize Language Resources with Foxit PDF SDK for Web
Updated 11 August 2021
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/.
Configuration
Copy lib/locals inside the SDK to websit...
Keep reading
How to Save PDFs back to a Web Server with PDF SDK for Web
Updated 11 August 2021
Foxit PDF SDK for Web allows you save PDF files to a web server easily with a short code. Please add the code below to do so:
var FRAGMENT_ACTION = UIExtension.UIConsts.FRAGMENT_ACTIONar FRAGMENT_ACTION = UIExtension.UIConsts...
Keep reading
How to Change the Loading Icon & Text with PDF SDK for Web
Updated 11 August 2021
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...
Keep reading
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 ...
Keep reading
How to Show the First Third of a PDF with Foxit PDF SDK for Web
Updated 11 August 2021
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 inv...
Keep reading
How to Customize Right Click Annotation Menus with Foxit PDF SDK for Web
Updated 11 August 2021
This guide will walk you through the following topics:
Customizing a right-click menu for supported annotations
Customizing a right-click menu for unsupported annotations
Hiding a right click menu or menu items
...
Keep reading