on ‎2009 Jul 23 8:24 PM
Hi Guru's
I am creating pdf whcih has a table with 3 columns.
What i am getting is table with each columnwidth automatically calculated as table width / 3.
Can i control the width of the column using any of the action block?
Do we have any newer version of itext.jar which supports this functnality?
Is there any work around ?
Thanks in advance.
~Hari
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Michael, the version of SAP xMII 12.0.5 Build is (126).
The class com.lighthammer.xacute.actions.pdf.PDFTable from file PDFActions.jar(PDFActions.zip) instance the class
com.lowagie.text.pdf.PdfPTable from file iText.jar passing the number of columns in the constructor in the method AddTablePage:
PdfPTable table = new PdfPTable (nlCols.getLength ());
According to the documentation of iText(http://itextdocs.lowagie.com/tutorial/objects/tables/index.php) must use the constructor: PdfPTable (float [] relativeWidths) quie receives as parameter the lengths of the columns.
This implies that the library PDFActions.jar should be updated to support this functionality.
In advance thank you very much.
Daniel.
Hi Daniel,
Thanks for the clarification. Can anyone confirm whether there is any PDFActions.zip which uses the constructor -
PdfPTable (float [] relativeWidths) of itext.jar
I think , PDFAction.zip provided by SAP Note 1109054 uses
PdfPTable table = new PdfPTable (nlCols.getLength ());
Is there any recent verion of PDFActions from SAP which uses PdfPTable (float [] relativeWidths) - to have variable width in table column
Thanks in Advance.
Soumen
You can't.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.