Coherentpdf.js: a PDF API for Node and the Browser

Coherent Graphics Ltd announced Coherentpdf.js., a PDF API in pure JavaScript for Node.js and the browser, which features all of the functionality of our command line tools and other APIs. It can be used both server side in node, and client side – so PDF files can be processed entirely in the browser.

A single JavaScript file with no dependencies, coherentpdf.js can be used to process PDF files entirely within the browser. You can see a simple demonstration (loads in new window), which allows the user to select a PDF file, processes it entirely in the browser, and allows it to be downloaded.

Coherentpdf.js may be installed with npm. It has an npm page. Coherentpdf.js also has a Github page.

Features:

  • Quality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.
  • Impose files n-up
  • Create new PDFs. Convert text files to PDF
  • Losslessly squeeze files to reduce their size
  • Encrypt and Decrypt (including AES 128 and AES 256 encryption)
  • Read and set info and metadata from a PDF file. Set and read XMP Metadata.
  • Scale, rotate, crop and flip pages. Scale pages to fit.
  • Copy, Remove and Add bookmarks. Build table of contents from bookmarks.
  • Stamp logos, shapes, watermarks, page numbers and multiline text. Transparency.
  • List, copy or remove annotations
  • Add and remove file attachments to document or page. Extract attachments.
  • Thicken hairlines, blacken text, make draft documents
  • Reconstruct malformed files
  • Detect missing fonts, low resolution images. Remove images. Extract images.
  • Add printer’s marks
  • Add, modify, remove, or print page labels.
  • Export PDF file to / Import PDF file from JSON.
  • Manipulate optional content groups
This entry was posted in Uncategorized. Bookmark the permalink.