From bb2dc227fbe628a66a3934e5d4f4f78361b59817 Mon Sep 17 00:00:00 2001 From: Ulf Erikson Date: Tue, 8 Aug 2006 16:58:09 +0000 Subject: Fix for Bug #1535136 (Export PDF with transparent gradient fails whith pdfllatex) Bug and solution found by gomyhr. (bzr r1572) --- src/extension/internal/pdf.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/extension/internal/pdf.cpp') diff --git a/src/extension/internal/pdf.cpp b/src/extension/internal/pdf.cpp index d4a15316b..c35e4d217 100644 --- a/src/extension/internal/pdf.cpp +++ b/src/extension/internal/pdf.cpp @@ -622,6 +622,13 @@ PrintPDF::print_fill_alpha(SVGOStringStream &os, SPStyle const *const style, NRR *pdf_xobj << " /S /Transparency\n"; *pdf_xobj << " /CS /DeviceGray \n"; *pdf_xobj << " >>\n"; + *pdf_xobj << " /Resources\n"; + *pdf_xobj << " <<\n"; + *pdf_xobj << " /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n"; + *pdf_xobj << " /Shading << " + << pdf_alpha->get_name() << " " + << pdf_alpha->get_id() << " 0 R >>\n"; + *pdf_xobj << " >>\n"; Inkscape::SVGOStringStream os_tmp; os_tmp.setf(std::ios::fixed); @@ -758,6 +765,13 @@ PrintPDF::print_fill_alpha(SVGOStringStream &os, SPStyle const *const style, NRR *pdf_xobj << " /S /Transparency\n"; *pdf_xobj << " /CS /DeviceGray \n"; *pdf_xobj << " >>\n"; + *pdf_xobj << " /Resources\n"; + *pdf_xobj << " <<\n"; + *pdf_xobj << " /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n"; + *pdf_xobj << " /Shading << " + << pdf_alpha->get_name() << " " + << pdf_alpha->get_id() << " 0 R >>\n"; + *pdf_xobj << " >>\n"; Inkscape::SVGOStringStream os_tmp; os_tmp.setf(std::ios::fixed); -- cgit v1.2.3