PDF Processing API for JavaScript via C++

Generate, view, manipulate & convert PDF files using JavaScript via C++ directly in the we browser

Download Free Trial


Aspose.PDF for JavaScript via C++ is an easy and secure toolkit used to work with PDF directly in the web browser.

Aspose.PDF for JavaScript via C++ is a scalable and feature-rich toolkit to process PDF using JavaScript. Developers can create their own JavaScript product and distribute them all over the web. Aspose.PDF for JavaScript via C++ is built on the use of WebAssembly technology and is based on Aspose.PDF for .NET Lightweight. It is the best solution to manipulate PDF using JavaScript.

Aspose.PDF for JavaScript via C++ features

Convert PDF to PNG

Aspose.PDF for JavaScript via C++ gives the possibility to manipulate PDF files using web-server or Python (for running local web-server) Using Aspose.PDF for JavaScript via C++ you can optimize PDF, add and extract text and images, encrypt and decrypt it. You can also split and merge PDF.

Convert PDF

Using Aspose.PDF for JavaScript via C++ you can convert PDF to JPG and PNG.


To install and use Aspose.PDF for JavaScript via C++ from a ZIP archive, follow the following instructions:

  • Extract the files from the ZIP archive
  • Encrypt your *.lic file using ’encrypt_lic.html'
  • Edit ‘settings.json’ and setup your settings

Toolkit allows adding:

  • Hyperlink shortcuts to other pages within a PDF document
  • Hyperlinks to pages in other PDF documents
  • Hyperlinks to non-PDF files
  • hyperlinks to web locations.

Along with hyperlink creation, you also get the capabilities to extract hyperlinks from a PDF document.

PDF Security Features

API offers 40-bit or 128-bit encryption. One can also set user and master passwords for more security. Content manipulation in files like copying content, printing, degraded printing, annotation modification, form field completion as well as PDF file assembly can all be restricted by using this library

Convert PDF to HTML, DOCX, ODS Formats

Aspose.PDF for Javascript via C++ allows you to render and transform each page of a PDF file into conventional image formats such as BMP, JPG and PNG, with the highest possible fidelity. Other than images, one can easily save PDF to DOC and DOCX formats.

Save PDF pages in JPG format - JavaScript

load an existing PDF document. convert PDF pages to images save each page in JPG format

Convert PDF to JPG on JavaScript

var ffileToJpg = function (e) {
const file_reader = new FileReader();
file_reader.onload = (event) => {
  //convert a PDF file to jpg-files with template "ResultPdfToJpg{0:D2}.jpg" ({0}, {0:D2}, {0:D3}, ... format page number) and save
  const json = AsposePdfPagesToJpg(event.target.result, e.target.files[0].name, "ResultPdfToJpg{0:D2}.jpg");
    if (json.errorCode == 0) {
      document.getElementById('output').textContent = "Files(pages) count: " + json.filesCount.toString();
      //make links to result files
      for (let fileIndex = 0; fileIndex < json.filesCount; fileIndex++) (json.filesNameResult[fileIndex], "image/jpeg");
    else document.getElementById('output').textContent = json.errorText;

Support and Learning Resources