> -----Original Message-----
> From: David Teran [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 15:43
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] underline and strikethru
> 
> Hi,
> 
> how can i use underline and strikethru feature for PDF in conjunction 
> with writer.getDirectContent()? I just saw "setFontAndSize" but this 
> takes an BaseFont as argument and i did not find any hint on how to set 
> underline and strikethru this this BaseFont.
> 
        Have a look at
http://sourceforge.net/mailarchive/message.php?msg_id=253887 and consider
also using ColumnText.

> Also, the following code produces wrong PDF:
> 
>          writer.getDirectContent().moveTo(x, y);
>          writer.getDirectContent().lineTo(x + width, y);
>          writer.getDirectContent().lineTo(x + width, y - height );
>          writer.getDirectContent().lineTo(x, y - height );
>          writer.getDirectContent().lineTo(x, y);
>          writer.getDirectContent().closePath();
>          writer.getDirectContent().clip();
> 
> What is wrong with this code?
> 
        You must use writer.getDirectContent().newPath() to change the
clipping path.

        Best Regards,
        Paulo Soares

> Thanks and kind regards, david
> 
> 
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to