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