PDF.js Express Version
7.3.1
Detailed description of issue
Here in the below image, you can see that purple colored annotation with StrokeThickness = 4:
In this below image, It has the same purple colored annotation with StrokeThickness = 4:
I guess its with the plan’s(pdf) pixels or density. First plan is quite a big plan than second one. Also, note that here both plans have same scale set.
How to solve this issue. Is it possible to find a ratio and make thickness dynamic?
Expected behaviour
Annotations should be visible in same size irrespective of plan’s density.
Does your issue happen with every document, or just one?
Plans with high pixel density like first drawing.
Link to document
First drawing.
Multipurpose hall - 1st Floor.pdf (160.4 KB)
Second drawing, respectively.
Single image.pdf (191.9 KB)
Code snippet
Instance.annotManager.setAnnotationStyles(annotation, annotation.StrokeThickness = 4);