1.0.5 • Published 1 year ago

pdf-print-marks v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

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.

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago