Skip to content

Add PDF Boxes (Trim, Art, Bleed, and Crop) to existing PDFs

Notifications You must be signed in to change notification settings

nicknux/pdfboxer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pdfboxer

Add PDF Boxes (Trim, Art, Bleed, and Crop) to existing PDFs

Build

$ mvn clean package

Show Usage

$ java -jar bin/pdfboxer-0.0.1.jar
usage: boxer
 -trimBox <arg>      Sets the TrimBox. Must be passed as x,y,width,height
 -artBox <arg>       Sets the ArtBox. Must be passed as x,y,width,height
 -bleedBox <arg>     Sets the BleedBox. Must be passed as x,y,width,height
 -cropBox <arg>      Sets the CropBox. Must be passed as x,y,width,height
 -sourceFile <arg>   The source pdf
 -destFile <arg>     The destination pdf

Example

$ java -jar bin/pdfboxer-0.0.1.jar \
-trimBox 7.200000,7.200000,504.000031,720.000000 \
-artBox 7.200000,7.200000,504.000031,720.000000 \
-sourceFile src/test/pdfs/UNTRIMMED_PDF.pdf \
-destFile src/test/pdfs/TRIMMED_PDF.pdf

About

Add PDF Boxes (Trim, Art, Bleed, and Crop) to existing PDFs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages