[PDFNet] How to annotation border thickness independent of zoom


I’m using PDFViewCtrl. ToolMode.e_rect_create to set tool mode for rectangle annotation but the thickness of link increases if page is zoomed So need information on how the thickness of link can be maintained constant irrespective of page zoom.


The thickness is supposed to change while zoom changes. The only way that is supported by PDF specification to achieve this is to set the thickness of the rectangle annotation to 0. This way, a conformant viewer will display it with one-pixel width on the device. In addition, SetPathHinting (false) should also be called to prevent paths from being hinted.