save as PDF loses jpegs & bitmaps
I upgraded to 0.44 (using svn) for the enhanced transparency handling but - altho' I do get vector graphics retaining their transparency when saving to PDF - I am now losing all .png .jpg and bitmaps. They don't show up at all.
ldd /bin/inkscape shows that all dependencies are met on my Ubuntu Dapper box running kernel 2.6.15.
Am I missing something simple or is this a bug?
Werner van Staden schrieb:
I upgraded to 0.44 (using svn) for the enhanced transparency handling but - altho' I do get vector graphics retaining their transparency when saving to PDF - I am now losing all .png .jpg and bitmaps. They don't show up at all.
ldd /bin/inkscape shows that all dependencies are met on my Ubuntu Dapper box running kernel 2.6.15.
Am I missing something simple or is this a bug?
This is a known limitation :-( http://sourceforge.net/tracker/index.php?func=detail&aid=1519240&gro... There is a patch available that does pdf export via cairo library. http://sourceforge.net/tracker/index.php?func=detail&aid=1519675&gro... You can help investigationg if applying the patch will break some dependencies if you can tell if cairo is running on your pc and which version you have! What distro do you have? And which version of libcairo2 does it contain?
Thx, Adib. ---
Adib Taraben wrote:
Werner van Staden schrieb:
I upgraded to 0.44 (using svn) for the enhanced transparency handling but - altho' I do get vector graphics retaining their transparency when saving to PDF - I am now losing all .png .jpg and bitmaps. They don't show up at all.
The new PDF exporter writes PDF directly while the earlier PDF exporter actually wrote postscript files that where converted to PDF files. This limited the resulting PDF to features available in PS (no transparency, for instance), but being new and immature the new PDF exporter miss several features the old PS->PDF conversion had; such as text objects and embedded bitmaps.
The plan with including the new PDF exporter in 0.44 was/is to have a Google student extend/rewrite it (or maybe just use it as a study object and later abandon it) and finally make Inkscape export PDF files by use of Cairo. http://sourceforge.net/mailarchive/message.php?msg_id=15820481
Bugs filed today on dash-patterns, miter-limits and transparency will directly help the next PDF exporter.
This is a known limitation :-(
Maybe these are a more accurate links: http://sourceforge.net/mailarchive/message.php?msg_id=15412294 http://sourceforge.net/tracker/index.php?func=detail&aid=1472677&gro...
You can always use the old route and go SVG->PS->PDF if you need images. Simply re-activate the old ps2pdf.inx extension you are back with the same PDF exporter is 0.43.
There is a patch available that does pdf export via cairo library. http://sourceforge.net/tracker/index.php?func=detail&aid=1519675&gro...
Err.. bug-fixes to the current PDF exporter are not picked-up?
On 7/11/06, Ulf Erikson <ulferikson@...155...> wrote:
There is a patch available that does pdf export via cairo library. http://sourceforge.net/tracker/index.php?func=detail&aid=1519675&gro...
Err.. bug-fixes to the current PDF exporter are not picked-up?
I think the fair and straightforward thing to do is to let both codebases develop. If and when the cairo one overcomes the current one in terms of quality and features, replace it. But until then, please do not drop the ball with bugfixing and adding features to the current implementation as well. The more work you do on it, the better are its changes of eventually winning the race :)
Thanks Ulf & Adib for your replies,
I installed Cairo 1.2 on my Ubuntu Dapper workstation, applied the Cairo patch to Inkscape svn sources and recompiled - it went well and 'ldd /usr/local/bin/inkscape' shows all dependencies met. But alas, still no bitmaps in files saved as PDF...
So I implemented a solution that DOES work (in deed not in code) and with this method I can successfully export a PDF with bitmaps, text and vectors that look exactly like what I see onscreen on my inkscape canvas:
1. downgrade inkscape back to 0.43 (bitmaps recognised by PDF export) 2. open your SVG and remove all text and vectors from the canvas 3. export remaining bitmaps as a single high resolution bitmap (this step avoids those black rectangles that result from PDF export process mangling transparent bitmaps) 4. revert to the original SVG (containing ALL elements) 5. import the bitmap generated in step 3, resize & position it 6. remove the individual bitmap images that are now redundant 7. select all text elements and select: PATH > OBJECT TO PATH this ensures that the PDF conversion process does not mess with your font appearance 8. SAVE as PDF and view with acroread
A long work-around , I know, but I am intent on using open source - eventho' my CEO has been waiting for her PDFs for over 3 weeks now and she has threatened to outlaw Linux from the organisation... Until such time as Cairo pdf-export delivers, the above workaround has saved me from having to listen to the 'microsoft sound' before begrudgingly starting up Freehand or some such beourgois 'design solution'.
Any request or suggestions are welcome. May the FOSS be with you! W
On Tue, 2006-07-11 at 11:35 +0200, Ulf Erikson wrote:
Adib Taraben wrote:
Werner van Staden schrieb:
I upgraded to 0.44 (using svn) for the enhanced transparency handling but - altho' I do get vector graphics retaining their transparency when saving to PDF - I am now losing all .png .jpg and bitmaps. They don't show up at all.
The new PDF exporter writes PDF directly while the earlier PDF exporter actually wrote postscript files that where converted to PDF files. This limited the resulting PDF to features available in PS (no transparency, for instance), but being new and immature the new PDF exporter miss several features the old PS->PDF conversion had; such as text objects and embedded bitmaps.
The plan with including the new PDF exporter in 0.44 was/is to have a Google student extend/rewrite it (or maybe just use it as a study object and later abandon it) and finally make Inkscape export PDF files by use of Cairo. http://sourceforge.net/mailarchive/message.php?msg_id=15820481
Bugs filed today on dash-patterns, miter-limits and transparency will directly help the next PDF exporter.
This is a known limitation :-(
Maybe these are a more accurate links: http://sourceforge.net/mailarchive/message.php?msg_id=15412294 http://sourceforge.net/tracker/index.php?func=detail&aid=1472677&gro...
You can always use the old route and go SVG->PS->PDF if you need images. Simply re-activate the old ps2pdf.inx extension you are back with the same PDF exporter is 0.43.
There is a patch available that does pdf export via cairo library. http://sourceforge.net/tracker/index.php?func=detail&aid=1519675&gro...
Err.. bug-fixes to the current PDF exporter are not picked-up?
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Werner van Staden wrote:
- downgrade inkscape back to 0.43 (bitmaps recognised by PDF export)
This is basically the postscript exporter followed by a PS->PDF conversion. You can do that with 0.44 too. See pdf_output.inx in inkscape/share/extensions/ directory.
- open your SVG and remove all text and vectors from the canvas
- export remaining bitmaps as a single high resolution bitmap (this step avoids those black rectangles that result from PDF export process mangling transparent bitmaps)
The black boxes are because postscript doesn't support transparency. If all you need is full transparent and full opaque I have added some basic code for masking images lately. Feel free to try it and report any problems.
- revert to the original SVG (containing ALL elements)
- import the bitmap generated in step 3, resize & position it
- remove the individual bitmap images that are now redundant
- select all text elements and select: PATH > OBJECT TO PATH
this ensures that the PDF conversion process does not mess with your font appearance 8. SAVE as PDF and view with acroread
On Wed, 2006-07-12 at 12:20 +0200, Ulf Erikson wrote:
Werner van Staden wrote:
- downgrade inkscape back to 0.43 (bitmaps recognised by PDF export)
This is basically the postscript exporter followed by a PS->PDF conversion. You can do that with 0.44 too. See pdf_output.inx in inkscape/share/extensions/ directory.
Ulf, this is the problem - my builds of 0.44 (stable as well as subversion) do not recognise bitmaps - bitmap images do not show up in the file saved as a PDF at all, only vector graphics do.
- open your SVG and remove all text and vectors from the canvas
- export remaining bitmaps as a single high resolution bitmap (this step avoids those black rectangles that result from PDF export process mangling transparent bitmaps)
The black boxes are because postscript doesn't support transparency. If all you need is full transparent and full opaque I have added some basic code for masking images lately. Feel free to try it and report any problems.
I will be happy to try this and report my experiences. Please provide links to the code plus some basic usage guidance if necessary.
- revert to the original SVG (containing ALL elements)
- import the bitmap generated in step 3, resize & position it
- remove the individual bitmap images that are now redundant
- select all text elements and select: PATH > OBJECT TO PATH
this ensures that the PDF conversion process does not mess with your font appearance 8. SAVE as PDF and view with acroread
Werner van Staden wrote:
Ulf, this is the problem - my builds of 0.44 (stable as well as subversion) do not recognise bitmaps - bitmap images do not show up in the file saved as a PDF at all, only vector graphics do.
There are two PDF exporters in 0.44; one native which can export transparency, and one postscript-based which can export bitmaps (and hopefully a third Cairo-based PDF exporter will be ready for 0.45, capable of exporting both transparency and bitmaps).
Each exporter has a unique entry in the export list. Just like you see different SVG exporters (Inkscape, Plain, Compressed, etc) you can see different Pdf exporters (maybe one is named "Adobe Pdf" and the other "Portable Document Format"?), but only if they are all enabled. The postscript-based PDF exporter is *disabled* in 0.44.
Please make sure that you test the right exporter and feel free to file a bug report if you do.
On 7/11/06, Adib Taraben <taraben.a@...881...> wrote:
There is a patch available that does pdf export via cairo library.
http://sourceforge.net/tracker/index.php?func=detail&aid=1519675&gro... You can help investigationg if applying the patch will break some dependencies if you can tell if cairo is running on your pc and which version you have! What distro do you have? And which version of libcairo2 does it contain?
Thx, Adib.
hi, i try this patch too, but it don't work here for me :-(
extension/libextension.a(init.o): In function `Inkscape::Extension::init()': extension/init.cpp:111: undefined reference to `Inkscape::Extension::Internal::PrintPDFCairo::init()' collect2: ld returned 1 exit status make[2]: *** [inkscape] Fehler 1 make[2]: Leaving directory `/home/markuman/eigenePKGs/jetzt/inkscape-0.44 /src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/markuman/eigenePKGs/jetzt/inkscape-0.44' make: *** [all] Fehler 2
any ideas ???
greetings markus bergholz
participants (5)
-
Adib Taraben
-
bulia byak
-
Markus Bergholz
-
Ulf Erikson
-
Werner van Staden