How do I get the page box to fit snugly round my drawing?
I tried Doc Properties -> Page
but when I changed the width and height in "custom size" it just rescaled my drawing along with the page.
I want to be able to export to a .png or .pdf that doesn't have a lot of extra white space around my drawing.
Also, on this forum webpage I tried the search functionality, typing things like "page size pdf" and no matter
what I typed, it came back saying the all my search words were too common and had been ignored.
changing page size
Re: changing page size
Select everything before bringing up the Doc Properties, and then "Fit page to selection". If you want to make the page slightly bigger than the bounding boxes of the selected items, make a square temporarily, size it around the rest of the drawing how you want the page to boarder to be, select it and fit page to selection.
-
- Posts: 26
- Joined: Wed May 27, 2009 7:32 am
Re: changing page size
I've had weirdness happen when I use "Fit Page to Selection" in 0.46. Inkscape doesn't relocate the coordinate system, it puts a translate on every layer... and there are some operations that get confused by that. (Creating rotated tiled clones of objects that existed before the page-resize creates really unexpected results when the layer is translated... if you set it up so that you should get all of your clones stacked on top of each other, you instead get them arranged in a circle. Took me a long time to figure out why it wasn't behaving correctly. I should check if this is still a problem in 0.47pre1 and file a bug report if it is.)
The solution to this is to make sure the upper-left corner of the bounding box surrounding the selection is aligned with the upper-left corner of the page before using "Fit Page to Selection", so that Inkscape doesn't try to move the page. This is as simple as selecting your drawing, and then using Align and Distribute in "To Page" mode.
The solution to this is to make sure the upper-left corner of the bounding box surrounding the selection is aligned with the upper-left corner of the page before using "Fit Page to Selection", so that Inkscape doesn't try to move the page. This is as simple as selecting your drawing, and then using Align and Distribute in "To Page" mode.
Re: changing page size
Select everything before bringing up the Doc Properties, and then "Fit page to selection". If you want to make the page slightly bigger than the bounding boxes of the selected items, make a square temporarily, size it around the rest of the drawing how you want the page to boarder to be, select it and fit page to selection.
I tried this and I don't know what I am doing wrong but it just doesn't work. I end up with a page that doesn't fit snugly around the image. I have attached the .svg file to this message. I would be very grateful for any help.
- Attachments
-
- fission_bomb_implosion.svg
- This is the image whose page size I want to change.
- (109.94 KiB) Downloaded 223 times
Re: changing page size
There is an invisible rectangle (no fill, undefined stroke) with the size of the page, that prevents the size change.
Reopen the drawing, use Shift + TAB to select the rectangle, re-size or delete it and then try again to shrink the page size via Document Properties.
hth, ~suv
Reopen the drawing, use Shift + TAB to select the rectangle, re-size or delete it and then try again to shrink the page size via Document Properties.
hth, ~suv
Re: changing page size
~suv wrote:There is an invisible rectangle (no fill, undefined stroke) with the size of the page, that prevents the size change.
Reopen the drawing, use Shift + TAB to select the rectangle, re-size or delete it and then try again to shrink the page size via Document Properties.
Thank you for your help, but for me it still doesn't work. I deleted the rectangle, did Select All, then Document Properties -> Fit page to selection. It changed the page to a different shape that still doesn't fit snugly around the image.
And again, if I modify the width and height values given in the "Custom size" box, it changes the page size but just rescales the drawing at the same time so that nothing has really changed.
Re: changing page size
Are you using 0.46? This seems to be a bug in 0.46 - with Inkscape 0.47pre1 (on OS X 10.5.7) it works as expected - I'll attach the shrinked svg.
- Attachments
-
- f_fission_bomb_implosion-shrinked.svg
- (96.45 KiB) Downloaded 209 times
Re: changing page size
~suv wrote:Are you using 0.46? This seems to be a bug in 0.46 - with Inkscape 0.47pre1 (on OS X 10.5.7) it works as expected - I'll attach the shrinked svg.
You are right! I upgraded to 0.47 (which was easy in Fedora using the "updates-testing" repository) and then things worked exactly as you said. Thank you.
Re: changing page size
A late follow-up: Just stumbled over this old bug report on launchpad: 'tell user resizing page must also resize viewBox, if present' which explains what happens:
HTH those who can't yet upgrade to a devel or prerelease version, ~suv
This is caused by viewBox and is correct behavior per SVG
standard. Remove the viewBox attribute if you want to avoid
this scaling, or resize it to the same values as width/height.
HTH those who can't yet upgrade to a devel or prerelease version, ~suv