Socket
Socket
Sign inDemoInstall

pdf-manage

Package Overview
Dependencies
37
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pdf-manage

Modify your pdf's with node js! you can crop them, edit them and extract their images!


Version published
Maintainers
1
Created

Readme

Source

pdf-manage

Modify your pdf's with node js! you can crop them, edit them and extract their images!

API Reference

How to use
const { splitPDF, mergePDFs, extractToJPG } = require("pdf-manage");

//Examples

const pdfFiles = ['1.pdf', '2.pdf', '3.pdf']; // Add more PDFs as needed
const outputFileName = 'merged_output.pdf';

mergePDFs(pdfFiles, outputFileName);

const inputPdf = 'input.pdf'; // Replace with the path to your input PDF
const outputPrefix = 'output'; // Prefix for output file names
const pageRanges = [[1, 3], [4, 7], [8, 10]]; // Specify page ranges as needed

splitPDF(inputPdf, outputPrefix, pageRanges);

const inputPdf = 'input.pdf'; // Replace with the path to your input PDF
const outputFolder = 'output_images';

extractToJPG(inputPdf, outputFolder)
ParameterTypeDescription
mergePDFsstring string
splitPDFstring string chain-int
extractToJPGstring string

Keywords

FAQs

Last updated on 01 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc