diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-12-11 19:51:20 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2022-12-11 19:51:20 +0100 |
commit | b36f8331a0eabd4e2d3923174645d419e2086130 (patch) | |
tree | 3296e861b410ac20d1a297c6d7e6ddc0fe7648d0 | |
parent | 132b0418ccf3a5ac916813b80ce4f04dd8aad1bd (diff) |
reference stackoverflow note about cropping
-rw-r--r-- | USE.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |