Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf-print-marks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-print-marks

Add printing marks to a PDF file.

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

pdf-print-marks

Add printing marks to a PDF file.

  • Crop Marks
  • Bleed Marks
  • Registration Marks
  • Color Bars
  • Page Information
  • Set bleed margin
  • Mirror or zoom pdf edges
Sample Image

Installation and Usage

npm install pdf-print-marks
import pdfPrintMarks from "pdf-print-marks";

pdfPrintMarks({
  input: "input.pdf",
  output: "output.pdf",
  width: 150,
  height: 180,
  bleed: 2, // bleed margin in mm
});

Options

NameTypeDefaultDescription
inputstringThe input PDF file path
filestringThe input PDF file buffer if not specifying path
outputstringThe output PDF file path
widthnumberThe width of the PDF page in mm
heightnumberThe height of the PDF page in mm
bleednumber0The bleed margin in mm
mirrorbooleanfalseMirror the edges of the PDF page
docNamestringAdd the document name at the bottom of the page
cropMarksbooleantrueAdd crop marks to the document
bleedMarksbooleantrueAdd bleed marks to the document
registrationMarksbooleantrueAdd registration marks to the document
colorBarsbooleantrueAdd color bars to the document
pageInformationbooleantrueAdd the document information at the bottom of the page
getPageOptionsfunctionFunction to get custom options for a page. See TS docs.

Mark Types

Crop Marks

Crop marks are lines printed in the corners of the document to show where the page should be trimmed.

Bleed Marks

Bleed marks are lines that define the extra area of the image outside the defined page size that will be trimmed off.

Registration Marks

Registration marks are small crosshairs that are printed at the edges of the document to help align the different color plates.

Color Bars

Color bars are a series of coloured rectangles that are printed on the document to help calibrate the colour of the printer.

FAQs

Package last updated on 25 Apr 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc