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 byPD4ML.
-
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.<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>A Plus Payroll Document</title> <style type="text/css"> <!-- body { font: 100% Calibri, Calibri, Calibri, sans-serif; background: #FFFFFF; margin: 0; /* it's a test */ padding: 0; height:100%; text-align: center; color: #000000; } .oneColFixCtrHdr #container { width: 720px; background: #FFFFFF; margin: 0 auto; border: 1px solid #000000; min-height:100%; height:100%; position:relative; text-align: left; } .oneColFixCtrHdr #header { background: #FFFFFF; } .oneColFixCtrHdr #body { background: #FFFFFF; padding:0 20px; padding-bottom:60px; } .oneColFixCtrHdr #header h1 { margin: 0; padding: 10px 0; } .oneColFixCtrHdr #mainContent { padding: 0 20px; background: #FFFFFF; } .oneColFixCtrHdr #footer { position:absolute; bottom:0; width:720; height:60px; background:#FFFFFF; } .oneColFixCtrHdr #footer p { margin: 0; padding: 10px 0; } .style2 {font-size: small} .style3 { font-family: Calibri, Calibri, Calibri, sans-serif; font-size: smaller; } .style9 {font-family: Calibri, Calibri, Calibri, sans-serif; font-size: x-small; } .style11 { color: #000000 } .style12 { font-family: Calibri, Calibri, Calibri; font-size: x-small; color: #000000; } .style13 { font-family: Calibri, Calibri, Calibri; font-size: smaller; color: #000000; } --> </style></head> <body> <table width=400> <tbody> <tr> <td>W-2's and Electronic Filing Base Fee</td> <td>$opportunity.w2_base_fee_1725915001</td> </tr> </tbody> </table> </body> </head> </html>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.
