wxPDFDoc page number

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
dkaip
Super wx Problem Solver
Super wx Problem Solver
Posts: 333
Joined: Wed Jan 20, 2010 1:15 pm

wxPDFDoc page number

Post by dkaip »

Hello. I am trying to add some pdf files (pdf and text) and all works ok.
If i must know in where page begins the texts, how i van know it?
There is a easy method to know before save pdf document?
Method for example wxPdfDocument::MultiCell returns the nymber of pages when puts text in pdf?
wxPdfDocument::PageNo() method gives current pages of pdf if haven’t save it before?
Thank's
Jim.
Sorry, PageNo() works just fine. My wrong.

Some else. I have pdf file with page 600X825 and i whant to insert in my A4 page. Some advice for scale page?
Jim.
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxPDFDoc page number

Post by utelle »

dkaip wrote:I have pdf file with page 600X825 and i whant to insert in my A4 page. Some advice for scale page?
After you have imported the page from your pdf file, you can add it with method UseTemplate. Method UseTemplate allows to specify a new width and/or height. The new width and/or height will be used to scale the template (imported page), so that it fits to the A4 page. You should only specify either width or height to avoid that the inserted page image will become distorted.

Regards,

Ulrich
Post Reply