Aspose.PDF  for JavaScript via C++

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

Extract text form PDF

Optimize PDF

Add Stamps to PDF

Add Images to PDF

Split PDF

Merge two files to PDF

Encrypt PDF

Decript PDF

Convert PDF to JPG

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.


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(,[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;


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

Hyperlink & Attachments Features

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


Support and Learning Resources