Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27036

    We are experiencing an interesting issue during HTML to PDF conversion where one table border is appearing on two separate pages after a page break. I’ll attach the converted PDF file for your reference in a second post (I don’t see a way to do it in the initial post). Also, here are the details you may need:

    Java Runtime Version: 6
    PD4ML Version: Newest recommended for .NET 2.0 (1.0.5080.21062)
    Operating System: Windows 7
    App Server: Local machine

    .NET Code Snippet:
    <br /> var pd4ml = new org.zefer.pd4ml.PD4ML();<br /> pd4ml.HtmlWidth = 780;<br /> pd4ml.PageInsets = new System.Drawing.Rectangle(20, 20, 20, 20);<br /> pd4ml.PageSize = org.zefer.pd4ml.PD4Constants.A4;<br /> pd4ml.enableDebugInfo();<br /> var tempFileName = GetTempFileName("pd4ml");<br /> <br /> using (var fs = new FileStream(tempFileName, FileMode.Create, FileAccess.Write))<br /> {<br /> pd4ml.render(url, fs);<br /> }<br /> <br /> Process.Start(tempFileName);<br />
    HTML:
    <br /> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br /> <HTML lang="en" ><br /> <HEAD><br /> <TITLE>Internal Estimates Calculator</TITLE><br /> </HEAD><br /> <BODY><br /> <TABLE><br /> <TR><br /> <TD>Test Content</TD><br /> </TR><br /> </TABLE><br /> <TABLE style="page-break-before: always; BORDER-BOTTOM-STYLE: outset; BORDER-BOTTOM-COLOR: #336699; BORDER-TOP-COLOR: #336699; BORDER-LEFT-STYLE: outset; BORDER-TOP-STYLE: outset; BORDER-RIGHT-COLOR: #336699; BORDER-RIGHT-STYLE: outset; BORDER-LEFT-COLOR: #336699" width="99%"><br /> <TR><br /> <TD>Test Content 2</TD><br /> </TR><br /> </TABLE><br /> </BODY><br /> </HTML><br />

    #29807

    For anyone experiencing this same issue, I wanted let you know that a fix was implemented in the most recent release – 385. Also, I’ve attached a sample PDF to show what was happening.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.