Saving an imported PDF,as SVG doesn't work

Bug #231160 reported by Yoanis Gil Delgado
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

The attached file was converted from PS to PDF using the unix command ps2pdf. Inkscape it's able to successfully load the file and saving the drawing as SVG works. But, now, if the user tries to load the recently exported SVG, an erros is shown, saying:

'Failed to load the requested file /home/fred/Desktop/Output.prn.svg'

Here i'm attaching the system information where this bug happens:

Inkscape version:0.46, built Apr 7 2008

Distribution specific information (as reported by lsb_release)
Distributor ID: Ubuntu
Description: Ubuntu 8.04
Release: 8.04
Codename: hardy

Revision history for this message
Yoanis Gil Delgado (fred-uh) wrote :
Revision history for this message
Joe Ubuntu (josephdm) wrote :

I had a similar problem with the enclosed file on Windows--the file opened fine, but the saved SVG was unreadable.

On Ubuntu Hardy Heron / 8.04, Inkscape 0.46 / April 7, 2008 simply complains of an "internal error" and then is forced to quit when it tries to open it.

Revision history for this message
Joe Ubuntu (josephdm) wrote :

Yoanis's problem is still reproducible in Intrepid Ibex with Inkscape 0.46 10-24-2008

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed with 0.46, Ubuntu 8.10. Nemiver shows this trace:
----
#0 __kernel_vsyscall () at :0
#1 raise () at :0
#2 abort () at :0
#3 __gnu_cxx::__verbose_terminate_handler () at :0
#4 ?? () at :0
#5 std::terminate () at :0
#6 __cxa_throw () at :0
#7 std::__throw_length_error () at :0
#8 std::string::append () at :0
#9 Glib::ustring::append () at :0
#10 ?? () at :0
----

Terminal message:
----
terminate called after throwing an instance of 'std::length_error'
  what(): basic_string::append

Changed in inkscape:
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Oops, this error is not due to svg import, but pdf import. Looks like a new bug...
Please forget my last comment.

Changed in inkscape:
status: Confirmed → New
Revision history for this message
jazzynico (jazzynico) wrote :

Well, I can't even load your PDF file. Crashes with 0.46, and gives an error message in build 21016.
Console message in 21016:
/export/Inkscape/BugTest/Output.prn.pdf:1: parser error : Start tag expected, '<' not found
%PDF-1.4
^
Badly formated PDF?

Revision history for this message
su_v (suv-lp) wrote :

Confirmed with Inkscape 0.46+devel r22115 on OS X 10.5.8

Load of (previously imported 'Output.prn.pdf' and saved as) 'Output.prn-LeWitt.svg' fails with "parser error : PCDATA invalid Char value <...> " (see attached console log file)

related bugs:
Bug #305741 in Inkscape: “inkscape crashes during pdf import”
Bug #369861 in Inkscape: “Unable to open previously imported pdf file”
Bug #394472 in Inkscape: “Wrong characters in imported PDF”

Revision history for this message
su_v (suv-lp) wrote :

...and the SVG that Inkscape fails to load.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Gordon (gferris434) wrote :

This relates to Inkscape 0.46 running on Windows XP Professional Service Pack 2.

It may be related to these bugs:
  Bug #291416: SVG from imported PDF cannot be reopened, characters error
  Bug #297701: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set (duplicate of 291416)
  Bug #297702: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set

        I opened a multi-page pdf in Adobe Acrobat Reader 8.0, and then printed
the a single page to a postscript file using the "hp color LaserJet 2550PS (60.3
4.41.0)" driver. Then I used the ps2pdf script of ghostscript 8.54 on OpenBSD 4
.2 to convert the postscript file to a pdf (two-printed-by-reader-then-ps2pdf.pd
f). Back on Windows XP again, the pdf file appears properly in both Inkscape an
d Adobe Acrobat Reader 8.0.
        But something went wrong when the pdf file was then saved as an svg (two
-printed-by-reader-then-ps2pdf-then-saved-by-inkscape.svg) by Inkscape. When In
kscape tries to open the resultant svg file, it displays the error message "Fail
ed to load the requested file..." This seems to be the same as bug #291416.

Revision history for this message
Gordon (gferris434) wrote :

This relates to Inkscape 0.46 running on Windows XP Professional Service Pack 2.

It may be related to these bugs:
  Bug #291416: SVG from imported PDF cannot be reopened, characters error
  Bug #297701: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set (duplicate of 291416)
  Bug #297702: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set

        I opened a multi-page pdf in Adobe Acrobat Reader 8.0, and then printed
the a single page to a postscript file using the "hp color LaserJet 2550PS (60.3
4.41.0)" driver. Then I used the ps2pdf script of ghostscript 8.54 on OpenBSD 4
.2 to convert the postscript file to a pdf (two-printed-by-reader-then-ps2pdf.pd
f). Back on Windows XP again, the pdf file appears properly in both Inkscape an
d Adobe Acrobat Reader 8.0.
        But something went wrong when the pdf file was then saved as an svg (two
-printed-by-reader-then-ps2pdf-then-saved-by-inkscape.svg) by Inkscape. When In
kscape tries to open the resultant svg file, it displays the error message "Fail
ed to load the requested file..." This seems to be the same as bug #291416.

Revision history for this message
Gordon (gferris434) wrote :

Hopefully this is easier on the eyes than my last post. The description is the same, but the attachment is the resulting svg file.
---
This relates to Inkscape 0.46 running on Windows XP Professional Service Pack 2.

It may be related to these bugs:
  Bug #291416: SVG from imported PDF cannot be reopened, characters error
  Bug #297701: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set (duplicate of 291416)
  Bug #297702: Cannot open SVG file that was saved from a PDF opened with "Embed
 Images" option set

        I opened a multi-page pdf in Adobe Acrobat Reader 8.0, and then printed the a single page to a postscript file using the "hp color LaserJet 2550PS (60.34.41.0)" driver. Then I used the ps2pdf script of ghostscript 8.54 on OpenBSD 4.2 to convert the postscript file to a pdf (two-printed-by-reader-then-ps2pdf.pdf). Back on Windows XP again, the pdf file appears properly in both Inkscape and Adobe Acrobat Reader 8.0.
        But something went wrong when the pdf file was then saved as an svg (two-printed-by-reader-then-ps2pdf-then-saved-by-inkscape.svg) by Inkscape. When Inkscape tries to open the resultant svg file, it displays the error message "Failed to load the requested file..." This seems to be the same as bug #291416.

Revision history for this message
Beluga (buovjaga) wrote :

No problem loading svg saved from Output.prn.pdf.

Win 7 64-bit
Inkscape 0.91 r13725

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP (32-bit), Inkscape 0.47 and 0.48.4.
Not reproduced with 0.48.5 and 0.91.

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.48.5
status: Confirmed → Fix Released
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.