ArthurHub / HTML-Renderer

Cross framework (WinForms/WPF/PDF/Metro/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#), High performance HTML Rendering library.
https://htmlrenderer.codeplex.com/
BSD 3-Clause "New" or "Revised" License
1.27k stars 531 forks source link

Generated PDF shows up as blank only in Acrobat #109

Open cameronbroe opened 7 years ago

cameronbroe commented 7 years ago

Hi, I have an application utilizing the HtmlRenderer.PdfSharp library to generate PDFs and send them by email. For some reason, these PDFs are showing up as blank, but only in Adobe Acrobat. They look fine in Gmail's Preview, Google Chrome, Firefox, and FoxIt Reader. Any ideas where I should be looking to fix this issue?

hippasus commented 6 years ago

@cameronbroe there must be some empty tags. I had this issue as well. I fixed it by adding &nbsp; in those empty tags. just like this: <td>&nbsp;</td>.

monalpradipshinde commented 4 years ago

but i have very plain html : Hello World for this html also its giving blank pdf.

griu72 commented 4 years ago

Hello, I have the same problem. Do you acomplish resolve this problem? I would greatly appreciate a solution for this problem Thank you

hippasus commented 4 years ago

Hello, I have the same problem. Do you acomplish resolve this problem? I would greatly appreciate a solution for this problem Thank you

check my reply by adding   to empty tags, it works all the time for me.