Hello,
at the moment I open PDFs with Inkscape, make "File->Document Properties->Resize Page to drawing or selection" to crop my PDF (margin(0,0,0,0)). I have a lot of PDFs with the same format and it sucks to do this for everyone. Is it possible to trigger this command by command line (Windows)? I haven't found an option!
Greetings
Crop PDF automatically
Re: Crop PDF automatically
Hi,
sry for pushing (but I think the post is not read because I had to be unlocked first). Could somebody help me please.
Greetings
sry for pushing (but I think the post is not read because I had to be unlocked first). Could somebody help me please.
Greetings
Re: Crop PDF automatically

Welcome to InksapeForum!
I'm sorry no one has answered this. It's been posted since a day or 2 after you submitted it. The forum moderation, which we use to help keep free of spam, usually only takes several hours, but now and then it might take a couple of days. Anyway, your messages will all post immediately now that you've passed the 1st two messages rule.
I know that Inkscape can but used with the commandline, but I don't know if the commandline can do batch operations. However, I'm pretty sure a script could be written to do the batch work. Unfortunately, I don't know how to do either scripts or the commandline. Info on command line http://tavmjong.free.fr/INKSCAPE/MANUAL ... dLine.html I'm sorry that I don't know where to look for info on writing scripts.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Crop PDF automatically
Hi,
thanks for reply. I have taken one step.
With, I get the Document Properties Dialog opened. Is there any possibility to send Keyboard Shortcuts from cmd (Microsoft Windows) to Inkscape like "Alt+Z", Tab etc for navigating? Or is there an other possibility to click the button "Resize page to drawing or selection"?
Greetings
thanks for reply. I have taken one step.
With
Code: Select all
inkscape.exe --verb DialogDocumentProperties
Greetings