[Interest] QPdfWriter - ability to embed XML?

Edward Sutton edward.sutton at subsite.com
Wed Jun 10 19:35:45 CEST 2015


Hi Giuseppe,

On Jun 10, 2015, at 11:57 AM, Giuseppe D'Angelo <dangelog at gmail.com<mailto:dangelog at gmail.com>> wrote:

On Wed, Jun 10, 2015 at 6:51 PM, Edward Sutton
<edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>> wrote:


Crap. It looks like I could have used QPdfWriter on iOS and saved me a lot
of Objective-C headaches.  I replaced QPrinter with QPdfWriter and it
basically seems to work except the fonts in the PDF are extremely tiny.  I
may have to switch to QPdfWriter now.

This looks like a bug that should have been already solved in 5.4.x.
If not, please report it!

I am using Qt 5.5 RC snapshot.

Are you saying the *very* *small* font size is a possible bug?

I changed to using pointsize and now my drawn text is legible.


However all output rendered using QTextDocument::setHtml(“<h3>Hello World</h3>”) still renders *very* *very* small.


I assumed the “tiny font” issue might be the result of QPdfWriter using point size for fonts and QPrinter was using pixel size?

-Ed


--
Giuseppe D'Angelo

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150610/2774a1fc/attachment.html>


More information about the Interest mailing list