m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2026-05-26 18:25:03 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2026-05-26 18:25:03 +0200
commit8483429c5c63cdf1d67b4b6d4fbdee6a95852f09 (patch)
tree5709e80e4abd0be6b6fec8c108340064c85468d3
parent3749ec540acb5663c405ad88f893076202ea7ae4 (diff)
Add pdf operations
-rw-r--r--pdf.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/pdf.md b/pdf.md
index f13af21..7cc5cf0 100644
--- a/pdf.md
+++ b/pdf.md
@@ -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