Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: Profil mariana_n23
 | Femeie 24 ani Brasov cauta Barbat 29 - 52 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| pus acum 2 zile#1 |
TRaPModerator
Postari: 964
|
|
I have Ghostscript Portable saved in D:\ drive. I opened a CMD window in D:\CommonFiles\Ghostscript\bin to run the command below.
My PDF size is A4 (Width = 29.7 cm, Height = 21 cm), landscape: 1 cm ~ 28.3465 pt
For command you require size in points: Width = 29.7 * 28.3465 ~ 841.89 pt Height = 21 * 28.3465 ~ 595.28 pt
I measured in my PDF what I need to cut, and I have to cut 2.06 cm from top and the same from bottom. Converted to points this is ~ 58.4 pt
Left (L) = 0 Bottom (B) = 58.4 Right (R) = 841.89 Top (T) = 595.28 - 58.4 = 536.88
Order in cropbox in command is: [L B R T]
Command ran in CMD in gswin64c.exe folder:
| gswin64c.exe -o "D:\CommonFiles\cropped.pdf" -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -c "[/CropBox [0 58.4 841.89 536.88] /PAGES pdfmark" -f "D:\CommonFiles\01.pdf" |
To also preserve image quality as original:
| gswin64c.exe -o "D:\CommonFiles\cropped.pdf" -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -dDownsampleColorImages=false -dDownsampleGrayImages=false -dDownsampleMonoImages=false -c "[/CropBox [0 58.4 841.89 536.88] /PAGES pdfmark" -f "D:\CommonFiles\01.pdf" |
|
|
| |
|