Hi,
I attached the patch which can be used to try out PDF printing with Cairo. It's still in the early stages of development, with rudimentary text support, image support, and gradient support. In order to use native non-alpha gradients in PDF a patch for Cairo has to be applied (otherwise the result will be just fallback images when using gradients) which can be found there: http://lists.freedesktop.org/archives/cairo/2006-June/007300.html [note that this patch introduces a bug: fallback images will be mistransformed]. First the patch.bin has to be applied to the inkscape source tree, then the pdf-cairo.* files have to be copied to src/extension/internal. Then do the usual build process starting with invoking autogen. Please feel free to test this and report any of your findings on this list.
Best regards, miklos
Miklos,
thanks for the patch. I think the pdf cairo feature will be very important. I run the patch on win32. It works so far even with images :-) Good work. Thanks for your effort.
Adib. ---
Miklós Erdélyi schrieb:
Hi,
I attached the patch which can be used to try out PDF printing with Cairo. It's still in the early stages of development, with rudimentary text support, image support, and gradient support. In order to use native non-alpha gradients in PDF a patch for Cairo has to be applied (otherwise the result will be just fallback images when using gradients) which can be found there: http://lists.freedesktop.org/archives/cairo/2006-June/007300.html [note that this patch introduces a bug: fallback images will be mistransformed]. First the patch.bin has to be applied to the inkscape source tree, then the pdf-cairo.* files have to be copied to src/extension/internal. Then do the usual build process starting with invoking autogen. Please feel free to test this and report any of your findings on this list.
Best regards, miklos
hi, the patch don't work here for me!
and why are you patching src/extension/internal/Makefile_insert two times and both with the same entries???
and here is my error output after patching and configure.
------------------------------ $ make ... mkdir .libs g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o libinkpre.a application/libi nkapp.a ui/dialog/libuidialog.a dialogs/libspdialogs.a jabber_whiteboard/libjabber_whiteboard.a trace/libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/ libspchelp.a libcroco/libcroco.a libnrtype/libnrtype.a libnr/libnr.a libavoid/libavoid.a livarot/libvarot.a ui/view/libuiview.a ui/libui.a ui/widget/libuiwidget.a graphlayout/libgra phlayout.a removeoverlap/libremoveoverlap.a extension/libextension.a extension/implementation/libimplementation.a extension/internal/libinternal.a extension/script/libscript.a dom/l ibdom.a xml/libspxml.a util/libinkutil.a io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 - lpangomm-1.4 -lglibmm-2.4 -lxslt -lxml2 -lsigc-2.0 -lgtkspell -laspell -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0-lgdk_pixbuf- 2.0 -lpangocairo-1.0 -lcairo -lpng -lpopt -pthread -L/opt/gnome/lib -lgnomevfs-2 -lbonobo-2 -lgconf -2 -lbonobo-activation -lORBit-2 -lm -lgthread-2.0 -lXft -lXrender -lfontconfig -lX11 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0-ldl - lglib-2.0 -lfreetype -lz -lgc -llc ms 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] Error 1 make[2]: Leaving directory `/home/markuman/eigenePKGs/inkscape-0.44 /inkscape-0.44/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/markuman/eigenePKGs/inkscape-0.44 /inkscape-0.44' make: *** [all] Error 2 ----------------------------------------
or did i something wrong?
i'm on arch linux - using kernel 2.6.17 and gcc (GCC) 4.1.1
greetings markus bergholz
Hello Markus,
Your problem is the linking you need to include cairo as a lib into the call to the linker. I guess your add: -lcairo. I do not know how to do this the autotools way :-(
On win32 I have to do this manually in Makefile.mingw.common. And as cairo is already there I commited this small patch already to the trunk :-)
HTH,
Adib. --- Markus Bergholz schrieb:
hi, the patch don't work here for me!
and why are you patching src/extension/internal/Makefile_insert two times and both with the same entries???
and here is my error output after patching and configure.
$ make ... mkdir .libs g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o libinkpre.a application/libi nkapp.a ui/dialog/libuidialog.a dialogs/libspdialogs.a jabber_whiteboard/libjabber_whiteboard.a trace/libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/ libspchelp.a libcroco/libcroco.a libnrtype/libnrtype.a libnr/libnr.a libavoid/libavoid.a livarot/libvarot.a ui/view/libuiview.a ui/libui.a ui/widget/libuiwidget.a graphlayout/libgra phlayout.a removeoverlap/libremoveoverlap.a extension/libextension.a extension/implementation/libimplementation.a extension/internal/libinternal.a extension/script/libscript.a dom/l ibdom.a xml/libspxml.a util/libinkutil.a io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lglibmm-2.4 -lxslt -lxml2 -lsigc-2.0 -lgtkspell -laspell - lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpng -lpopt -pthread -L/opt/gnome/lib -lgnomevfs-2 -lbonobo-2 -lgconf -2 -lbonobo-activation -lORBit-2 -lm -lgthread-2.0 -lXft -lXrender -lfontconfig -lX11 - lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lgc -llc ms 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] Error 1 make[2]: Leaving directory `/home/markuman/eigenePKGs/inkscape-0.44/inkscape-0.44/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/markuman/eigenePKGs/inkscape- 0.44/inkscape-0.44' make: *** [all] Error 2
or did i something wrong?
i'm on arch linux - using kernel 2.6.17 and gcc (GCC) 4.1.1
greetings markus bergholz
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-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
hm? ... -lcairo is allready in the makefile
:-/ don't know why it won't be compiled...
greetings markus bergholz
On 7/4/06, Adib Taraben <taraben.a@...50...> wrote:
Hello Markus,
Your problem is the linking you need to include cairo as a lib into the call to the linker. I guess your add: -lcairo. I do not know how to do this the autotools way :-(
On win32 I have to do this manually in Makefile.mingw.common. And as cairo is already there I commited this small patch already to the trunk :-)
HTH,
Adib.
Markus Bergholz schrieb:
hi, the patch don't work here for me!
and why are you patching src/extension/internal/Makefile_insert two times and both with the same entries???
and here is my error output after patching and configure.
$ make ... mkdir .libs g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o libinkpre.a application/libi nkapp.a ui/dialog/libuidialog.a dialogs/libspdialogs.a jabber_whiteboard/libjabber_whiteboard.a trace/libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/ libspchelp.a libcroco/libcroco.a libnrtype/libnrtype.a libnr/libnr.a libavoid/libavoid.a livarot/libvarot.a ui/view/libuiview.a ui/libui.a ui/widget/libuiwidget.a graphlayout/libgra phlayout.a removeoverlap/libremoveoverlap.a extension/libextension.a extension/implementation/libimplementation.a extension/internal/libinternal.a extension/script/libscript.a dom/l ibdom.a xml/libspxml.a util/libinkutil.a io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lglibmm-2.4 -lxslt -lxml2 -lsigc-2.0 -lgtkspell -laspell - lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpng -lpopt -pthread -L/opt/gnome/lib -lgnomevfs-2 -lbonobo-2 -lgconf -2 -lbonobo-activation -lORBit-2 -lm -lgthread-2.0 -lXft -lXrender -lfontconfig -lX11 - lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lgc -llc ms 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] Error 1 make[2]: Leaving directory `/home/markuman/eigenePKGs/inkscape-0.44/inkscape-0.44/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/markuman/eigenePKGs/inkscape- 0.44/inkscape-0.44' make: *** [all] Error 2
or did i something wrong?
i'm on arch linux - using kernel 2.6.17 and gcc (GCC) 4.1.1
greetings markus bergholz
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-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
-- WIGE INNOVATION GmbH Wiesenring 11, D-04159 Leipzig, Germany
Adib Taraben Electronics Engineer
PHONE +49 (0)341 - 46 21 222 FAX +49 (0)341 - 46 21 400 E-MAIL taraben.a@...50... INTERNET www.wige-innovation.de
participants (3)
-
Adib Taraben
-
Markus Bergholz
-
Miklós Erdélyi