trunk: PDF imports with incorrect (huge) scale (r12557)

Bug #1228660 reported by su_v on 2013-09-21
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Matthew Petroff

Bug Description

Steps to reproduce:
1) launch inkscape (default prefs, default doc)
2) open a PDF file e.g. with page size A4
3) zoom to drawing content ('4')

Expected result:
The full A4 page is visible in the current window

Actual result:
Only a small portion is visible, because the size of the drawing exceeds the max zoomed-out level

Tested with Inkscape 0.48+devel r12568 on OS X 10.7.5
Note: I haven't tried other import formats.

Based on tests with archived builds:
- r12556 and older revisions: import as expected
- r12557 and later: incorrect scale of the imported page

Revision 12557: Use viewBox for new documents.
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12557>

su_v (suv-lp) on 2013-09-21
tags: added: viewbox
removed: units
Changed in inkscape:
milestone: none → 0.49
su_v (suv-lp) wrote :

On Ubuntu 12.10 (VM, 64bit):
- not reproduced with earlier build (r12550)
- reproduced with latest build (r12569)

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
su_v (suv-lp) wrote :

@Matthew - could you take a look at what happens with the viewBox and the document size when opening a PDF file with current trunk?

Alvin Penner (apenner) wrote :

- confirmed on Windows XP, rev 12568
- for pdf import, in the XML editor, the default value of the viewBox is given as 0 0 1 1.
- the scaling is improved if the viewBox is defined as 0 0 width height, where width and height are taken from the header svg element.

su_v (suv-lp) on 2013-09-21
Changed in inkscape:
status: Confirmed → Triaged
su_v (suv-lp) wrote :

~suv wrote:
> Note: I haven't tried other import formats.

Related issue when opening bitmap images:
- Bug #1228693 “page size = 1px by 1px for bitmap imports (rev 12568)”
  <https://bugs.launchpad.net/inkscape/+bug/1228693>

su_v (suv-lp) wrote :

~suv wrote:
> Note: I haven't tried other import formats.

AFAICT related issue when opening SVG files:
- Bug #1228852 ”trunk: incorrect page size for SVG from SVG test suite (r12554)”
  <https://bugs.launchpad.net/inkscape/+bug/1228852>

Fixed in r12575.

Changed in inkscape:
assignee: nobody → Matthew Petroff (matthewpetroff)
status: Triaged → Fix Released
su_v (suv-lp) wrote :

Build failure (build has VSD and CDR support enabled) r12575:

  CXX extension/internal/vsd-input.o
../../src/document.h: In member function ‘virtual SPDocument* Inkscape::Extension::Internal::VsdInput::open(Inkscape::Extension::Input*, const gchar*)’:
../../src/document.h:93: error: ‘SPRoot* SPDocument::root’ is private
../../src/extension/internal/vsd-input.cpp:259: error: within this context
../../src/extension/internal/vsd-input.cpp:260: error: invalid use of incomplete type ‘struct Inkscape::Util::Quantity’
../../src/document.h:50: error: forward declaration of ‘struct Inkscape::Util::Quantity’
../../src/extension/internal/vsd-input.cpp:260: error: invalid use of incomplete type ‘struct Inkscape::Util::Quantity’
../../src/document.h:50: error: forward declaration of ‘struct Inkscape::Util::Quantity’
make[3]: *** [extension/internal/vsd-input.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@suv It should be fixed in r12576.

su_v (suv-lp) wrote :

@Matthew - build fix in r12576 confirmed, thx a lot!

su_v (suv-lp) on 2013-09-22
Changed in inkscape:
milestone: 0.49 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers