r18902 by fschmid - Fixed Bug #12129: More ODG import and also PDF export oddities
scribus-commit
scribus-commit at lists.scribus.net
Tue Mar 11 20:54:00 UTC 2014
Author: fschmid
Date: Tue Mar 11 20:54:00 2014
New Revision: 18902
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18902
Log:
Fixed Bug #12129: More ODG import and also PDF export oddities
Additional fix: apply gradient transparency correctly.
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18902&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Tue Mar 11 20:54:00 2014
@@ -7262,6 +7262,7 @@
PutDoc("/BitsPerCoordinate 32\n");
PutDoc("/BitsPerComponent 16\n");
PutDoc("/BitsPerFlag 8\n");
+ PutDoc("/Background [1]\n");
QByteArray vertStreamT;
QDataStream vst(&vertStreamT, QIODevice::WriteOnly);
vst.setByteOrder(QDataStream::BigEndian);
@@ -7619,22 +7620,6 @@
PutDoc(">>\nstream\n"+EncStream(colorDesc, spotObject)+"\nendstream\nendobj\n");
}
QString tmp;
- tmp += "q\n";
- if (((Options.Version >= PDFOptions::PDFVersion_14) || (Options.Version == PDFOptions::PDFVersion_X4)) && (transparencyFound))
- {
- QString ShName = ResNam+QString::number(ResCount);
- ResCount++;
- Transpar[ShName] = writeGState("/ca "+FToStr(TransVec.last())+"\n/SMask /None\n/AIS false\n/OPM 1\n");
- tmp += "/"+ShName+" gs\n";
- }
- tmp += putColor(colorNames.last(), colorShades.last(), true);
- tmp += SetPathAndClip(c);
- tmp += FToStr(c->GrControl1.x())+" "+FToStr(-c->GrControl1.y())+" m\n";
- tmp += FToStr(c->GrControl2.x())+" "+FToStr(-c->GrControl2.y())+" l\n";
- tmp += FToStr(c->GrControl3.x())+" "+FToStr(-c->GrControl3.y())+" l\n";
- tmp += FToStr(c->GrControl4.x())+" "+FToStr(-c->GrControl4.y())+" l\n";
- tmp += "h\nf*\n";
- tmp += "Q\n";
if (((Options.Version >= PDFOptions::PDFVersion_14) || (Options.Version == PDFOptions::PDFVersion_X4)) && (transparencyFound))
tmp += "/"+TRes+" gs\n";
tmp += "/Pattern cs\n";
More information about the scribus-commit
mailing list