diff options
| author | Ulf Erikson <ulferikson@gmail.com> | 2006-08-08 16:58:09 +0000 |
|---|---|---|
| committer | ulferikson <ulferikson@users.sourceforge.net> | 2006-08-08 16:58:09 +0000 |
| commit | bb2dc227fbe628a66a3934e5d4f4f78361b59817 (patch) | |
| tree | 6a1f6ea4e6c9686c7f40d002bb0e447f6fe747c6 /src/extension/internal/pdf.cpp | |
| parent | Cleanup (diff) | |
| download | inkscape-bb2dc227fbe628a66a3934e5d4f4f78361b59817.tar.gz inkscape-bb2dc227fbe628a66a3934e5d4f4f78361b59817.zip | |
Fix for Bug #1535136 (Export PDF with transparent gradient fails whith pdfllatex)
Bug and solution found by gomyhr.
(bzr r1572)
Diffstat (limited to 'src/extension/internal/pdf.cpp')
| -rw-r--r-- | src/extension/internal/pdf.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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);
|
