Dear Experts,

I want to create a pdf file and the contents will vry dynamically. e.g i want to write like below


HEADINGS
1

DESCRIPTION
My description for 1

HEADINGS
2

DESCRIPTION
My description for 2 goes here

DESCRIPTION & HEADING are static text and description is dynamic input provided by user. it may b mail id or description about . i've a textedit control where user will provide the description.

Please let me know how to generate a pdf file and write my text into it.

I used QPrnter class. but i dont know when my text is exceeding a page, so that i can create a new page.
Thanks in advance for your help