summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-12-11 19:51:20 +0100
committerJonas Smedegaard <dr@jones.dk>2022-12-11 19:51:20 +0100
commitb36f8331a0eabd4e2d3923174645d419e2086130 (patch)
tree3296e861b410ac20d1a297c6d7e6ddc0fe7648d0
parent132b0418ccf3a5ac916813b80ce4f04dd8aad1bd (diff)
reference stackoverflow note about cropping
-rw-r--r--USE.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/USE.md b/USE.md
index 205c1c7..89f1b69 100644
--- a/USE.md
+++ b/USE.md
@@ -80,6 +80,8 @@ and test if running the command succeeds.
Ghostscript can virtually render each page and compute the area used,
useful e.g. for cropping a PDF.
+TODO: Add section on cropping, based on <https://stackoverflow.com/a/10418720/18619283>
+
Compute BoundingBox for each page individually (*not* across them all):
gs -q -dBATCH -dNOPAUSE -sDEVICE=bbox -dLastPage=1 input.pdf 2>&1 | grep %%BoundingBox