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.
User avatar
cutecode
Earned some good credits
Earned some good credits
Posts: 145
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxPdfDocument - find possition for free space at the bottom

Postby cutecode » Fri Apr 13, 2018 8:42 pm

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?
regards,
Alexander Saprykin
www.wxwidgets.ru

utelle
Moderator
Moderator
Posts: 785
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

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

Postby utelle » Sat Apr 14, 2018 7:40 am

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: 832
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

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

Postby eranon » Sun Apr 15, 2018 11:06 am

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
Earned some good credits
Earned some good credits
Posts: 145
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Postby cutecode » Sun Apr 15, 2018 2:32 pm

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
regards,
Alexander Saprykin
www.wxwidgets.ru

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

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

Postby eranon » Sun Apr 15, 2018 5:53 pm

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
Earned some good credits
Earned some good credits
Posts: 145
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Postby cutecode » Sun Apr 15, 2018 6:18 pm

hi
I'll think it over.
thank you
regards,
Alexander Saprykin
www.wxwidgets.ru


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 1 guest