HTML to PDF / DOCX / RTF Java converter library Forums PD4ML Forums Technical questions / Troubleshooting textarea being duplicated instead of split/moved to next page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38345

    When the text in my textarea is too long/near the bottom of a page, the form element is created twice instead of being split or only on the second page. It seems PD4ML recognizes it may not fully fit on the “first” page so it recreates it on the “second” page, but now it’s duplicated and not respecting the footer.

    Attachments:
    You must be logged in to view attached files.
    #38442

    @PD4ML can you please address this?

    How can we move/split the textarea?

    Attachments:
    You must be logged in to view attached files.
    #38444

    Hi! As a temporal workaround an applying “page-break-inside: avoid” style to the textarea should help.
    In the next maintenance release we plan to fix the issue.

    #38465

    Hi! As a temporal workaround an applying “page-break-inside: avoid” style to the textarea should help.
    In the next maintenance release we plan to fix the issue.

    Unfortunately this is not working. I even tried with @media pdf. To ensure it is reading this CSS, I set the textarea border to 5px solid blue and see that in the generated PDF, but the textarea is still being duplicated on the two pages.

    #38466

    We’ll try to fix the issue in one of the forthcoming snapshot builds

    #38467

    The current build partially solves the problem: it ensures that it does not create duplicate textareas.

    In our test cases, “page-break-inside: Avoid” helps, but due to the inline nature of the textarea element, there may be nuances. If it does not go to the next page, try wrapping the textarea in a

    and applying a style to it
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.