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:

    var pd4ml = new org.zefer.pd4ml.PD4ML();
    pd4ml.HtmlWidth = 780;
    pd4ml.PageInsets = new System.Drawing.Rectangle(20, 20, 20, 20);
    pd4ml.PageSize = org.zefer.pd4ml.PD4Constants.A4;
    pd4ml.enableDebugInfo();
    var tempFileName = GetTempFileName("pd4ml");
    
    using (var fs = new FileStream(tempFileName, FileMode.Create, FileAccess.Write))
    {
    pd4ml.render(url, fs);
    }
    
    Process.Start(tempFileName);

    HTML:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML lang="en" >
    <HEAD>
    <TITLE>Internal Estimates Calculator</TITLE>
    </HEAD>
    <BODY>
    <TABLE>
    <TR>
    <TD>Test Content</TD>
    </TR>
    </TABLE>
    <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%">
    <TR>
    <TD>Test Content 2</TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    #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.