On 30/06/2013 21:53, manolis prekas wrote:
Hello
I am trying to add header and footer but when i add this code
HeaderFooter header = new HeaderFooter(new Phrase("Add Header Part
Here"), false);
Does not recognise the HeaderFooter. Which library i should add to
recognize that to recognise it?
Hello
I am trying to add header and footer but when i add this code
HeaderFooter header = new HeaderFooter(new Phrase("Add Header Part Here"),
false);
Does not recognise the HeaderFooter. Which library i should add to recognize
that to recognise it?
Thank you
If you need to do it through Java, one option you have is to do it like they
show here:
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php
For Java you can find plenty of details on the web, jsp is a little
trickier.
dshah wrote:
>
> I have been struggling with this issue
I have been struggling with this issue. I have a huge header that I need
repeated for every page in which a PdfPTable can spill over into another page.
I have build a header table so that I can format it the way I need it which
includes a GIF image. How do I use HeaderFooter and setHeader to
Ok I managed to do this with the following code:
//Header
Phrase phrase = new Phrase (-16);
phrase.add(table);
HeaderFooter header = new HeaderFooter(phrase, false);
header.setBorder(0);
header.setAlignment(Paragraph.ALIGN_CENTER);
document.s
It's too different for a jsp. I was looking into watermarks, and the code on
a jsp page could be very different from a java class file.
This works:
HeaderFooter header = new HeaderFooter(new Phrase("Header Header Header",
false);
header.setBorder(0);
header.setAlignment(Paragraph.ALIGN_CENTER);
I saw that, and it's the same code that's on iText by example page but how do
I change it so it works on a jsp page?
mister bean wrote:
>
> See the book, starting at p. 432. There's an example of exactly what
> you're looking to do.
>
> --mr.bean
>
>
> davidc2 wrote:
>>
>> Hey,
>>
>> I'm
See the book, starting at p. 432. There's an example of exactly what you're
looking to do.
--mr.bean
davidc2 wrote:
>
> Hey,
>
> I'm trying to use a PdfPTable table as a header, but I'm not able to...
>
> I'm using
> PdfPTable table = new PdfPTable(3);
> on which I'm adding a bunch of cells
Hey,
I'm trying to use a PdfPTable table as a header, but I'm not able to...
I'm using
PdfPTable table = new PdfPTable(3);
on which I'm adding a bunch of cells, and it works, as long as I'm adding it
to the Document (document.add(table);)
But the only way I'm been able to have a header and a fo
Michael Clayton wrote:
> Hi,
>
> i would like to underline the first line of text in my document. I
> want the line to span across the entire width of the page. How do you
> do this?
I'm not sure how you define a line.
Suppose you have:
Quick brown fox jumps over
the lazy dog.
What is the
Hi,
i would like to underline the first line of text in my document. I
want the line to span across the entire width of the page. How do you
do this?
Mike
-
This SF.net email is sponsored by DB2 Express
Download DB2 Ex
It's all in tutorial and in the book.
Paulo
- Original Message -
From: "FrenchUser" <[EMAIL PROTECTED]>
To:
Sent: Friday, May 04, 2007 12:38 PM
Subject: Re: [iText-questions] Header/Footer set/get size/position
>
> Can you give me an exemple because I don
PROTECTED] On
>> Behalf Of FrenchUser
>> Sent: Friday, May 04, 2007 9:33 AM
>> To: [email protected]
>> Subject: [iText-questions] Header/Footer set/get size/position
>>
>>
>> Hi,
>>
>> I Have a Table wich contain "y&quo
You must use page events and PdfPTable.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of FrenchUser
> Sent: Friday, May 04, 2007 9:33 AM
> To: [email protected]
> Subject: [iText-questions] Heade
Hi,
I Have a Table wich contain "y" rows and "x" columns, "x" and "y" are
unknow, I want to set a Table wich fit only one page, with same rows height,
and same columns width. So I calculate the rows.height like that :
TableHeight = document.size.height - document.margin.top -
document.
Versoft wrote:
> I purchased the bookiText in action, it says we should
> extend our class to PdfPageEventHelper which i cant do because my class is
> already extending Action class.
The book advises to extend the class PdfPageEventHelper,
because that is easier than implementing the page event
in
Hi,
sorry for the long delay in answering, I've been offline.
On Friday 23 February 2007 19:30, Garcia, Daniel NMN wrote:
> How can I merge this existing rtf file without changing the
> footer/header of my destination document?
This is a tricky situation. When you merge the complete document, the
Hi Friends,
Appreciate all for helping in my previous problem.
This time i need to add header and footer to my PDF output. This is my
attached...
The problem is the header and footer only on the last page. What do i do to
get it all the pages. I purchased the bookiText in action, it says we sh
I have been able to have different footers and headers in my rtf
document, the first page is different, all the rest are the same. As
part of my document I need to import an existing rtf document into it.
As soon as I import the existing document one of two things happen:
-If existing document has
Hi everyone
I am trying to place image header and footer on every page of a pdf document for that i wrote the following code With this i am able to place header footer images on the first page only to repeat the process through the pages i am suggested to use onEndPage event. But i couldnot fin
Look for page events in the tutorial.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Sachit Dahal
> Sent: Friday, October 20, 2006 12:48 PM
> To: [email protected]
> Subject: [iText-questions]
I can see that i can add Text header and Text
footer to a PDF Document, Similarly I can Place images in the
PDF
But how can i put an image to Header / footer
so that they can be displayed on each page
when I have a designer Generated PDF(With
Header and Footer) and tried to open th
Never mind I just realized we are passing the PdfContentByte to
table.writeSelectedRows.
Thank you for your help.
--
View this message in context:
http://www.nabble.com/Header-Footer-Question--tf1993704.html#a5473007
Sent from the iText - General forum at Nabble.com.
I am sorry I am new to this. Example shows that footer and header is added to
document maybe I am missing something. Assuming I get the PdfContentByte
from writer.getDirectContent() then how do I add table to content
afterwards?
--
View this message in context:
http://www.nabble.com/Header-Foote
You can't use Document.add() in a page event. It must all be placed at
absolute positions in PdfContentByte.
Paulo
- Original Message -
From: "mcevikce" <[EMAIL PROTECTED]>
To:
Sent: Monday, July 24, 2006 6:18 PM
Subject: [iText-questions] Header/Footer Question?
I am trying to add header and footer to each page in my document but facing
two issues with it. I have followed the tutorial and extended
PdfPageEventHelper class.
1-) When I add just the footer, the footer is addedd to begining and the end
of the page.
2-) When I try to add the title I get st
bruno lowagie.com> writes:
> OK, if you need to create PDF and RTF using the same code, then you need
> class Table or SimpleTable.
Ok, but what about the bugs? The problems demonstrated by my posted sample are
now showing up in the production reports.
-Bill
__
Hi,
The header and footer is automatically disabled on the first page. Could any of you tell me how to display it on the first page as well.
Thanks,
Deepti
Zwicky, William R ERDC-CERL-IL Contractor wrote:
I'm having multiple problems trying to insert a table into my document. I've
included a sample to demonstrate most of them, but there's one I can't
reproduce.
If you run the sample below, you'll see the following bugs:
You are using class Ta
I'm having multiple problems trying to insert a table into my document. I've
included a sample to demonstrate most of them, but there's one I can't
reproduce.
If you run the sample below, you'll see the following bugs:
- Header and footer are missing from the first page. Since no content was
ad
Rumpa Giri wrote:
Found the problem. The FontFactory code was the culprit, silly
cut-paste error was causing the font to get a strikethrough.
BTW, the ITEXT library is pretty cool. We used JASPER reports earlier,
thinking of switching to ITEXT.
JasperReports uses iText for PDF generation,
Found the problem. The FontFactory code was the culprit, silly cut-paste error was causing the font to get a strikethrough. BTW, the ITEXT library is pretty cool. We used JASPER reports earlier, thinking of switching to ITEXT. Thanks, Rumpa GiriRumpa Giri <[EMAIL PROTECTED]> wrote:On
On removing the FontFactory.getFont the strikethroughs are gone. But we do want a specific font to be there. How do I enforce a font type? regards, Rumpa GiriRumpa Giri <[EMAIL PROTECTED]> wrote: Anyone?Rumpa Giri <[EMAIL PROTECTED]> wrote: I am 3 day old to ITEXT library. I went through
Anyone?Rumpa Giri <[EMAIL PROTECTED]> wrote:I am 3 day old to ITEXT library. I went through the tutorial. I followed the example EndPage.java to create the header/footer. The header is a 2 X 2 table. Footer is 1 X 3 table. In the header somehow the second row, first cell data is getting un
I am 3 day old to ITEXT library. I went through the tutorial. I followed the example EndPage.java to create the header/footer. The header is a 2 X 2 table. Footer is 1 X 3 table. In the header somehow the second row, first cell data is getting underlined and strike through. And all 3 cell data
Hi,
On the first page I have inserted a pic and the pages have a header and a
footer. Then unfortunately a new page with header and footer without content
will be added.
If I delete either the header or the footer, then the second blank page will
not be added anymore.
Why will a blank page be
res; =
[EMAIL PROTECTED]
Subject: <=
/B> Re: [iText-questions] BIDI =
examples
great, yes i think =
i grasp whats going on in that. i just wish i didn't have
to handle these =
as special cases. in any case, many thanks.
- Original =
Message -
From: "Paulo =
Soar
Hey All,
It's relatively simple to get the current page number to output in the
footer, but how can I change the color (and other font properties) for the
text used in the footer (default is black)???
TIA
Cheers
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Syste
Hello,
my question is, how can I use a color fonts for
Footer or Header, if I can.
Thank You.
[EMAIL PROTECTED]
Czech Republic
- Original Message -
From: "Tom Kofford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 18, 2003 23:19
Subject: [iText-questions] Header/footer on every page but last?
> How can I get a footer to print on every page but the last on a
> varia
How can I get a footer to print on every page but the last on a
variable-length pdf? I looked at the page events, templates, tutorials,
examples, and can't seem to find a way to do this. If I add it to every
page in the onEndPage() event, is there a way to remove it from the last
page in the
: <[EMAIL PROTECTED]>
To: "Rob Moore" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 5:13 PM
Subject: Re: [iText-questions] Header & Footer problems (repeated)
>
> They will show up on the next page if you c
[EMAIL PROTECTED]cc:
ceforge.net Subject:
[iText-question
[EMAIL PROTECTED]cc:
ceforge.net Subject:
[iText-question
Howdy. I hadn't received any response to this, so
perhaps either no one has a solution/suggestion, or perhaps it passed by without
notice. I'm reposting in the case that it is the latter.
Thanks.
- Original Message -
From: Rob Moore
To: [EMAIL PROTECTED]
Sent: Tuesday, Janu
I am attempting to create a PDF file with text in the header
and the page number in the footer. I am following the examples in the
tutorial, but neither show up in the generated PDF file. The code I am
using is below. The log messages print successfully. I am calling
setFooter() before o
46 matches
Mail list logo