wxPdfDocument - find possition for free space at the bottom

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxPdfDocument - find possition for free space at the bottom

Post by cutecode »

I know how to load PDF file and move to last page.
I need to insert an image at the very end of a PDF document.
Is it possible to find "Y-possition" of the last inserted text/image?
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxPdfDocument - find possition for free space at the bottom

Post by utelle »

cutecode wrote:I know how to load PDF file and move to last page.
I need to insert an image at the very end of a PDF document.
Is it possible to find "Y-possition" of the last inserted text/image?
As you know wxPdfDocument allows to extract pages from existing PDF documents and to include them in new PDF documents taking care of also including all resources required by the page content. However, wxPdfDocument does not provide methods to analyze the actual content of extracted pages. Using the internal wxPdfParser classes you could get access to the actual page content, but analyzing it to find out where the last output was placed is a non-trivial task. It is not planned to extend wxPdfDocument with such features.

Regards,

Ulrich
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: wxPdfDocument - find possition for free space at the bottom

Post by eranon »

cutecode wrote:regards,
Alexander Saprykin
www.wxwidgets.ru
Sorry for the off-topic, but, out of curiosity, why did you call your site wxwidgets.ru and not dental-soft.ru as it talks about a software called Dental-Soft ("a computer program for medical clinics for managing medical patients" if I believe Google Translate) and it's not particularly about wxWidgets?
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxPdfDocument - find possition for free space at the bottom

Post by cutecode »

Hi,
I own site dental-soft.ru, too
gg

Why did I do that? I don't know exactly.
dental-soft.ru -uses MFC
wxwidgets.ru - uses wxwidgets
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: wxPdfDocument - find possition for free space at the bottom

Post by eranon »

Seems a bit devious for me, with respect to wxWidgets and persons really involved in it. You should rename your first website as mfc.ru to be consistent. And maybe I should name my own wxwidgets.fr; but I have several sites for different apps: how to avoid collisions? It is a problem! Maybe I could name one dental-soft.fr to stay clear...

Well! more seriously, frankly, I don't have any position in the wxWidgets's organization, but I think that you should change or offer this domain to host something really relative to wxWidgets towards the Russian community!

[Just my personal opinion -- so, last intervention on my part here, to not completely hijack the thread]
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: wxPdfDocument - find possition for free space at the bottom

Post by cutecode »

hi
I'll think it over.
thank you
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
Post Reply