summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qprintengine_pdf_p.h
diff options
context:
space:
mode:
authorJakob Truelsen <antialize@gmail.com>2010-05-03 21:08:10 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-05-04 11:14:12 +0200
commite9f9887cfb6f3eace17640cb951f847d2e4a8c53 (patch)
tree02c82f8c2cc5a7e2dbefa3eb34b87ae66ac93be9 /src/gui/painting/qprintengine_pdf_p.h
parent3326a5811fbd50add0aa370af39f4a69b3a5480e (diff)
Propperly escape title and creator in PDF documents
The title and creator fields in the PDF information section were not propperly escaped leading to invalid pdf documents when the title contain ')','(','\' (or any of the bazilion utf16 characters where one of the bytes happen to be the same as the ascii code for one of these). Merge-request: 2375 Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'src/gui/painting/qprintengine_pdf_p.h')
-rw-r--r--src/gui/painting/qprintengine_pdf_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qprintengine_pdf_p.h b/src/gui/painting/qprintengine_pdf_p.h
index cb6c59ddb6..e0ca56fba1 100644
--- a/src/gui/painting/qprintengine_pdf_p.h
+++ b/src/gui/painting/qprintengine_pdf_p.h
@@ -170,6 +170,7 @@ private:
void writePage();
int addXrefEntry(int object, bool printostr = true);
+ void printString(const QString &string);
void xprintf(const char* fmt, ...);
inline void write(const QByteArray &data) {
stream->writeRawData(data.constData(), data.size());