PDF export of complex drawing does not end-up sucesfully

Bug #181789 reported by atarian
4
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned

Bug Description

OS: Windows XP SP2 EN
Inkscape: reproducable on all recent daily builds from mid Dec 2007 /till today (Inkscape0801092138.7z)

From some reason, Inkscape does not export more complex drawings to PDF (via Cairo) sucesfully now. It, however, displays no error message at all, only resulting PDF file is just 17 bytes long and appearently contains no data. When trying to open the file with Adobe tools I get "Corrupetd file" error message. By more complex I mean for example drawing that contains nothing else but basic shape objects, fills and text objects. All SVG source files could have been exported fawlessly prior to approx. mid December 2007. Unfortunatelly, I can not point out exactly on object/coinsidence that prevents Inkscape from exporting to PDF correctly now and beeing on Windows I have no chance to see any console outputs.

Also, no texture object fills are exported to PDF files, only solid color fills are exported. This is seen on any build from 0.45 onwards.

Revision history for this message
atarian (atarian) wrote :
Revision history for this message
atarian (atarian) wrote :
Revision history for this message
bbyak (buliabyak) wrote :

confirmed, linux r17011

Changed in inkscape:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

I can export this file successfully to PDF (with or without converting text to path) under linux, SVN rev 17039, file attached. Atarian could you try with the latest SVN and see if it is also now working on your machine?

I have following versions of Cairo and poppler
[tjd@mamquam figures]$ pkg-config --modversion cairo
1.2.6
[tjd@mamquam figures]$ pkg-config --modversion poppler
0.5.4

Revision history for this message
atarian (atarian) wrote :

I confirm the export is still corrupted with latesst SVN: inkscape-0801141700.7z

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Priority high--this is not a crash or data loss bug...

Changed in inkscape:
importance: Critical → High
Revision history for this message
bbyak (buliabyak) wrote :

It's not the complexity that triggers it. Some interplay of opacity and text, most likely a problem with cairo. I attach two simple files, pass.svg exports OK and fail.svg takes all memory, hangs for several minutes, then produces the 17 bytes PDF file. The only difference between them is the opacity of the background rectangle under text. My cairo is 1.5.2. You can test them without running the gui, from command line:

inkscape --export-pdf out.pdf pass.svg

inkscape --export-pdf out.pdf fail.svg

Revision history for this message
bbyak (buliabyak) wrote :
Revision history for this message
Adrian Johnson (ajohnson-redneon) wrote :

I can successfully export both fail.svg and the svg in comment 2 to PDF. I am using r17330 on Linux and tested with both cairo 1.5.11 and 1.4.10.

If cairo leaves an unfinished PDF file, the cairo surface will have an error status that can be queried. The following bug report has more information on cairo error checking:
https://bugs.launchpad.net/inkscape/+bug/181692

Revision history for this message
bbyak (buliabyak) wrote : Re: [Bug 181789] Re: PDF export of complex drawing does not end-up sucesfully

On Mon, Feb 25, 2008 at 9:45 AM, Adrian Johnson <email address hidden> wrote:
> I can successfully export both fail.svg and the svg in comment 2 to PDF.
> I am using r17330 on Linux and tested with both cairo 1.5.11 and 1.4.10.

what version of pixman you have?

I will now try with cairo 1.5.10, could not find 11 on their site

Revision history for this message
bbyak (buliabyak) wrote :

ok, cairo 1.5.10 works fine! no freeze and pdf is good on any files i tested it with.

so we just need to upgrade cairo requirements

Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
Tim Holy (holy-wustl) wrote :

Under Kubuntu Hardy, PDF export of transparency doesn't work. I've attached a simple SVG & the corresponding PDF produced on my system.

Here's info on any packages related to cairo:

tim@diva:~/mydocs/bugreports$ dpkg -l *cairo*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
un libcairo <none> (no description available)
un libcairo-dev <none> (no description available)
ii libcairo-perl 1.043-1 Perl interface to the Cairo graphics library
un libcairo0.5.1 <none> (no description available)
un libcairo0.5.1-de <none> (no description available)
un libcairo0.6.0 <none> (no description available)
un libcairo0.6.0-de <none> (no description available)
un libcairo0.9.0 <none> (no description available)
un libcairo0.9.0-de <none> (no description available)
un libcairo1 <none> (no description available)
ii libcairo2 1.6.0-0ubuntu1 The Cairo 2D vector graphics library
ii libcairo2-dev 1.6.0-0ubuntu1 Development files for the Cairo 2D graphics libr
un libcairo2-doc <none> (no description available)
un libcairomm-1.0-0 <none> (no description available)
ii libcairomm-1.0-1 1.4.2-1 C++ wrappers for Cairo (shared libraries)
ii libcairomm-1.0-d 1.4.2-1 C++ wrappers for Cairo (development files)
un libcairomm-1.0-d <none> (no description available)
pn python-cairo <none> (no description available)
un python2.3-cairo <none> (no description available)
un python2.4-cairo <none> (no description available)
un python2.5-cairo <none> (no description available)

Revision history for this message
Tim Holy (holy-wustl) wrote :

One more note: when I save as a PDF, the only choice in the pulldown menu is "PDF 1.4."

Revision history for this message
Mathieu Clabaut (mathieu.clabaut) wrote :

Same problem with the following SVG : Exported PDF doesn't embed every objects, with last SVN revision 20973

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.