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
PDF crop to visible area (trim white space)
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange
-
Vladimir G - Tracker Dev
- User
- Posts: 99
- Joined: Thu Nov 30, 2017 1:24 pm
Re: PDF crop to visible area (trim white space)
Hello LuP,
You can configure the standard Crop Pages tool and its Crop Pages action, then run it from the command line:
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: 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:
You can find more information about running PDF-Tools from the command line here
Best regards,
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=openfolderFor example, my configuration of the Crop Pages action is: 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:
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
Software Developer
PDF-XChange Co. LTD