PDF Generating Tool Support Forum

HOME   Login   Register    Search

  Subject: closed border line in each page
   PostPosted: 21 May 2015, 18:44 
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 [img]
[/img]. We are using PD4ML DMS Pro 361b1


File comment: word_doc_screen
doc.png [ 61.27 KiB | Viewed 6007 times ]
  Subject: Re: closed border line in each page
   PostPosted: 25 May 2015, 16:57 
You may achieve that with a footer definition, like

<pd4ml:page.footer height="8">
<div style="width: 100%; height: 4; border-top: 1 solid tomato; border-bottom: 1 solid tomato;"></div>

Use the above code or modify already existent footer correspondingly.

Also place <pd4ml:page.footer> tag just after <body> tag opens:


  Subject: Re: closed border line in each page
   PostPosted: 26 May 2015, 10:51 
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.

  Subject: Re: closed border line in each page
   PostPosted: 27 May 2015, 20:34 
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.

PD4PageMark footer = new PD4PageMark();    

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

<body style="margin: 0">
<div style="border: 1 solid black; width: 100%; height: 800">&nbsp;</div>

(height value is to be adjusted there)

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


  Subject: Re: closed border line in each page
   PostPosted: 28 May 2015, 10:44 
Thank you, that helps :)

  Subject: Re: closed border line in each page
   PostPosted: 04 Oct 2021, 09:41 
can you please provide the frame image to download

[Reply]     [ 6 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share