OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Reduce size of sticky notes

Open dprutean opened this issue 5 years ago • 2 comments

I use OpenPdf to generate database diagrams with column tooltips like here: image

using :

final PdfAnnotation annotation = PdfAnnotation.createStamp(writer, new Rectangle( rx, ry, rw, rh), text, "#Comment" );
annotation.setAppearance(PdfName.N, writer.getDirectContent().createTemplate(10, 10));
writer.addAnnotation( annotation );

I wrote to Adobe User Group asking how may I get rid of the yellow sticky note. Their answer is below. Do you know how may I implement their recomandation in OpenPDF ?


Try reducing the opacity of them. Or you can instead use the highlighter tool. That will make the text show through the highlight without being obscured. You can also reduce the opacity of the highlight, as well as change to a different color.

But if you really want to still use the sticky note tool, there is a free script to change sticky note size. It's written to enlarge the size, but can probably be easily adapted to reduce the size.

https://documentgeek.blogspot.com/2016/08/are-your-sticky-note-icons-too-small.html

dprutean avatar Jan 09 '20 06:01 dprutean

Hi @dprutean , have you found a solution for this issue? Pull requests are welcome.

asturio avatar Feb 04 '21 19:02 asturio

Pull requests are sill welcome.

asturio avatar Mar 08 '24 19:03 asturio