Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksharindam/pdfcook
Prepress preparing tool and PDF editor
https://github.com/ksharindam/pdfcook
pdf pdf-document-processor pdf-editor prepress
Last synced: about 2 months ago
JSON representation
Prepress preparing tool and PDF editor
- Host: GitHub
- URL: https://github.com/ksharindam/pdfcook
- Owner: ksharindam
- License: gpl-2.0
- Created: 2021-04-11T13:36:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T12:40:03.000Z (about 1 year ago)
- Last Synced: 2024-08-02T15:11:18.405Z (5 months ago)
- Topics: pdf, pdf-document-processor, pdf-editor, prepress
- Language: C++
- Homepage:
- Size: 124 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pdfcook
Preprinting preparation tool for PDF ebooks.### Build and Install
Enter directory src
`cd src`
run
```
make -j4
sudo make install
```
Install manpage
`sudo make installman`**Windows Build**
On windows create a folder build/ beside src/ directory.
And edit Makefile and remove lines with
` @mkdir -p $(@D)`
Then to build run...
`make -j4`### 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 usageScale 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`