PD4ML v4 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.

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

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