Macros or toolbar hacking.

Discussion about writing code for Inkscape.
JZA
Posts: 39
Joined: Sun Mar 25, 2012 7:09 am
Location: Cancun
Contact:

Macros or toolbar hacking.

Postby JZA » Sun Aug 11, 2013 6:02 pm

I would like to have the "Resize to image" function on my toolbar. Is there a way to programatically have this functionality available?

Regards.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Macros or toolbar hacking.

Postby hulf2012 » Tue Aug 13, 2013 1:50 am

Hello,
It's a hard question, I guess...
Do you refer to "Resize page to drawing or selection"?
When you say programatically, you say using python, C++ API ?

Please read these, ("the easy way"):
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Customize-Files.html
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

JZA
Posts: 39
Joined: Sun Mar 25, 2012 7:09 am
Location: Cancun
Contact:

Re: Macros or toolbar hacking.

Postby JZA » Tue Aug 13, 2013 4:27 am

Basically I want to have that option on my toolbar. I use it a lot when I need to get ready to save svgs that are not conformant with the sizes of the canvas. Is a bit unnecesary to go File > Document Properties > Resize page to drawing or selection.

Would be nice to have that option always available or assign a shortcut to it.

User avatar
samueldellicour
Posts: 26
Joined: Mon Jul 01, 2013 11:03 pm
Location: Belgium
Contact:

Re: Macros or toolbar hacking.

Postby samueldellicour » Mon Feb 17, 2014 11:54 pm

Here is a way to assign it a shortcut
Samuel


Return to “Programming”