By Date: <-- -->
By Thread: <-- -->

Dashed table cell border



YOUSFI wrote:

Hi,
I'm using iText-1.4 to generate PDF files containing tables (PdfPtable).


OK.

Some of
tables I'm creating need specefic border styles : dotted, dashed, ...


Set the border of the cell to NO_BORDER
and add a Cell Event to each cell instead.
Draw the custom border in the cell event.

Is there a method like cell.setBorderStyle(SomeStyle.DASHED) where cell is a PdfPCell ?

No.

If not, is there any mean to separate PdfPtable rows with dashed lines ?


Yes, using cell events.

(In the iText API, I noticed a class called PdfBorderDictionary which has a
constant field called STYLE_DASHED but I could not using it).


No because a Border Dictionary is a known PDF concept
for defining borders of an annotation. It has nothing to do
with tables or cells.
br,
Bruno


------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions