Hi,
I am not very familiar with the internal structure of Pdf, so I may miss some points.
I want to draw rectangle on an image created by the conversion of Pdf page. The code works fine for most of the documents but for some cases either box is not drawn or it is drawn on a wrong place. After a bit examine I've seen that the Position values of TextFragment object are besides the page width and height. For example for the first sample file, YIndent of the TextFragment's Position is 686.15, while Page.Rect.Height is 626.
I've attached the VS project and sample files. Could you please explain the issue I made.
Thank you