Product

    Foxit PDF SDK for Web

    Open, view and annotate PDF files in your mobile or desktop browser using JavaScript. No plug-ins required and native-level performance, regardless of device.

    Web Demo
    Foxit PDF SDK
    Used everywhere

    Trusted by Some of the World's Largest Companies

    Take a look at who uses our technology.

    aig
    amazon
    bank of america
    google
    ibm
    intel
    jpmorgan
    nasdaq
    tsb
    microsoft
    wells fargo
    aig
    amazon
    bank of america
    google
    ibm
    intel
    jpmorgan
    nasdaq
    tsb
    microsoft
    wells fargo

    The best tools for developers

    Fast integration

    Foxit PDF SDK for Web is a JavaScript-based PDF solution built to run in both desktop and server environments, both 32-bit and 64-bit.

    JavaScriptserver.js · 100% · 6/6 ln
     
    // Set new PDF metadata
    
    var title = "newPDF";
    var author = "current user";
    var pageSize = {height:842, width:595};
    
    // Instantiate PDF Viewer object
    var PDFViewer = await pdfui.getPDFViewer();
    
    // Create new PDF
    var PDFDoc = await PDFViewer.createNewDoc(title, author, pageSize);
    
    // Get first page
    var PDFpage = await PDFDoc.getPageByIndex(0);
    
    // Create form fields
    var FieldTypes = PDFViewCtrl.PDF.form.constant.Field_Type;
    var formfiledsJson = [{
        pageIndex: 0, fieldName: 'Surname', fieldType: FieldTypes.Text, rect: {
            left: 50,
            right: 100,
            top: 650,
            bottom: 630,
        }
    },
    {
    pageIndex: 0, fieldName: 'Middle Name', fieldType: FieldTypes.Text, rect: {
            left: 50,
            right: 100,
            top: 680,
            bottom: 660,
        }
    },
    {
        pageIndex: 0, fieldName: 'First Name', fieldType: FieldTypes.Text, rect: {
            left: 50,
            right: 100,
            top: 710,
            bottom: 690,
        }
    }];
    
    // Load PDF Form
    var PDFForm = await PDFDoc.loadPDFForm()
    PDFDoc.getPDFForm();
    
    // Add form fields to page programmatically
    for(var i=0;i<formfiledsJson.length;i++){
        await PDFForm.addControl(formfiledsJson[i].pageIndex, formfiledsJson[i].fieldName, formfiledsJson[i].fieldType, formfiledsJson[i].rect);
        var field = PDFForm.getField(formfiledsJson[i].fieldName)
        
        // Set some text for the form fields
        field.setValue("This is a text field");
    }

    Developing with Foxit

    Works with all modern web browsers

    PDF SDK for Web is built on the most popular web technologies, and requires minimal server-side resources.

    Google Chrome

    Google Chrome

    Opera

    Opera

    Microsoft Edge

    Microsoft Edge

    Mozilla Firefox

    Mozilla Firefox

    Safari

    Safari

    ooooo
    Developer Benefits

    Designed for faster development

    JS Backend, HTML/CSS/JS Frontend

    PDF SDK for Web is built on commonly used web technologies to get your programmers up to speed faster, thus reducing time to market.

    Client-Side Deployment

    Some PDF SDKs require to be deployed in a server, severely increasing the cost of use. Foxit PDF SDK for Web operates client-side thus reducing your server hosting costs.

    Easy to Integrate

    Developers can easily integrate a PDF viewer in a website by referring to Foxit PDF SDK for Web’s resource files and writing a small amount of code to display and edit PDF files, and have a wealth of interfaces to connect users and user data.

    Powered by Foxit's Core Technology

    The core technology of PDF SDK for Web is based on Foxit's PDF rendering engine, which is trusted by a large number of well-known companies. Foxit’s powerful PDF engine makes document viewing fast and consistent in all platforms.

    11111111111
    Key Features

    Everything you need in one SDK

    Smart Forms

    Give users the ability to fill out digital forms on the go with their device of choice. Apps have never been more productive!

    Explore More

    Digital Signature

    Use ink signatures to let customers sign documents in their digital devices. Sign PDF in web apps easily without needing to print a file to sign again!

    Explore More

    PDF Annotations

    Our PDF SDK provides full support for displaying and annotating PDF in web applications with an extensive range of functions for creating, editing or importing/exporting annotations.

    Explore More
    Robust functionality

    More features

    Viewing & rendering

    Our core API provides for high-fidelity rendering of PDF documents with optimized performance for desktop and mobile platforms.

    Explore More

    Rights management

    Our PDF SDK can generate secure PDFs with native encryption and decryption, or integrate with customized DRM or IRM security systems. Our technology integrates with Microsoft RMS.

    Explore More

    Full-text search

    Fast full-text search for any PDF document, language, or encoding type. The SQLite-based full-text search delivers near-instant results, even for repositories on any digital device.

    Explore More

    Premium extensions

    Add-ons

    XFA Forms

    XFA Forms

    XFA Forms are XML-based forms wrapped inside a PDF. Securely capture, present, move, process, output, update and print information associated with static and dynamic XFA forms. Simplify your data sharing, transportation and availability with XFA.

    Explore More
    Text Editor

    Text Editor

    Editing PDF text online is crucial, but many JavaScript-based Web Viewers do not offer this functionality. Foxit's premium text editing feature ensures you can edit & create new text in PDFs with ease.

    Try our web demo
    PDF/A

    PDF/A

    Leverage our conversion and verification technology to turn regular PDFs into PDF/A compliant documents. If you are already working with PDF/A in your processes, proactively verify third-party PDFs you receive are PDF/A compliant.

    Explore More
    Get started

    Ready to Develop Your PDF Solution?

    Web Demo

    Try our SDK for Web in your browser. No download or login required.

    VIEW DEMO

    Ready to get started?

    Licensing tailored to you

    Our sales engineers are PDF experts and coders by trade. They'll answer any technical questions, help you build a proof of concept, and create a license that suits your needs.

    30-day free trial

    Try our advanced PDF technology on your chosen platform(s), completely free, for 30 days.