From: ulferikson Date: Tue, 8 Aug 2006 16:58:09 +0000 (+0000) Subject: Fix for Bug #1535136 (Export PDF with transparent gradient fails whith pdfllatex) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dadfb92ad441ead3d6af0af28a7573caec48503d;p=inkscape.git Fix for Bug #1535136 (Export PDF with transparent gradient fails whith pdfllatex) Bug and solution found by gomyhr. --- 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);