Page 1 of 1

Crop from Command line to White margin

Posted: Wed Nov 23, 2016 3:07 pm
by PieterSO
I have installed the 318 build, to use the commandline.
I get some movement.
But does somebody know the exact options to crop my pdf to the white margins.

Something like this but the
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" "C:\temp\test8.pdf" /RunTool: croppages

I see, the software displays, but close after a 0.5 sec.
I don't know how to specify the white margins.

Re: Crop from Command line to White margin

Posted: Thu Nov 24, 2016 3:12 am
by Vasyl-Tracker Dev Team
Hi Pieter.

You may do it, but firstly you need to set one option for 'Crop Pages' tool:

- launch just the regular end-user program, select the 'Crop Pages' tool and look to the Actions List on the right. In this list look for the 'Crop Pages' action-item and click small 'gear' icon in caption. The dialog with Crop Options will be displayed for you. Choose the "Remove All White Spaces" value for "Crop Method" option and click OK. After that you my run the command line like

/RunTool croppages <FileOrFolderName>

and it will crop white margins in specified documents as well..

Tip: expand(if it is collapsed) the 'Crop Pages' action-item and uncheck the "Show setup dialog while running" and tool will do the job without showing of "Crop Pages Options" dialogue.

HTH

Re: Crop from Command line to White margin

Posted: Thu Nov 24, 2016 9:36 am
by PieterSO
Thanks
Indeed now it is working
I had to move the pdffilename to the back, after the toolnaam.
But also the tip is usefull.


Now I have created a shortcut on the desktop of a customized tool.
And I can use these commandline:
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool "{CAA0937E-54E4-43FD-92907F8D799E2385}" "C:\temp\test15.pdf"

Do you know if it is possible to use the name instat of the guid?
Or how often is this guid changed, I want to copy this functionality to other colleques. (export tool and import tool)
Each time we make a pdf from Autocad to crop and saveas png.

Re: Crop from Command line to White margin

Posted: Thu Nov 24, 2016 9:57 am
by Will - Tracker Supp
Hi Pieter,

Thanks for the post - The GUID shouldn't change often, if at all, but you should be able to use /RunTool CropPages instead of the GUID.

Thanks,

Re: Crop from Command line to White margin

Posted: Thu Nov 24, 2016 6:12 pm
by Vasyl-Tracker Dev Team
Hi Pieter.
Do you know if it is possible to use the name instat of the guid?
You can use 'friendly names' only to run standard tools. For custom tools only GUIDs can be used.
Or how often is this guid changed, I want to copy this functionality to other colleques. (export tool and import tool)
It does not change GUIDs during import/export tools.

HTH.

Re: Crop from Command line to White margin

Posted: Sat Feb 18, 2017 11:22 am
by hgrom
Would be nice if this was explained in the helpfiles. Took me some time to find out why my custom tools didnt work.
To be honest I didnt read that /dumptools needed a destinationfile. I was wondering why nothing showed ab in cmd :-)

Also a nice to have feature would be to be able to show/copy the GUIDs over the GUI. Create shortcuts and/or dumptools isnt quite an user friendly way. Of course the "feature" to use the real names for custom tools in command lines would be the best solution :-)

Re: Crop from Command line to White margin

Posted: Mon Feb 27, 2017 8:50 am
by Will - Tracker Supp
HI hgrom,

Thanks for the post - I'll pass that along to our help writer to be included.
Also a nice to have feature would be to be able to show/copy the GUIDs over the GUI. Create shortcuts and/or dumptools isnt quite an user friendly way. Of course the "feature" to use the real names for custom tools in command lines would be the best solution :-)
I agree with you here, but it may be a case of it not being quite as simple as it appears. I'll pass this along for consideration.

Cheers,