Nástroje používateľa

Nástoje správy stránok


blog:odborny:2025-05-07-command-line_tools_for_pdf_processing

Rozdiely

Tu môžete vidieť rozdiely medzi vybranou verziou a aktuálnou verziou danej stránky.

Odkaz na tento prehľad zmien

Obojstranná predošlá revíziaPredchádzajúca revízia
blog:odborny:2025-05-07-command-line_tools_for_pdf_processing [2026/05/15 13:10] – Róbert Tothblog:odborny:2025-05-07-command-line_tools_for_pdf_processing [2026/11/04 15:36] (aktuálne) – [3. Crop pages of PDF] Róbert Toth
Riadok 178: Riadok 178:
 </code> </code>
 Note that adjusting page sizes by cropping mediabox is (to my knowledge) the only way to do it without altering the PDF content in any way (as explained [[https://www.coherentpdf.com/cpdfmanual/cpdfmanualch3.html#x7-570003.6|here in Coherent PDF manual]]). Cropping other boxes might lead to PDF structure being changed. Note that adjusting page sizes by cropping mediabox is (to my knowledge) the only way to do it without altering the PDF content in any way (as explained [[https://www.coherentpdf.com/cpdfmanual/cpdfmanualch3.html#x7-570003.6|here in Coherent PDF manual]]). Cropping other boxes might lead to PDF structure being changed.
 +
 +Additionally, if you want to "reset" the coordinate system after cropping pages so that the pages start at (0,0), you might use the ''-upright'' command, which "makes sure the media box has its origin at (0,0), changing other boxes to compensate" (see cpdf manual section [[https://www.coherentpdf.com/cpdfmanual/cpdfmanualch3.html#dx6-56001|3.4 Rotating Pages]]):
 +<code>
 +cpdf -upright "src.pdf" -o "dst.pdf"
 +</code>
  
 ==== Adobe Acrobat ==== ==== Adobe Acrobat ====
blog/odborny/2025-05-07-command-line_tools_for_pdf_processing.1778843438.txt.gz · Posledná úprava: 2026/05/15 13:10 od Róbert Toth