Re: [iText-questions] page numbers in footer

2013-03-21 Thread farazahmad56
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread 1T3XT BVBA
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread Aarthi
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread 1T3XT BVBA
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread Aarthi
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread 1T3XT BVBA
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread Aarthi
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread aszomor
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

Re: [iText-questions] page numbers in footer

2011-12-21 Thread iText Info
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

Re: [iText-questions] page numbers in footer

2011-12-20 Thread Jason Berk
..@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

[iText-questions] page numbers in footer

2011-12-20 Thread Aarthi
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

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread Nurettin DAG
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

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread Johann Pérez
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

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread 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() {

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread Johann Pérez
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

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread 1T3XT BVBA
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

Re: [iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread Johann Pérez
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

[iText-questions] Page numbers and total number of pages as part of the pdf content

2010-12-28 Thread Johann Pérez
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

Re: [iText-questions] Page Numbers and Date on all the pages in PDF using itextsharp

2010-06-14 Thread 1T3XT info
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

[iText-questions] Page Numbers and Date on all the pages in PDF using itextsharp

2010-06-14 Thread Bency Thomas
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

[iText-questions] Page Numbers in Upper Right Corner?

2010-05-15 Thread Jack
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 ---

Re: [iText-questions] Page numbers right aligned

2008-06-02 Thread 1T3XT info
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

Re: [iText-questions] Page numbers right aligned

2008-06-02 Thread Dhvanil
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

Re: [iText-questions] Page numbers right aligned

2008-05-29 Thread Paulo Soares
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

Re: [iText-questions] Page numbers right aligned

2008-05-29 Thread 1T3XT info
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

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread Howard Shank
: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

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread Birthe Berland
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

Re: [iText-questions] Page numbers right aligned

2008-05-28 Thread 1T3XT info
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

[iText-questions] Page numbers right aligned

2008-05-28 Thread Birthe Berland
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

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-30 Thread Daniel Fernández
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(

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-30 Thread Bruno Lowagie
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

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-30 Thread Daniel Fernández
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

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-30 Thread Bruno Lowagie
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

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-29 Thread dafernan
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

[iText-questions] Page numbers

2008-01-18 Thread Cristian Ferrero
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

Re: [iText-questions] Page numbers

2008-01-17 Thread Bruno Lowagie
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

[iText-questions] Page numbers

2008-01-17 Thread Cristian Ferrero
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

Re: [iText-questions] Page numbers in tables in footers in PDFs

2008-01-16 Thread Bruno Lowagie
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

[iText-questions] Page numbers in tables in footers in PDFs

2008-01-16 Thread Bruno Laturner
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

[iText-questions] Page numbers in tables in footers in PDFs

2008-01-16 Thread Bruno Laturner
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

Re: [iText-questions] page numbers in RTF docs

2007-10-02 Thread Alexis Pigeon
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

[iText-questions] page numbers in RTF docs

2007-10-01 Thread Alex Jacoby
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

Re: [iText-questions] Page Numbers for RTF

2007-09-21 Thread Mark Hall
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

[iText-questions] Page Numbers for RTF

2007-09-19 Thread mike lu
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

Re: [iText-questions] Page numbers disturbed by creating coverpage

2007-07-12 Thread Sushil Vegad
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

[iText-questions] Page numbers disturbed by creating coverpage

2007-07-12 Thread Sushil Vegad
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

Re: [iText-questions] Page numbers in concatenated PDFs.

2006-11-08 Thread Srinivas Hechina
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

Re: [iText-questions] Page numbers in concatenated PDFs.

2006-11-07 Thread Paulo Soares
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.

[iText-questions] Page numbers in concatenated PDFs.

2006-11-07 Thread Srinivas Hechina
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

[iText-questions] Page numbers in concatenated PDFs

2006-11-06 Thread Srinivas Hechina
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

Re: [iText-questions] Page numbers - checked the archives before posting.

2006-07-25 Thread Bruno Lowagie
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

[iText-questions] Page numbers - checked the archives before posting.

2006-07-25 Thread Leena Kulkarni
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

RE: [iText-questions] Page Numbers

2005-04-28 Thread Paulo Soares
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

[iText-questions] Page Numbers

2005-04-28 Thread Nandu
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 ---

Re: [iText-questions] Page Numbers For Document

2002-11-09 Thread sundardba
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

Re: [iText-questions] Page Numbers For Document

2002-11-08 Thread Matt Benson
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

[iText-questions] Page Numbers For Document

2002-11-08 Thread sundardba
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

[iText-questions] page numbers - how do I get the total number of pages?

2002-05-23 Thread jesnook
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