Export to PDF does not preserve the document size

Bug #166778 reported by Dotsig
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

If I create a file that has a custom page size (such as
4"x3") and then save it as a PDF, the .pdf file will
have US Letter page size (8.5"x11") instead of the
custom size. The result is a full page pdf with my tiny
drawing stuffed into the lower left corner of the page.

Revision history for this message
Ambs-users (ambs-users) wrote :

Had the same problem exporting an A4 paper, and resulting
the letter page. Exported to PS and converted to PDF with
ps2pdf -sPAPERSIZE=a4 foo.ps foo.pdf.

Revision history for this message
Bug Importer (bug-importer) wrote :

I had the same problem with A3 paper size export to PDF. The
image was cropped.

I used this workaround:
export to eps with bounding box
use epstopdf to create the PDF file

Revision history for this message
Wile (wile) wrote :

I experience the same problems. I have an A3
document in inkscape which result in an A4 PDF
document when exported. From the Jabber channel I
learnt, that inkscape saves as PS first and then relies
on ghostscript to convert to PDF. The error at hand is a
ghostscript issue, because a saved PS document has a
bounding box of correct size.

Specifying -sPAPERSIZE=A3 as argument for ps2pdf14
(which uses gs for conversion) results in a correct sized
PDF.

So I guess the right path is to cpmplain to the
ghostscript guys to get the PDF size from the PS
bounding box and perhaps to add a workaround to
inkscape to specify the papersize for ghostscript.

Revision history for this message
Bug Importer (bug-importer) wrote :

A wish related to this bug:

Once there is a workaround for the ghostscript page size
specification, it would be nice to have an option to export to pdf
with a page size that exactly encloses the selection (or the
complete drawing). This functionality already exists in the "Save
as eps" dialog for the bouding box.
This is needed e.g. when creating graphics to be used with
pdflatex.

Revision history for this message
Peddecke (peddecke) wrote :

The workaround with manually converting the ps/eps file to
pdf only works for images without transparency. (e)ps
doesn't support transparency, but pdf does. So I hope this
issue will be resolved soon. Thanks!

Revision history for this message
Bug Importer (bug-importer) wrote :

Any progress on this bug? It is really frustrating to work
with a large (11in x 14in) image and have it cropped to
letter size when exporting...

I think this bug deserves a higher priority: it makes export
to PDF unusable when working with large images.

By the way, if your image size is not one of the standard
ones (letter, A4, A3,...), then you can manually specify
size using the following option for ps2pdf:

-dDEVICEWIDTHPOINTS=w -dDEVICEHEIGHTPOINTS=h
where w, h is width and height in points (1pt=1/72 inch)

Revision history for this message
Ulferikson (ulferikson) wrote :

Fixed in svn. Will be in next release. Please try a nightly
build of either 0.44.1 or 0.45 and report any success or
failures.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.