QtQt printing question - html to pdf

QtQt printing question - html to pdf

Oleg Goldshmidt pub at goldshmidt.org
Wed Nov 2 20:33:38 IST 2011


"Steve G." <wordz2u at gmail.com> writes:

> The problem with PDF is that if the page size is too large, say A4,
> it is very unpleasant to read it on a 6 inch screen.

Is this a follow-up to a previous html to pdf question?

Do I understand it right that you want not to merely resize PDF pages
but to change how the contents (of the original html) are split
between the pages, i.e., use a different font size, margins, etc.?

If the answer to both questions is yes then:

1) I don't think you can manipulate the resulting PDF in this way
   without a scriptable PDF editor (and I don't know of any);

2) you need to do it at the html2ps stage, and "man 5 html2psrc"
   should be helpful.
  
If by any chance all you want to do is resizing the pages of the
resulting PDF (without modifying the contents of each page) then a
suitably clever combination of pdftk(1) and ImageMagick(1) (probably
convert(1)), or maybe just the latter, should be up to the task. I'll
leave RTFMing to you.

-- 
Oleg Goldshmidt | pub at goldshmidt.org



More information about the Linux-il mailing list