PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the Board Administrator.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - PDF page headers/footers definition options
Post subject:  Re: PDF page headers/footers definition options
yes, please send it to support (at) pd4ml . com
    Post Posted: 13 Nov 2009, 13:40
 
Post subject:  Re: PDF page headers/footers definition options
The document has tree pages. The header prints on every page correctly while the footer never prints.
Just in case, I can send you an example generated PDF and the HTML used.
    Post Posted: 13 Nov 2009, 13:16
 
Post subject:  Re: PDF page headers/footers definition options
How many pages has the resulting PDF document?
Does it print the footer on the second page?
    Post Posted: 13 Nov 2009, 13:05
 
Post subject:  Re: PDF page headers/footers definition options
I tried adding border="1" to the table element. The footer does not print. What else can I do?
    Post Posted: 13 Nov 2009, 12:57
 
Post subject:  Re: PDF page headers/footers definition options
First, try to make sure that it tries to render the footer: add border="1" to footer's <table> and ispect if the borders are in the PDF output.
    Post Posted: 11 Nov 2009, 13:55
 
Post subject:  Re: PDF page headers/footers definition options
I'm evaluating your product to use in production at a customer site.
I tried to add headers and footers to pages with these definitions:

<pd4ml:page.header>
		<table>
			<tr>
				<td>
					<img src="images/logos/telco/TLCO_headerOff.JPG">
				</td>
			</tr>
		</table>
	</pd4ml:page.header>
	<pd4ml:page.footer>
	       <table>
			<tr>
				<td>
					<img src="images/logos/telco/TLCO_footerOff.JPG">
				</td>
			</tr>
		</table>
	</pd4ml:page.footer>

The header appears but the footer does not.
I'm using the latest version of the library (3.5.1). I already checked the images and verified they are correct.
Can you help me?
    Post Posted: 08 Nov 2009, 12:45
 
Post subject:  PDF page headers/footers definition options
PD4ML provides 3 types of headers/footers.

  1. text-only
  2. html (PD4ML Pro)
  3. inline (PD4ML Pro)

The first 2 options are available by PD4ML Java API calls (or as JSP custom tags mapped to PD4ML API): i.e.
<pd4ml:footer> -> pd4ml.setPageFooter();

1. Text only (in such form can be used only in JSP):
<pd4ml:footer
    pageNumberTemplate="page $[page] of $[total]"
    titleAlignment="left"
    pageNumberAlignment="right"
    color="#008000"
    initialPageNumber="1"
    pagesToSkip="1"
    fontSize="14"
    areaHeight="18"/>


2. HTML formatted footer (in such form can be used only in JSP)

<pd4ml:footer areaHeight="-1"><font color="red"><i>page $[page] of $[total]</i></font></pd4ml:footer>

areaHeight="-1" means "autocompute" there

3. The third option, inline footer, allows to define footer body in HTML/PHP document:

<pd4ml:page.footer>
footer: $[page] of $[total]
</pd4ml:page.footer>


The definition impacts all subsequent pages after the page, where the footer defined. A new appearance of the footer overrides previously defined one.
In order to define the footer for the first page, you need to place the definition immediately after <body> tag or before <html>.

Also you may explicitly define pages, where the footer needs to be applied:

<pd4ml:page.footer scope="1">
first page footer: $[page] of $[total]<br> <img src="img1.gif">
</pd4ml:page.footer>
<pd4ml:page.footer scope="2+">
footer: $[page] of $[total]<br>
<img src="img2.gif">
</pd4ml:page.footer>
<html>
<head>
...

The above defines different footers for the first page and for the rest of the pages (the second and others). Also "scope" understands "even", "odd" and "skiplast" modifiers. Example:

scope="2,5-10,even,skiplast"
    Post Posted: 02 Jun 2009, 13:15
 


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