Skip to content

ImageProcessing-ElectronicPublications/pdfcook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

pdfcook

Preprinting preparation tool for PDF ebooks.

Build and Install

Enter project directory and type:

make -j4  
sudo make install  

Features

  • PDF v1.7 support
  • Decrypt encrypted PDFs
  • Join or Split PDFs
  • Scale to any paper size, with specified margin
  • Write Page numbers
  • Write text
  • Transform pages (rotate, flip, move)
  • Booklet format arrange
  • 2 or 4 pages per page (2-up, 4-up)
  • More readable output syntax for easy debugging

Usage

See manual page (PDF or man page) for detailed usage

Scale to print in A4 size paper

pdfcook 'scaleto(a4)' input.pdf output.pdf  

Add binding margin after scaling (? for odd pages, + for even pages)

pdfcook 'scaleto(a4) move(20){?} move(-20){+}' input.pdf output.pdf  

Add page numbers

pdfcook 'number' input.pdf output.pdf  

Booklet format

pdfcook 'book nup(2, paper=a4)' input.pdf output.pdf  

2021

About

Prepress preparing tool and editor for PDF documents

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 97.8%
  • C 1.4%
  • Makefile 0.8%