I am writing a WYSIWYG page designer application, which will allow user to drop images and text onto a designer Panel and then print the panel to PDF.
In my application's Page Setup options, the user needs to select a page size, and then, based on selected page size it will show a panel on screen that is sized according to the dimensions (eg A4 selected = 8.5 x 11 inches and Panel will be sized to these pixel dimensions) .
Then when user clicks Print, the contents of the Panel will be drawn to a PDF file with the selected dimensions.
I am using the wPDF component set, and the TWPPDFPrinter component in particular to create the PDF.
My question:
- How to get list of all paper sizes names, and then how to get their corresponding dimensions for wPDFPrinter ?
Thanks in advance.