TH-Soft wrote:
With MigraDoc you can "prepare" a document and then access the render information for all objects of the document. PDF pages imported into MigraDoc will be treated like rectangles and empty regions of those PDF pages will not be taken into the account.
But since you set left and right margins, top and bottom margins, it may not even be necessary to access the render information.
I assumed you were managing existing PDF files. This approach will not work for those.
It will work for PDF documents you create using the MigraDoc document object model.
Thx for your answer Thomas what I'm trying to achieve is the following:
I Have a single page pdf with little content, then using MigraDoc read/import the page into it and get the bounding box surrounding the content in that page, since I need to use the width and height of said content.
Here is a sample pdf page attached, I need to get the red box/bounding box surrounding the content, this pdf is created externally not with MigraDoc or PDFsharp. So what I'm trying to achieve is to read/import the pdf with a single page and get the bounding box of its contents. Is this possible with MigraDoc?
Regards
Chris.