Skip to main content

Thread: cut upper/lower half off PDF document (ghostscript)


i have bunch of pdfs presentation slides on each page. want convert pdfs each page contains 1 slide. have split pdf single pages, duplicate pages, cut lower half off every second , upper half off rest of pages, , merge them in end.

can handle splitting , merging of pages, don't know how crop 1 half off page. suppose done ghostscript, printing a4 pdfs a5 paper size 1 half of a4 page gets printed new pdf , other half lost (i'm ok a5 pdfs output).

don't know ghostscript. took @ documentation, didn't spot quick solution, , don't have time @ moment learn it...

in advance suggestions.

alright, solved myself after lot more googling , trying around:

code:
...    gs \           -sdevice=pdfwrite \           -o "$pdf.upper" \           -c "[/cropbox [0 $((height/2)) $width $height] /pages pdfmark" \           -f "$pdf"    gs \           -sdevice=pdfwrite \           -o "$pdf.lower" \           -c "[/cropbox [0 0 $width $((height/2))] /pages pdfmark" \       -f "$pdf" ...


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk cut upper/lower half off PDF document (ghostscript)


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account