From dadfb92ad441ead3d6af0af28a7573caec48503d Mon Sep 17 00:00:00 2001 From: ulferikson Date: Tue, 8 Aug 2006 16:58:09 +0000 Subject: [PATCH] Fix for Bug #1535136 (Export PDF with transparent gradient fails whith pdfllatex) Bug and solution found by gomyhr. --- src/extension/internal/pdf.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- 2.30.2