HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › Blank PDF document because of single commas in HTML
- This topic has 1 reply, 2 voices, and was last updated May 18, 2011
12:25:31 by PD4ML.
-
AuthorPosts
-
May 17, 2011 at 22:09#26560
Hi, I use PD4ML 3.70 and found one problem – if there is a single comma in CSS part and another one in page body, output PDF document will be blank.
I paste sample HTML code here. It has 2 single commas.
If you’ll remove one of them, PDF document will be produced, otherwise it will be blank.<br /> <html><br /> <head><br /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br /> <title>A Plus Payroll Document</title><br /> <style type="text/css"><br /> <!--<br /> body {<br /> font: 100% Calibri, Calibri, Calibri, sans-serif;<br /> background: #FFFFFF;<br /> margin: 0; /* it's a test */<br /> padding: 0;<br /> height:100%;<br /> text-align: center;<br /> color: #000000;<br /> }<br /> .oneColFixCtrHdr #container {<br /> width: 720px;<br /> background: #FFFFFF;<br /> margin: 0 auto;<br /> border: 1px solid #000000;<br /> min-height:100%;<br /> height:100%;<br /> position:relative;<br /> text-align: left;<br /> }<br /> .oneColFixCtrHdr #header {<br /> background: #FFFFFF;<br /> }<br /> .oneColFixCtrHdr #body {<br /> background: #FFFFFF;<br /> padding:0 20px;<br /> padding-bottom:60px;<br /> }<br /> .oneColFixCtrHdr #header h1 {<br /> margin: 0;<br /> padding: 10px 0;<br /> }<br /> .oneColFixCtrHdr #mainContent {<br /> padding: 0 20px;<br /> background: #FFFFFF;<br /> }<br /> .oneColFixCtrHdr #footer {<br /> position:absolute;<br /> bottom:0;<br /> width:720;<br /> height:60px;<br /> background:#FFFFFF;<br /> }<br /> .oneColFixCtrHdr #footer p {<br /> margin: 0;<br /> padding: 10px 0;<br /> }<br /> .style2 {font-size: small}<br /> .style3 {<br /> font-family: Calibri, Calibri, Calibri, sans-serif;<br /> font-size: smaller;<br /> }<br /> .style9 {font-family: Calibri, Calibri, Calibri, sans-serif; font-size: x-small; }<br /> .style11 {<br /> color: #000000<br /> }<br /> .style12 {<br /> font-family: Calibri, Calibri, Calibri;<br /> font-size: x-small;<br /> color: #000000;<br /> }<br /> .style13 {<br /> font-family: Calibri, Calibri, Calibri;<br /> font-size: smaller;<br /> color: #000000;<br /> }<br /> --><br /> </style></head><br /> <body><br /> <table width=400><br /> <tbody><br /> <tr><br /> <td>W-2's and Electronic Filing Base Fee</td><br /> <td>$opportunity.w2_base_fee_1725915001</td><br /> </tr><br /> </tbody><br /> </table><br /> </body><br /> </head><br /> </html><br />
I used old version of PD4ML before, and it was working without any problem.
Could you please fix it or explain why it doesn’t work?May 18, 2011 at 12:25#28536It is a strange issue and I do not believe it is caused by a PD4ML bug (bearing in mind it splits HTML and CSS and parses them separately). I tried to convert your sample offline with a command-line PD4ML tool and got predictable results. See attached.
Also as I see your HTML has placeholders ($opportunity). Could it be the issue comes from the runtime, which pre-process the HTML?
-
AuthorPosts
The forum ‘Troubleshooting’ is closed to new topics and replies.