QtQt printing question - html to pdf

QtQt printing question - html to pdf

Steve G. wordz2u at gmail.com
Wed Nov 2 15:58:14 IST 2011


As a follow up to previous question - I am using Meir's script from
http://whatsup.org.il/article/6412 - which has hard coded A4 paper size.

Since my documents are for the Kindle, with screen size of 9 cm x 12.2 cm,
I tried replacing it with B7 (8.8 x 12.5), but the slight discrepancy in
length results in the last line cut up in the middle, so I want to use
paper size : custom. Alas, I can't find any example of where I stick my
'custom' dimensions and in what format. The code calls
for printer.setPageSize(QPrinter.B7 or A4 in the original)

Anyone has any experience in using QPrinter page size funtcion with custom
page size? How do I list the width and length? This is the variable from
trolltech's web site:  enum *PageSize* { A0, A1, A2, A3, ..., *Custom**)*

Thanks

Steve

http://www.words2u.net - GPS points and tracks (mainly in Costa Rica)

http://www.words2u.net/recipes - Recipe collection
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111102/e517f947/attachment.html>


More information about the Linux-il mailing list