HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › java.lang.NullPointerException – Not picking up CSS file › Re: Re: java.lang.NullPointerException – Not picking up CSS file
I have added example FIELDSET HTML + STYLES:
HTML:
<fieldset class="fieldsetGroup vertical" id="group_info"> <legend class="fieldsetGroupLabelBackground" id="group_info_label_container"> <span class="label" id="group_info_label">Information Group</span></legend>
…
CSS:
.fieldsetGroup .fieldsetGroupLabelBackground, .fieldsetGroup .groupLabelBackground
{
padding: 2px 10px 2px 10px;
margin: 3px 3px 3px 15px !IMPORTANT;
border: 1px solid #9bb8ea;
background: url(../images/hsg_demo_theme/folder_tools_bg.gif) repeat-x left top;
height: 18px;
}
.fieldsetGroup LEGEND .label, .fieldsetGroupLabel
{
font-size: 12px;
font-weight: bold;
color: #004677;
}
Neither of these styles get applied in the PDF.
Below is the paragraph styles that don’t get applied:
HTML:
Enter your rich text here
CSS:
/* PARAGRAPH – This is the actual P HTML element used */
.main_body .form P, .main_body .form DIV.customControl
{
font-weight : bold;
color: #004677;
line-height: normal;
margin: 0px !IMPORTANT;
padding: 1px 3px 1px 3px !IMPORTANT;
vertical-align: top;
}
Please see screenshots attached.
