Crop PDF automatically

Post questions on how to use or achieve an effect in Inkscape.
Luise123
Posts: 5
Joined: Tue Nov 06, 2012 6:42 pm

Crop PDF automatically

Postby Luise123 » Tue Nov 06, 2012 11:13 pm

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

Luise123
Posts: 5
Joined: Tue Nov 06, 2012 6:42 pm

Re: Crop PDF automatically

Postby Luise123 » Mon Nov 12, 2012 8:10 pm

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

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Crop PDF automatically

Postby brynn » Mon Nov 12, 2012 8:34 pm

Image
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.

Luise123
Posts: 5
Joined: Tue Nov 06, 2012 6:42 pm

Re: Crop PDF automatically

Postby Luise123 » Mon Nov 12, 2012 10:28 pm

Hi,

thanks for reply. I have taken one step.
With

Code: Select all

inkscape.exe --verb DialogDocumentProperties
, 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


Return to “Help with using Inkscape”