You can set this as:
table.writeSelectedRows(0, -1, 34, 50, writer.getDirectContent());
it will be displayed on bottom
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/page-numbers-in-footer-tp4219499p4657872.html
Sent from the iText - General mailing list archive
On 21/12/2011 21:48, Aarthi wrote:
> I am just getting online help. google and found an example.
Yes, you should really stop taking advantage of other people.
Start reading the book yourself if you care about your employer/customer.
I hope you don't mind getting good advice, but educating yourself
I am just getting online help. google and found an example.
On Wed, Dec 21, 2011 at 3:33 PM, 1T3XT BVBA [via iText - General] <
ml-node+s2136553n4223084...@n4.nabble.com> wrote:
> On 21/12/2011 20:23, Aarthi wrote:
> > I dont see the pages that you are talking about.
> Huh? Which book are you usi
On 21/12/2011 20:23, Aarthi wrote:
> I dont see the pages that you are talking about.
Huh? Which book are you using?
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
ne
It would be great if you could post the pseudo code here.
I dont see the pages that you are talking about.
On Wed, Dec 21, 2011 at 2:19 PM, 1T3XT BVBA [via iText - General] <
ml-node+s2136553n4222902...@n4.nabble.com> wrote:
> On 21/12/2011 20:04, Aarthi wrote:
> > Now im able to get the "page 1
On 21/12/2011 20:04, Aarthi wrote:
> Now im able to get the "page 1 of 10" I want to get this displayed in the
> bottom of the page. I get it displayed in the header. I want them it the
> bottom right corner. below is my onEndPage(). any help is appreciated.
That is explained in the book from w
Now im able to get the "page 1 of 10" I want to get this displayed in the
bottom of the page. I get it displayed in the header. I want them it the
bottom right corner. below is my onEndPage(). any help is appreciated.
public void onEndPage(PdfWriter writer, Document document) {
Pdf
The iTextInAction2Ed\Chapter05\MovieCountries1.cs just 134 line, but
known the answer!
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps t
Op 20/12/2011 22:47, Aarthi schreef:
> Hi,
> I have an issue with displaying the page number in the PDF. My requirement
> is to display page number like
> "Page 1 of 20" and so on...
> I have used the inner class explained in chapter05, but removed the code
> that i dont want.
Er... did you read t
..@gmail.com]
Sent: Tuesday, December 20, 2011 4:47 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] page numbers in footer
Hi,
I have an issue with displaying the page number in the PDF. My
requirement is to display page number like "Page 1 of 20" and so on...
I
Hi,
I have an issue with displaying the page number in the PDF. My requirement
is to display page number like
"Page 1 of 20" and so on...
I have used the inner class explained in chapter05, but removed the code
that i dont want.
My inner class looks like this,
class HeaderFooter extends PdfPageEve
You should be adding the phrase as part of the content you are adding.
Correct me if I am wrong but you want "Page # of #" to be part of your
content. If so, simply create your _pageNumber template either within
PdfPageEventHandler or elsewhere then pass the reference of _pageNumber to
the method
This might be basic knowledge, but I can't find how do I add the Phrase
inside ("in the middle") of one of my Paragraph's content from the
onCloseDocument event?
Besides that would even affect the total number of pages on some border
cases, wouldn't it?
El 28/12/2010 02:24 p.m., Nurettin DAG
I think you can still use the PdfPTemplate as explained in the book for the
total number of pages(value you don t know until u are done with the
document). Given that you define a _pageNumber variable that is a
PdfPTemplate to hold the page number.
protected Phrase getPageNumberingPhrase() {
I have been trying some stuff with the methods you said, but can't get
the result I want.
Suppose I have a Paragraph inside a PDFPCell which says "TITLE - page #n
out of #t - " + image on every page. how do I replace #n and #t on every
page? I understand where can I get those values but what do
Op 28/12/2010 13:32, Johann Pérez schreef:
> Hello,
>
> I have already seen some examples of how to put page numbers and total
> pages using templates.
> What I cannot figure out is how to add page number and total pages
> between some other content.
>
> In our application pdf documents are built f
More info: I am using ITextSharp.
El 28/12/2010 10:32 a.m., Johann Pérez escribió:
> Hello,
>
> I have already seen some examples of how to put page numbers and total
> pages using templates.
> What I cannot figure out is how to add page number and total pages
> between some other content.
>
> In
Hello,
I have already seen some examples of how to put page numbers and total
pages using templates.
What I cannot figure out is how to add page number and total pages
between some other content.
In our application pdf documents are built from some meta-data so
headers and footers are made wit
Bency Thomas wrote:
> Hi,
>
> Iam generating a PDF report using itextsharp (PDF Tables). Can
> page numbers and date be made available on all the pages in PDF
> generated using itextsharp.
This can be done using page events.
See chapter 5 of the 2nd edition of "iText in Action".
--
Thi
Hi,
Iam generating a PDF report using itextsharp (PDF Tables). Can page
numbers and date be made available on all the pages in PDF generated using
itextsharp.
Please help me with this
Thank you.
--
ThinkGeek an
Hello,
I am programming an RTF document using iText 2.1.7's API and I currently
have the page number displaying in the top middle using a header control
and a Cell object.
Is there a straight-forward way to instead put the page number in the
upper right?
Thanks in advance!
-- J
---
Dhvanil wrote:
> Can anybody provide with a sample code for creating a template showing "page
> 1 of 10" that is shown at the right top corner of the pdf. Because i am also
> facing the similar issue.
>
> Any help will be greatly appreciated
It was explained that creating a template when you need
Can anybody provide with a sample code for creating a template showing "page
1 of 10" that is shown at the right top corner of the pdf. Because i am also
facing the similar issue.
Any help will be greatly appreciated
Birthe Berland-2 wrote:
>
> I have used a template to display the page numbe
TECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of 1T3XT info
> Sent: Thursday, May 29, 2008 8:54 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Page numbers right aligned
>
> Birthe Berland wrote:
> > My problem is that I don't
Birthe Berland wrote:
> My problem is that I don't know the number of pages up front and
> therefore don't know the space to reserve for the page count in order
> for it to be right aligned.
>
> I apologize if this is a stupid question.
Now that you've rephrased it, I know it's not a stupid q
:48:26 PM
Subject: Re: [iText-questions] Page numbers right aligned
My problem is that I don't know the number of pages up front and
therefore don't know the space to reserve for the page count in order
for it to be right aligned.
I apologize if this is a stupid question.
On 28 May, 20
My problem is that I don't know the number of pages up front and
therefore don't know the space to reserve for the page count in order
for it to be right aligned.
I apologize if this is a stupid question.
On 28 May, 2008, at 19:11 , 1T3XT info wrote:
> Birthe Berland wrote:
>> I have used a
Birthe Berland wrote:
> I have used a template to display the page number "page 1 og 10".
>
> Now I want this to be right aligned, but I can't find out how to do
> this.
As you don't know the width of the total number of pages in advance,
so you'll always have a gap between the "page 1 og" and
I have used a template to display the page number "page 1 og 10".
Now I want this to be right aligned, but I can't find out how to do
this.
Birthe Berland
Complimenta
-
This SF.net email is sponsored by: Microsoft
Defy
This is the complete code that I have used:
public class PDFTest2 extends PdfPageEventHelper
{
private final static String reportTitle = "pdfText.pdf";
public PdfTemplate tpl;
public BaseFont helv;
public static void main(String[] args)
{
Document document = new Document(
Daniel Fernández wrote:
> But nothing is shown in the cell, so I don't know if I'm doing something
> wrong.
Show us the PDF.
The text is probably there, but not in a place that is visible.
br,
Bruno
-
This SF.net email is sp
Bruno Lowagie escribió:
dafernan wrote:
I'm quite new to iText and found the same issue.
I've tried to use the approach of wrapping the PdfTemplate inside an Image,
but it doesn't work for me.
It's as easy for me to say 'it works for me',
as it is for you to say 'it doesn't work'.
S
dafernan wrote:
> I'm quite new to iText and found the same issue.
>
> I've tried to use the approach of wrapping the PdfTemplate inside an Image,
> but it doesn't work for me.
It's as easy for me to say 'it works for me',
as it is for you to say 'it doesn't work'.
So please be more specific, say
I'm quite new to iText and found the same issue.
I've tried to use the approach of wrapping the PdfTemplate inside an Image,
but it doesn't work for me.
Not sure how it could be done through CellEvent.
Could you put a piece of code showing how both alternatives looked like?
br,
Daniel
Bruno Lo
There is ay example of change pdf "page labels" with Itext ? The example in
the home page , puts page numbers but as contents , then pdf viewer doesn't
recognize them as "real page numbers"
Regards
-
This SF.net email is
Cristian Ferrero wrote:
If i use PdfStamper, or PdfCopy to put page numbers , this numbers works as
watermarks?
That's a strange way to put it, but yes:
you add content and the PDF doesn't care
if the content you are adding consists of
page numbers, text, images, whatever.
i mean if i send pdf
If i use PdfStamper, or PdfCopy to put page numbers , this numbers works as
watermarks? , i mean if i send pdf document to printer and i want to specify
this page numbers , they are not the "real" page numbers, is true ? ,
Supouse the pdf has 3 pages and i put with PdfStamper pages number
500
Bruno Laturner wrote:
I've seen the PageNumbersWatermark example, however I can't find a way to
insert the template inside a table.
You could wrap the PdfTemplate inside an Image,
or use a CellEvent on the table to add the template.
br,
Bruno
smime.p7s
Description: S/MIME Cryptographic Signat
I'm generating a table with onEndPage to be inserted at the footer of a PDF
document and printing it with writeSelectedRows.
In its last cell, I'm trying to put a "Page x of y" code, x is fine, but I
can't get it to insert the total number of pages.
I've seen the PageNumbersWatermark example, ho
Hello!
I'm generating a table with onEndPage to be inserted at the footer of
a PDF document and printing it with writeSelectedRows.
In its last cell, I'm trying to put a "Page x of y" code, x is fine,
but I can't get it to insert the total number of pages.
I've seen the PageNumbersWatermark exam
Hi Alex,
Page numbering in RTF is currently broken (as of iText 2.0.5). It's a
known bug that will be corrected in the next release [1].
In the meanwhile, you can use the previous release (2.0.4), available
at sourceforge [2].
Cheers,
alexis
[1]
http://sourceforge.net/mailarchive/forum.php?thre
It seems that the current rtf page numbering system is either broken
or incompatible with the RTF viewers I have on my mac (OpenOffice 2.2
and Word 2004). My generated RTF files are missing their page
numbers in the footer, and worse, *the example RTF file on the iText
website doesn't work
On Wednesday 19 September 2007, mike lu wrote:
> I have several sections/chapters in the RTF document that I am trying to
> generate using iText. I would like to have the page numbers start from 1
> for each section/chapter. I could not figure how to do that. I am only able
> to get the page number
Hi folks,
I have several sections/chapters in the RTF document that I am trying to
generate using iText. I would like to have the page numbers start from 1 for
each section/chapter. I could not figure how to do that. I am only able to
get the page numbers for the entire document. Can any of you su
Hello,
The document.setPageCount() did it.
Thanks again,
Sushil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sushil
Vegad
Sent: Thursday, July 12, 2007 9:06 AM
To: 'Post all your questions about iText here'
Subject: [iText-questions] Pa
Hi,
When I insert a cover page, my page numbers are getting disturbed. If I
don't create a cover-page, the numbering is fine
I first create a cover page and then get the PDF data by parsing an xml.
document.open();
writer.setPageEmpty(false);
createCoverPage();
//get the data from an xml file:
do
ote:
Build the concatenated doc and then use PdfStamper to insert the pagenumbers.Paulo- Original Message -
From: "Srinivas Hechina" <[EMAIL PROTECTED]>To: <itext-questions@lists.sourceforge.net
>Sent: Tuesday, November 07, 2006 6:59 PMSubject: [iText-questions] Page num
Build the concatenated doc and then use PdfStamper to insert the page
numbers.
Paulo
- Original Message -
From: "Srinivas Hechina" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 07, 2006 6:59 PM
Subject: [iText-questions] Page numbers in concatenated PDFs.
Hi Bruno/Paulo,
Is it possible to insert the page numbers (like Page 1 of
10 etc..) inside the concatenated PDF using iText Page events? For
example, I am concatenating two pdfs as shown below, and I want the
Page numbers to be inserted in the final concatenated pdf's footer. I
tried page e
Hi,
Is it possible to insert the page numbers (like Page 1 of 10 etc..) inside the concatenated PDF using iText Page events? For example, I am concatenating two pdfs as shown below, and I want the Page numbers to be inserted in the final concatenated pdf's footer. I tried page event onEndPa
Leena Kulkarni wrote:
> Hello Bruno,
> I checked th emailing list for help on Page no.
> Also tried the following link.
> http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/pageevents/PageNumbersWatermark.java
That's a good example, if you know what you are doing.
> Actuall
Hello Bruno, I checked th emailing list for help on Page no. Also tried the following link.http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/pageevents/PageNumbersWatermark.java Actually, we are generating XML file on the fly before generating the PDF. The code is like fo
PdfStamper
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Nandu
> Sent: Thursday, April 28, 2005 2:59 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Page Numbers
>
> Hi,
>
> I
Hi,
I have a PDF document created using iText. To this I have appended pages by
importing few other pages from another PDF document(using PdfCopy). How do I set
the page numbers for the document now after this append operation ?
Thanks,
Nandu
---
Yes I have used this
HeaderFooter header = new HeaderFooter(new Phrase("This is a header without a page
number"), false);
document.setHeader(header);
this is working fine for all the pages but this value could not be set for the first
page I am adding two tables. One table is dyanamic and it go
Depending on your needs you could use a HeaderFooter
object or page events. The HeaderFooter object is
very simple to use; there is a working example of the
page event at
http://www.lowagie.com/iText/tutorial/ch12.html#eventexample
.
-Matt
--- [EMAIL PROTECTED] wrote:
> Hai
>
> My requirement i
Hai
My requirement is that I need to create page number at the end of each Page
I am creating a single table in which number of rows will go from 2 to N number. I
implemented the PdfPageEvent Interface I oover ridden the Methods
onEndPage
It doesn't write the page number
Give me the solution
I want a footer in my document in the form of:
Page 1 of 6
HeaderFooter footer = new HeaderFooter(new Phrase("Page"), new Phrase(" of 6"));
footer.setBorder(Rectangle.NO_BORDER);
footer.setAlignment(Element.ALIGN_CENTER);
document.setFooter(footer);
Is th
58 matches
Mail list logo