r23611 by jghali - PDF : simplify groups structure when exporting to PDF 1.3
scribus-commit
scribus-commit at lists.scribus.net
Tue Apr 14 10:58:21 UTC 2020
Author: jghali
Date: Tue Apr 14 10:58:21 2020
New Revision: 23611
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23611
Log:
PDF : simplify groups structure when exporting to PDF 1.3
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23611&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Tue Apr 14 10:58:21 2020
@@ -5175,7 +5175,8 @@
trans.scale(ite->width() / ite->groupWidth, ite->height() / ite->groupHeight);
trans.translate(0.0, -ite->height());
tmp += TransformToStr(trans) + " cm\n";
- groupStackPos.push(QPointF(ite->xPos(), ite->height()));
+ if (Options.supportsTransparency())
+ groupStackPos.push(QPointF(ite->xPos(), ite->height()));
for (int em = 0; em < ite->groupItemList.count(); ++em)
{
PageItem* embedded = ite->groupItemList.at(em);
@@ -5191,11 +5192,13 @@
tmpD += output;
tmpD += "Q\n";
}
- groupStackPos.pop();
if (Options.supportsTransparency())
+ {
+ groupStackPos.pop();
tmp += Write_TransparencyGroup(ite->fillTransparency(), ite->fillBlendmode(), tmpD, ite);
+ }
else
- tmp += Write_FormXObject(tmpD, ite);
+ tmp += tmpD;
tmp += "Q\n";
}
break;
More information about the scribus-commit
mailing list