changing page size

Post questions on how to use or achieve an effect in Inkscape.
Alberto
Posts: 4
Joined: Sat Jun 27, 2009 8:08 am

changing page size

Postby Alberto » Sat Jun 27, 2009 8:19 am

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.

User avatar
TKR101010
Posts: 37
Joined: Wed Apr 22, 2009 6:07 am
Location: Denver, CO, USA

Re: changing page size

Postby TKR101010 » Sat Jun 27, 2009 8:32 am

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. :)

CarlCravens
Posts: 26
Joined: Wed May 27, 2009 7:32 am

Re: changing page size

Postby CarlCravens » Wed Jul 01, 2009 12:43 am

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.

Alberto
Posts: 4
Joined: Sat Jun 27, 2009 8:08 am

Re: changing page size

Postby Alberto » Thu Jul 09, 2009 5:01 am

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

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: changing page size

Postby ~suv » Thu Jul 09, 2009 8:01 am

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

Alberto
Posts: 4
Joined: Sat Jun 27, 2009 8:08 am

Re: changing page size

Postby Alberto » Fri Jul 10, 2009 1:57 am

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

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: changing page size

Postby ~suv » Fri Jul 10, 2009 8:10 am

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

Alberto
Posts: 4
Joined: Sat Jun 27, 2009 8:08 am

Re: changing page size

Postby Alberto » Fri Jul 10, 2009 8:40 am

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

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: changing page size

Postby ~suv » Wed Jul 15, 2009 2:28 am

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:
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


Return to “Help with using Inkscape”