HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Incorrect table rendering in PDF file
- This topic has 1 reply, 2 voices, and was last updated Oct 23, 2010
13:03:17 by PD4ML.
-
AuthorPosts
-
May 27, 2010 at 14:25#26399
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:
[language=HTML:3hpogtmq]Selection Object Full Name Metric Name User First Snapshot Last update Justify
TESTADGMS25ADG.TST_PCHIT_KB..APM_SCOPE_FORMS
Avoid Too Many Copy Pasted Artifacts CAST ADG auto snap 8 05-26-2010 this is my comment for exclusion et je raconte ma vie [/language:3hpogtmq]
—
Part of CSS file formatting the table:
[language=CSS:3hpogtmq].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%;
}[/language:3hpogtmq]October 23, 2010 at 13:03#28044“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.
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.