Hi Tilman,

sorry, I wanted to say, that the value of the lowerLeftX value is getting too small and the upperRightX values is getting too big. The rectangle is never too small, just far too big.


Sorry for that.


Thanks again,

 jens



Am 14.11.2019 um 20:39 schrieb Tilman Hausherr:
Am 14.11.2019 um 09:21 schrieb Jens Bruhn-Hansel:
Hi,

thanks for your support. We are using PDFBox 2.0.16 and it looks like PDAnnotationLine.constructAppearances() makes the annotation rectangle a lot larger when increasing the border width to values like 20, ... The rectangle doesn't shrink again, when I decrease the border width again. We are using this annotation as arrow.

It looks like PDLineAppearanceHandler.generateNormalAppearance calculates too big/too small values in these lines: rect.setLowerLeftX(Math.min(minX - Math.max(lineEndingSize * 10, Math.abs(llo+ll+lle)), rect.getLowerLeftX())); rect.setLowerLeftY(Math.min(minY - Math.max(lineEndingSize * 10, Math.abs(llo+ll+lle)), rect.getLowerLeftY())); rect.setUpperRightX(Math.max(maxX + Math.max(lineEndingSize * 10, Math.abs(llo+ll+lle)), rect.getUpperRightX())); rect.setUpperRightY(Math.max(maxY + Math.max(lineEndingSize * 10, Math.abs(llo+ll+lle)), rect.getUpperRightY()));


Yes... I did that one, it was too difficult to calculate exactly the size of that arrow part. I'm not surprised that it is too big, but that it is too small??

I'd be interested to see an example of this.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to