1. Products
  2.   PDF
  3.   Node.js
  4.   Scissors
 
  

Free Node.js Library to Trim, Split & Merge PDF Files

A Powerful Open Source PDF Manipulation Node.js Library that Enables Software Developers to Trim, Split, Join, Crop, Read, Extract (text, images) and Mash PDF Documents in Node.js Environment.

In the world of digital documents, PDFs reign supreme as one of the most versatile and widely used file formats. Whether it's sharing reports, forms, or presentations, PDFs have become indispensable. However, manipulating PDFs programmatically can sometimes be challenging. That's where tools like the Scissors PDF Node.js Library come in handy. Working with PDFs often involves tasks like splitting, merging, or extracting pages, and while there are various libraries available for different programming languages, Node.js developers needed a robust solution tailored to their environment.

Scissors isn't just another run-of-the-mill PDF library; it's a versatile toolkit packed with features tailored to meet the demands of modern development projects. With Scissors, developers can perform a variety of tasks, including trimming PDFs to remove unnecessary pages, splitting PDFs into individual files based on predefined criteria, merging PDFs while maintaining the integrity of each document, extract text or images from a PDF for further processing, adding watermarks to PDF documents to protect or brand them, Encrypt PDF documents and set passwords to restrict access, Optimize PDF documents for faster loading and smaller file sizes and many more.

Scissors is a valuable addition to any software developer's toolkit, offering a convenient and powerful solution for PDF manipulation in Node.js applications. It is designed to simplify the manipulation of PDF documents by providing a straightforward API and powerful features to streamline your PDF processing tasks. Whether you're building a document management system, automating report generation, or performing data analysis, Scissors provides the tools developers need to handle PDFs with confidence and efficiency. Give Scissors a try today and experience the difference firsthand.

Previous Next

Getting Started with Scissors

Scissors is available at npm, You can easily download it and install it on your machine. Please use the following command for smooth installation.

Install Scissors Library via npm

npm install scissors-pdf 

Splitting PDF Documents inside Node.js Apps

One of the core functionalities of the open source Scissors library is its ability to split PDFs into separate pages with just a couple of lines of code inside Node.js applications. It enables users to divide a PDF document into multiple smaller files based on predefined criteria such as page count, bookmarks, or custom delimiters. Whether you need to extract specific sections of a document or break it down for further processing, Scissors makes this task effortless. The following example shows how software developers can divide PDF documents by bookmarks inside Node.js environment.

How to Split PDF Documents inside Node.js Applications?

const scissors = require('scissors');

scissors.split('input.pdf', 'outputFolder', { splitBy: 'bookmark' });

Extract PDF Text & Images in Node.js

Extracting text enables developers to retrieve the textual content from their PDF document, which can be useful for text analysis or indexing purposes. Extracting images allows software developers to retrieve images embedded within their PDF document, providing opportunities for image processing or content analysis. The open source Scissors makes it easy for software professionals to load and extract content from an existing PDF file inside Node.js applications. The following example demonstrates how software developers can extract images as well as textual content from an existing PDF files inside Node.js applications.

How to Extract Text and Images from PDF Document inside Node.js Applications?

const scissors = require('scissors');

const text = scissors.extractText('input.pdf');
console.log(text);

// Extracting PDF images

const images = scissors.extractImages('input.pdf', { outputDir: 'images' });
console.log(images);

Trimming PDF Files in Node.js

Need to remove unwanted pages from a PDF document? Trimming allows you to remove specific pages from a PDF document, helping you create more concise and focused content. The open source library Scissors makes it a breeze. With just a few lines of code, software developers can trim PDFs to remove unnecessary pages, ensuring that their documents are lean and focused. Here is an example that shows how software developers can trim an existing PDF file inside Node.js environment.

How to Trim PDF Documents inside Node.js Applications?

const scissors = require('scissors');

scissors.trim('input.pdf', 'output.pdf', { pages: '1-5' });