Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
4.8.5, 5.1.1, 5.2.0
-
None
-
Mac OS X 10.8.3, Mac OX 10.9
Description
When printing to PDF, all text in the resulting PDF are converted to outline path instead of character strings. This makes it impossible to search for text in the PDF.
Run the sample code below and open the resulted PDF in Acrobat. Search for any text and none will be found. It also disallows coping text from the PDF. See the attached PDF.
#include <QApplication> #include <QPrinter> #include <QPrintDialog> #include <QPainter> #include <QDebug> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPrinter p; p.setOutputFileName("test.pdf"); QPainter painter(&p); QFont f("Helvetica", 30); qDebug() << f.exactMatch(); painter.setFont(f); painter.drawText(50, 150, "This text is not seachable."); painter.end(); return 0;//a.exec(); }
Attachments
Issue Links
- depends on
-
QTBUG-10094 PostScript / PDF font embedding fails on Mac 64-bit due to unimplemented methods in QCoreTextFontEngine
- Closed
- is required for
-
QTBUG-25379 QtPrintSupport - PDF Issues
- Open
-
QTBUG-37693 QtPrintSupport - Painting Issues
- Open
-
QTBUG-37713 QtPrintSupport - 5.3 issues
- Open
- relates to
-
QTBUG-13826 PDF has a much larger file size in cocoa compared to carbon
- Closed