HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › pd4ml-page-break does’t work with position:absolute css styl

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

    Hello,
    I’m trying to convert html page below to pdf.
    If I convert it by PD4ML Converter tool, it works correctly, but if I try to convert it by Java application, page break doesn’t work.
    The problem seems like “position:absolute” css style on divPdfmTestoContainerClass div.
    Someone could help me?
    My version is 394 Pro DMS.

    <html>
    <head>
    
    <style>
    
    p { margin: 0; padding: 0;};
    div { margin: 0; padding: 0;}
    
    .divPdfmRaccomandataClass {position: absolute;width: 0mm;height: 0mm;top: 0mm;left: 0mm;}
    .divPdfmAddressBoxContainerClass { width: 100%;position: absolute;top:15mm;height: 34mm;}
    .divPdfmAddressBoxClass {font-family: ARIAL;text-transform: uppercase;font-weight: normal; height: 100%;position: absolute;left:105mm; padding: 0; margin: 0;}
    *.divPdfmTestoContainerClass { width: 203mm;position: absolute; top: 50mm; margin: 0;padding-rigth: 11mm;padding-left: 16mm;}
    .divPdfmTestoClass {width: 176mm;}
    *.divPaginaMergeContainerClass { width: 203mm;position: absolute;margin: 0;padding-rigth: 11mm;padding-left: 16mm;}
    .divPaginaMergeClass {width: 176mm;}
    
    </style>
    
    </head>
    
    <body>
    <!-- divPdfmAddressBoxClass ## start ## -->
    <div class="divPdfmAddressBoxContainerClass">
    <span class="divPdfmAddressBoxClass">
     FURLANIS MICHELE    VIA BATTISTA 14  30023 CAMOGLI  GE
    
    </span>
    </div>
    <!-- divPdfmAddressBoxClass ## end ## -->
    <!-- divPdfmTestoClass ## start ## -->
    <div class="divPdfmTestoContainerClass">
    <span class="divPdfmTestoClass"> PAGINA 1 <pd4ml-page-break/> PAGINA 2 <pd4ml-page-break/> PAGINA 3 <pd4ml-page-break/></span>
    </div>
    <!-- divPdfmTestoClass ## end ## -->
    
    </body>
    
    </html>

    #29893

    I resolve using margin-top instead of position: absolute

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

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