cutecode wrote:All I need is to insert an Image in a PDF file. And I don't know size and orientation of pages in this document
After calling
ImportPage you can use
GetTemplateSize to determine the width and height of the imported page, and from width and height you can deduce the page orientation.
cutecode wrote:I didn't find any example in examples folder, how to insert image in existing PDF
There is example how to create NEW PDF and insert image, but not insert an image in existing PDF
I'll try your steps
Well, in fact
wxPdfDocument is a library to generate
new documents, not a tool to manipulate existing documents. As a compromise wxPdfDocument allows to import complete pages and to embed them as templates in new documents. However, analyzing the page content of existing PDF documents is beyond the scope of wxPdfDocument. The building blocks to get access to the page content of an existing PDF document are available in wxPdfDocument, but parsing the page content is not supported (and probably never will be).
Maybe a library like
pdfedit would be better suited to fulfill your needs.
Regards,
Ulrich