Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27020

    Hello, we have been using pd4ml in our company for more than 4 years to convert HTML files to PDF report. We have a requirement to create border line in each page like shown here, would help us achieve this with HTML and pd4ml . We are using PD4ML DMS Pro 361b1

    Thanks,
    Ravi

    #29744

    You may achieve that with a footer definition, like

    [language=xml:2fv6uvow]

    [/language:2fv6uvow]

    Use the above code or modify already existent footer correspondingly.

    Also place tag just after tag opens:

    [language=xml:2fv6uvow]…

    …[/language:2fv6uvow]

    #29745

    Thank you for the reply, sorry for the confusion, the question was not about the footer, its about each page has closed border line in black, we are not able to achieve that when we tried with CSS the border is always getting broken until the last page. Please assist.
    -Ravi

    #29746

    Now I see.

    Well, you cannot define the border line with HTML/CSS. But it is possible:

    1. to define a page background image with a painted border line and to apply the image to all pages.

    [language=Java:1rjzncx5]PD4PageMark footer = new PD4PageMark();
    footer.setPageBackgroundImageUrl(“file:./frame.jpeg”);
    pd4ml.setPageFooter(footer);[/language:1rjzncx5]

    2. to create a static PDF page with a border line. It can be done from an HTML like the following:

    [language=xml:1rjzncx5]

     

    [/language:1rjzncx5]
    (height value is to be adjusted there)

    After that you could combine(underlay) the static PDF with your dynamically created PDF document.

    http://pd4ml.com/cookbook/pdf-overlay-underlay.htm

    #29747

    Thank you, that helps 🙂

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

The forum ‘PD4ML Tips & Tricks’ is closed to new topics and replies.