HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › <pd4ml:page.header>: Header Height
- This topic has 5 replies, 3 voices, and was last updated Oct 13, 2017
14:56:09 byPD4ML.
-
AuthorPosts
-
November 16, 2009 at 16:05#26287
We are trying to generate PDFs from HTML-Pages built by the use of HTML-Templates. Inside the templates we use
<pd4ml:page.header>and</pd4ml:page.header>to define the Page-Header.
The Conversions is done by a command-line call to java -jar pd4ml …
Now it seems that PD4ML set the header-size initially to 15 and when the header get larger, it gets truncated. We tried to set the header size manually to a larger value in the pd4browser.properties file but it seems not to have any effect on the conversion. Is the pd4browser.properties file the rigth place to do it and if so, is there any change neccessary to the command-line call to make pd4ml use it?
Also we tried to change our HTML-template file to
<pd4ml:page.header header.height="25"/>
That actually does work for the header height but has the sideeffect that page-numbering inside the header with $[page] and $[total] now does not work anymore. Also the complete footer defined in the template-file is now ignored.
Redefinig the initial page number inside the header with
<pd4ml:page.header header.init.page.number="1" header.height="25"/>
has now no effect at all. Is there any other way to do?
Thanks in advance.November 17, 2009 at 11:28#27625PD4ML offers 3 different ways to define headers/footers, which is sometimes confusing.
First please take a look to the description:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.htmlIt seems you mixed up
<pd4ml:page.header>(inline header, supported by PD4ML renderer directly) with<pd4ml:header>(JSP custom tag, mapped to PD4ML API call).<pd4ml:page.header>implementation is close to any HTML block tag, so you may just use height or style attribute to define the header area height.November 20, 2009 at 13:36#27626We try to specify the header directly within the HTML-file. We use
<pd4ml:page.header> ...HEADER_CODE... </pd4ml:page.header>to define it.
Since the Header_code could get larger, it simply gets truncated at a certain height of the header. Giving a height attribut to the<pd4ml:page.header>-Tag, has no effect on that behaviour and seems to be ignored.When we tried to change the header-heigt within the Java-API it also had no effect. Couldt it be that the settings inside the API get useless when inside of the HTML to be converted another
<pd4ml:page.header>-Tag is used?December 1, 2009 at 14:00#27627The maximal header or footer height is limited by 1/3 of the page height. The limitation is currently hardcoded, but in theory we can implement a possibility to dynamically change it.
October 13, 2017 at 06:59#27628Do we have any option to increase the size of header more 1/3 of page ?
October 13, 2017 at 14:56 -
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
