> [EMAIL PROTECTED] wrote:
> >
> > Hello,
> >
> > is there a way to set the Underline Position at global level for a
Chunk?
>
> No, you should use Chunk.setUnderline() as documented
> in the JavaDoc API as well as in the book.
> br,
> Bruno
Yes, i know this is available by Chunk. But this is in use with Font not
practical. I think it's a good idea to set a public static variable.
Here my patch ...
074 public class PdfChunk implements SplitCharacter{
075 public static float underlinePosition = -1f;
076 private static final char singleSpace[] = {' '};
077 private static final PdfChunk thisChunk[] = new PdfChunk[1];
...
231 if (f.isUnderlined()) {
232 //Object obj[] = {null, new float[]{0, 1f / 15, 0, -1f / 3,
0}};
233 Object obj[] = {null, new float[]{0, 1f / 15, 0,
PdfChunk.underlinePosition / 3, 0}};
234 Object unders[][] = Chunk.addToArray((Object[][])attributes
.get(Chunk.UNDERLINE), obj);
235 attributes.put(Chunk.UNDERLINE, unders);
236 }
Thanks...
>
-------------------------------------------------------------------------
> 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/
-------------------------------------------------------------------------
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/