Code: Select all
________
|text |
| |
|_______|
|text |
| |
|_______|
I have to draw two pages A5 but they must be in the same page A4. How can I find the center of the page?
Code: Select all
________
|text |
| |
|_______|
|text |
| |
|_______|
The wxPdfDocument class has method GetPageHeight to determine the height of the page in user units (as selected on creating the class instance). Dividing the page height by 2 will give you the offset in vertical direction from the top to the lower A5 sized part of the page. You may then use method SetY or SetXY to move the current position to the new position. Then you can repeat the output steps you did for the upper A5 page. Please keep in mind that you have to handle the top margin for the lower A5 page yourself.wxProgrammer wrote:Hi! How can I draw this page? (A4)The text is equal in both sides.Code: Select all
________ |text | | | |_______| |text | | | |_______|
I have to draw two pages A5 but they must be in the same page A4. How can I find the center of the page?