Issues Drawing boxes around text content

Using Aspose.PDF 8.9


We are trying to draw boxes around certain elements in existing PDFs that match certain criteria. The attached sample project highlights 2 issues that we are seeing.

  1. Vertical text in the PDF is coming back with the lower left and upper right coordinates exactly the same. This is preventing us from drawing a box around vertical elements.
  2. In some instances the rectangle coordinates seem to be off compared to where the text is displayed on the page. In the sample project attached, we are trying to draw a box around anything with a Courier font. On page 1 everything is fine and the box surrounds the text. However, on page 2 the rectangle values seem to be off and the box is down and to the left of where the text appears to be on the screen. Not sure if this is a bug or if it is a problem with how we are getting the rectangle coordinates for the text segment.

Hi Bryce,


Thanks for your inquiry. We have tested the scenario and managed to reproduce the reported issues. These issues are logged in our issue tracking system as following for further investigation and resolution. We will notify you via this forum thread as soon as these are resolved.

PDFNEWNET-36415: Vertical text position issue
PDFNEWNET-36416: Incorrect text position on second page

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNET-36415,PDFNET-36416) have been fixed in Aspose.PDF for .NET 18.4. This message was posted using BugNotificationTool from Downloads module by asad.ali