Dear Support,

I wish that I could create a dashed border. But, it
does't work. It comes out as a solid.

an.setBorderStyle(new PdfBorderDictionary(3.0f,
PdfBorderDictionary.STYLE_DASHED) );

Please help.

Thanks.



PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("My_Annotations.pdf"));
writer.setPdfVersion(PdfWriter.VERSION_1_5);
document.open();
PdfContentByte pcb = new PdfContentByte(writer);
pcb.setColorFill(new Color(0xFF, 0x00, 0x00));
                        
PdfAnnotation an =
PdfAnnotation.createFreeText(writer, new
Rectangle(200f, 700f, 300f, 800f), "This is some free
text, blah blah blah", pcb);
                        
an.setBorderStyle(new PdfBorderDictionary(3.0f,
PdfBorderDictionary.STYLE_DASHED) );
                        
writer.addAnnotation(an);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to