PDF crop to visible area (trim white space)

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

LuP
User
Posts: 5
Joined: Tue Jul 12, 2016 1:38 pm

PDF crop to visible area (trim white space)

Post by LuP »

Hello,

I have PDF-tools bundle and a PDF with some extra space around the actual content.
May I use a PDF-tool to crop the PDF to visible are by a batch file, something like:

c:\Program Files\PDF-XChange\PDF Tools\PXCTools.exe /crop-to-visible c:\MyBig.pdf c:\MyBig-Cropped.pdf

Best regards,

Lukas
User avatar
Vladimir G - Tracker Dev
User
Posts: 99
Joined: Thu Nov 30, 2017 1:24 pm

Re: PDF crop to visible area (trim white space)

Post by Vladimir G - Tracker Dev »

Hello LuP,

You can configure the standard Crop Pages tool and its Crop Pages action, then run it from the command line:

Code: Select all

C:\Program Files\PDF-XChange\PDF Tools\PXCTools.exe /RunTool "pdft.tool.cropPages" "C:\MyBig.pdf" /Output:filename="%[Filename]-Cropped.pdf";folder=source;showfiles=openfolder
This command runs the Crop Pages tool on the specified PDF document, saves the result in the same folder with the “-Cropped” suffix added to the filename, opens the destination folder, and selects the resulting file.

For example, my configuration of the Crop Pages action is:
image.png
image(1).png
i.e. the 'Show setup dialog while running' option is disabled, the 'Crop Method' option is set to 'Remove All White Space'.

To access the full set of Crop Pages options, click the gear icon or the All options... link:
image(2).png

You can find more information about running PDF-Tools from the command line here


Best regards,
You do not have the required permissions to view the files attached to this post.
Vladimir
Software Developer
PDF-XChange Co. LTD