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]
Attachment:
doc.png
[/img]. We are using PD4ML DMS Pro 361b1

Thanks,
Ravi


Attachments:
File comment: word_doc_screen
doc.png
doc.png [ 61.27 KiB | Viewed 3247 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>
</pd4ml:page.footer>


Use the above code or modify already existent footer correspondingly.

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

...
</head>
<body>
<pd4ml:page.footer>
...


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


  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();    
footer.setPageBackgroundImageUrl("file:./frame.jpeg");   
pd4ml.setPageFooter(footer);


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>
</body>

(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


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



[Reply]     [ 5 posts ] 

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