PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Incorrect table rendering in PDF file
   PostPosted: 27 May 2010, 16:25 
Hi,

I am using PD4ML Pro.

The HTML file I want to convert into a PDF file contains a table formatted by CSS.
Obviously, the rendered PDF file does not respect the width and padding properties I specified in my CSS file.

Also, the following warning message appears several times:
Warning: Invalid syntax in CSS selector: ""

Can you explain this behaviour and suggest a fix/workaround ?

Thank you.

--
Part of HTML file generating the table:
<table class="ViolationListDataTable" cellspacing="0" cellpadding="0">
           <tr class="Header">
            <th class="checkbox">
             <input type="checkbox" name="SEL_ALL" value="SEL_ALL" />
            </th>
            <th class="selstatus">
             Selection
            </th>
            <th class="objfullname">
             Object Full Name
            </th>
            <th class="metric">
             Metric Name
            </th>
            <th class="user">
             User
            </th>
            <th class="snapname">
             First Snapshot
            </th>
            <th class="date">
             Last update
            </th>
            <th class="comment">
             Justify
            </th>
           </tr>
           <tr class="Content">
            <td class="checkbox">
             <input type="checkbox" name="toto" value="1446" />
            </td>
            <td class="selstatus">
             <img src="titi.png" />
            </td>
            <td class="objfullname">
             <a href="#">
              TESTADG\MS25ADG.TST_PCHIT_KB..APM_SCOPE_FORMS
             </a>
            </td>
            <td class="metric">
             Avoid Too Many Copy Pasted Artifacts
            </td>
            <td class="user">
             CAST
            </td>
            <td class="snapname">
             ADG auto snap 8
            </td>
            <td class="date">
             05-26-2010
            </td>
            <td class="comment">
             this is my comment for exclusion et je raconte ma vie
            </td>
           </tr>
</table>


--
Part of CSS file formatting the table:
.checkbox {
	display: none;
}
.ViolationListDataTable {
	font-size: 8px;
	margin: 0 0 18px 0;
	width: 100%;
	table-layout: fixed;
}
.ViolationListDataTable td {
	border-top: #999999 1px dotted;
	height: 16px;
}
.ViolationListDataTable .metric,
.ViolationListDataTable .objfullname,
.ViolationListDataTable .comment,
.ViolationListDataTable .user,
.ViolationListDataTable .snapname {
	white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: left; padding-left: 1%;
}
.ViolationListDataTable .selstatus,
.ViolationListDataTable .date,
.ViolationListDataTable .checkbox,
.ViolationListDataTable .auto {
	text-align: center;
}
.ViolationListDataTable .metric {
	width: 15%;
}
.ViolationListDataTable .objfullname {
	width: 18%;
}
.ViolationListDataTable .user {
	width: 10%;
}
.ViolationListDataTable .snapname {
	width: 6%;
}
.ViolationListDataTable .checkbox {
	width: 2%;
}
.ViolationListDataTable .selstatus {
	width: 6%;
}
.ViolationListDataTable .comment {
	width: 12%;
}
.ViolationListDataTable .date {
	width: 10%;
}


Attachments:
File comment: Rendered PDF file containing the table
test.pdf [72.9 KiB]
Downloaded 82 times
  Subject: Re: Incorrect table rendering in PDF file
   PostPosted: 23 Oct 2010, 15:03 
"Warning: Invalid syntax in CSS selector:" may cause the entire CSS stylesheet interpretation to fail. Your CSS sample should not cause the exception, obviously it comas from another stylesheet used in your documents.

CSS parser, supplied with the most recent v361b2, addresses the issue.

PD4ML does not support paddings, given in percents. But for width it should work. Please test it with the most recent version.



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share