Hi Bryan,
Thank you for the feedback.
bdoc7aspose:
The Search and Get Text Segments from All Pages of PDF Document example seemed to be what I am looking for. Can you clarify one thing for me? Is the YIndent of the TextSegment relative to the bottom of the page? I assumed x,y would be top,left based and I wasn’t sure if it would be relative to the document or the page. It is looking like it is relative to the bottom left of the page it is on. Is that correct?
The YIndent of the TextSegment is calculated from the bottom of the page. The XIndent and YIndent starts from bottom left of the page.
bdoc7aspose:
The documentation for both XIndent and YIndent say that they are the X coordinate.
http://www.aspose.com/docs/display/pdfnet/Position+XIndent+Property
http://www.aspose.com/docs/display/pdfnet/Position+YIndent+Property
Thank you for pointing out the issue. We have fixed the documentation.
bdoc7aspose:
And would these be the way to get the size of each page:
Console.WriteLine("pdfDocument.Pages[1].Rect.Height : {0} ", pdfDocument.Pages[1].Rect.Height);
Console.WriteLine("pdfDocument.Pages[1].ArtBox.Height : {0} ", pdfDocument.Pages[1].ArtBox.Height);
Console.WriteLine("pdfDocument.Pages[1].Rect.Width : {0} ", pdfDocument.Pages[1].Rect.Width);
Console.WriteLine("pdfDocument.Pages[1].ArtBox.Width : {0} ", pdfDocument.Pages[1].ArtBox.Width);
Your understanding is correct. You can see further details using the following documentation link regarding the page properties.
Get Page Properties
Please feel free to contact support in case you need any further assistance.
Thank You & Best Regards,