PDF Export Polarion 2011

Description
lgrossmann
Posts: 3
Joined: Wed Oct 21, 2009 11:57 am

PDF Export Polarion 2011

Postby lgrossmann » Wed Oct 19, 2011 8:03 am

Hello,

I am having some trouble on exporting a document to pdf.

I have inside a document a wiki-content which generates a table.

When I perform a pdf export, the table is exported, but the first row of the table - the table header- is not shown.

Is there a specific table format which is accepted in a pdf export?

My table:
<table style="margin: auto; empty-cells: show; font-size: 100%; border-collapse: collapse; width: 100%; border: 1px solid rgb(204, 204, 204);">
<thead>
<th style="text-align: left; vertical-align: top; font-weight: bold; background-color: rgb(240, 240, 240);
border: 1px solid rgb(204, 204, 204); padding: 5px;">
Nr.</th>
<th style="text-align: left; vertical-align: top; font-weight: bold; background-color: rgb(240, 240, 240);
border: 1px solid rgb(204, 204, 204); padding: 5px;">
Datum</th>
<th style="text-align: left; vertical-align: top; font-weight: bold; background-color: rgb(240, 240, 240);
border: 1px solid rgb(204, 204, 204); padding: 5px;">
Version</th>
<th style="text-align: left; vertical-align: top; font-weight: bold; background-color: rgb(240, 240, 240);
border: 1px solid rgb(204, 204, 204); padding: 5px;">
Änderungsbeschreibung</th>
<th style="text-align: left; vertical-align: top; font-weight: bold; background-color: rgb(240, 240, 240);
border: 1px solid rgb(204, 204, 204); padding: 5px;">
Autor</th>
</thead>
#foreach($wItem in $wItems)
...
<tbody>
<tr>
<td style="text-align: left; vertical-align: top; line-height: 18px;
font-weight: bold;
border: 1px solid rgb(204, 204, 204); padding: 5px;">$com.getId()</td>
<td style="text-align: left; vertical-align: top; line-height: 18px;
border: 1px solid rgb(204, 204, 204); padding: 5px;">$comDay.$comMonth.$comYear</td>
<td style="text-align: left; vertical-align: top; line-height: 18px;
border: 1px solid rgb(204, 204, 204); padding: 5px;">$comTitle</td>
<td style="text-align: left; vertical-align: top; line-height: 18px;
border: 1px solid rgb(204, 204, 204); padding: 5px;">$comText</td>
<td style="text-align: left; vertical-align: top; line-height: 18px;
border: 1px solid rgb(204, 204, 204); padding: 5px;">$comAuthor.name</td>
</tr>
</tbody>
#end
</table>

Thank you in advance.

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: PDF Export Polarion 2011

Postby NickEntin » Wed Oct 26, 2011 7:28 am

Hi,

please approach support with this kind of questions - I don't think Polarion community knows the answer for you.

BTW, I guess you have a wrongly copied your code here - you repeat <tbody> for each workitem, but I suppose it should be just once for the table (i.e. move <tbody> element out of the loop).

And another remark that w3cschool marks <tbody> (as well as <thead> and so on) as "The <tbody> tag is only partially supported in all major browsers." http://www.w3schools.com/tags/tag_tbody.asp
Those tags might be not well processed by the HTML-PDF transformation library we use for the export. I'd recommend you to stick to simple table formatting for the testing purposes.

Best regards,
Nick


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: Google [Bot] and 16 guests