setHidden() should work... if not, please share the result file and tell
which annotation you have modified.
Tilman
Am 18.04.2018 um 18:59 schrieb [email protected]:
Thank you for your help just one more question:
My other idea is to hide the annotation and just use the "MouseOver".
But setInvisible() or setHidden() do not seem to work of have I
misunderstood their function?
Gerry
On 18.04.2018 18:42, Tilman Hausherr wrote:
That's not what the lock flag does:
(PDF 1.4) If set, do not allow the annotation to be deleted or its
properties (including position and size) to be modified by the user.
However, this flag does not restrict changes to the annotation’s
contents, such as the value of a form field.
Tilman
Am 18.04.2018 um 15:21 schrieb [email protected]:
Hi
I am trying to experiment with annotations.
I want the annotation to lock into place rather than scroll down
with the page.
I have been trying to use:
Boolean locking = txtMark.isLocked();
txtMark.setLocked(locking);
but however I change it around it has no effect.
this portion of code is here:
PDAnnotationTextMarkup txtMark = new
PDAnnotationTextMarkup(PDAnnotationTextMarkup.SUB_TYPE_HIGHLIGHT);
txtMark.setConstantOpacity((float)0.9); //20% transparent
Boolean locking = txtMark.isLocked();
txtMark.setLocked(locking);
// Set the rectangle containing the markup
float textWidth = font.getStringWidth("PDFBox") / 1000 *
18;
PDRectangle position = new PDRectangle();
position.setLowerLeftX(INCH);
position.setLowerLeftY( ph - INCH - 18);
position.setUpperRightX(INCH + textWidth);
position.setUpperRightY(ph - INCH);
txtMark.setRectangle(position);
Thank you for any advice you can give
Gerry
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]