diff options
| author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-05-26 18:25:03 +0200 |
|---|---|---|
| committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-05-26 18:25:03 +0200 |
| commit | 8483429c5c63cdf1d67b4b6d4fbdee6a95852f09 (patch) | |
| tree | 5709e80e4abd0be6b6fec8c108340064c85468d3 | |
| parent | 3749ec540acb5663c405ad88f893076202ea7ae4 (diff) | |
Add pdf operations
| -rw-r--r-- | pdf.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4,6 +4,11 @@ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf +GhostScript uses some algorithm to autodetect page orientation, and may +undersireably flip some pages. To disable this, add: + + "-dAutoRotatePages=/None" + ## Compress gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf @@ -12,6 +17,10 @@ pdfjam --outfile out.pdf in.pdf 1,3,4-7 +`--landscape` to set orientation of output pages. + +`--angle <angle>` to rotate (counter clockwise). + ## Images to pdf convert in1.jpg in2.jpg out.pdf |