<span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:13px">As a follow up to previous question - I am using Meir's script from <a href="http://whatsup.org.il/article/6412" style="color:rgb(17, 85, 204)" target="_blank">http://whatsup.org.il/article/6412</a> - which has hard coded A4 paper size. <div>
<br></div><div>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)</div>
<div><br></div><div>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: <span style="color:rgb(34, 34, 34);line-height:16px;font-family:arial, sans-serif">enum <em style="font-weight:bold;font-style:normal;color:rgb(0, 0, 0)">PageSize</em> { A0, A1, A2, A3, ..., <em style="font-weight:bold;font-style:normal;color:rgb(0, 0, 0)">Custom</em><em style="font-style:normal;color:rgb(0, 0, 0)">)</em> </span></div>
<div>
<div><br></div><div>Thanks</div></div><div><br></div></span><div>Steve</div><div><br></div><a href="http://www.words2u.net" target="_blank">http://www.words2u.net</a> - GPS points and tracks (mainly in Costa Rica)<br><br>
<a href="http://www.words2u.net/recipes" target="_blank">http://www.words2u.net/recipes</a> - Recipe collection<br>