cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pdf creation - How to control width of the columns in the table

HariCS23
Contributor
0 Likes
402

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hari,

Look at the below thread:

This may help you.

-Suresh

Former Member
0 Likes

Anybody know if already release a version that can set the column width? or Someone knows who created the library PDFActions.Jar?

In advance thank you very much.

Daniel.

Former Member
0 Likes

Daniel,

check this thread: [Configuration hint for PDF Action in 12.0.3 / 12.0.4|]. Depending on the MII version you use you have to download specific versions of the PDFActions from the SAPnet. See the notes mentioned.

Michael

Former Member
0 Likes

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.

0 Likes

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

Answers (1)

Answers (1)

Former Member
0 Likes

You can't.

HariCS23
Contributor
0 Likes

Thanks for the reply Christian.