Re: [iText-questions] Page Labels

2011-06-01 Thread 1T3XT BVBA
On 1/06/2011 18:48, John Renfrew wrote: > I am successfully replacing all existing labels or starting a new > style from a given page number with or without a prefix and defining > the start number, but they then go all the way to the last page. That is probably an effect caused by replacing the

[iText-questions] Page Labels

2011-06-01 Thread John Renfrew
Is there a simple way to define the END of a range where you want to set new page labels? I am successfully replacing all existing labels or starting a new style from a given page number with or without a prefix and defining the start number, but they then go all the way to the last page. This

Re: [iText-questions] Page Labels

2007-02-10 Thread Bruno Lowagie
Dean Krueger wrote: > Great news thanks for all your help! When will iText 2 be released? The release date entirely depends on you all. I had scheduled yesterday to update the changelog and write some documentation, but I had to spend the whole day answering questions. You should all thank Actuat

[iText-questions] Page Labels

2007-02-09 Thread Dean Krueger
>I have just finished writing this functionality, >and I uploaded it to the CVS repository. >It will be released in iText 2. >br, >Bruno Great news thanks for all your help! When will iText 2 be released? How will you access this new method? Thanks Dean

Re: [iText-questions] Page Labels

2007-02-09 Thread Bruno Lowagie (iText)
Dean Krueger wrote: > I was just hoping I could get > an array back from iText with the page numbers in it. I have just finished writing this functionality, and I uploaded it to the CVS repository. It will be released in iText 2. br, Bruno -

Re: [iText-questions] Page Labels

2007-02-08 Thread Bruno Lowagie
Dean Krueger wrote: > The CastException is being caused earlier, at the PdfDictionary labels > = (PdfDictionary)dict.get(PdfName.PAGELABELS); statement. It's sufficient to change this accordingly: (PdfDictionary)PdfReader.getPdfObject(dict.get(PdfName.PAGELABELS)); > I was just hoping I could get

[iText-questions] Page Labels

2007-02-08 Thread Dean Krueger
>Let me know if I guessed right concerning the object that >caused the ClassCastException. Could be you need getPdfObject >in other places too. The CastException is being caused earlier, at the PdfDictionary labels = (PdfDictionary)dict.get(PdfName.PAGELABELS); statement. I have been looking at th

Re: [iText-questions] Page Labels

2007-02-08 Thread Bruno Lowagie (iText)
Dean Krueger wrote: > The object class name returning is > "com.lowagie.text.pdf.PRIndirectReference" what is this telling me? OK, as promised a little update of ExtractPageLabels: I replaced: pageLabel = (PdfDictionary) i.next(); with: pageLabel = (PdfDictionary) PdfReader.getPdfObject((PdfObje

Re: [iText-questions] Page Labels

2007-02-07 Thread Bruno Lowagie
Dean Krueger wrote: > The object class name returning is > "com.lowagie.text.pdf.PRIndirectReference" what is this telling me? If you do a toString() of this object, you'll get something like "14 0 R", meaning that the real object is located outside the dictionary you are inspecting. It's somewher

Re: [iText-questions] Page Labels

2007-02-07 Thread Dean Krueger
Dean Krueger wrote: > Can you think of an example in the book that would show me how to do this? > Yes, in chapter 18, you explore the internal syntax > of a PDF document. But you don't really need that: > all you need is some common Java knowledge: > if you have a ClassCastException: remove the '

Re: [iText-questions] Page Labels

2007-02-07 Thread Bruno Lowagie (iText)
Dean Krueger wrote: > Hi. > I have a multi page PDF and would like to get the page numbers of each > page. In the PDF spec this is called Page Label. I was wondering if iText > supports the getting of these page numbers. I am looking in the book on > page > 402 it shows that I can change them on

Re: [iText-questions] Page Labels

2007-02-07 Thread Bruno Lowagie (iText)
Dean Krueger wrote: > Hi. > I have a multi page PDF and would like to get the page numbers of each > page. In the PDF spec this is called Page Label. I was wondering if iText > supports the getting of these page numbers. I am looking in the book on > page > 402 it shows that I can change them on

[iText-questions] Page Labels

2007-02-06 Thread Dean Krueger
Hi. I have a multi page PDF and would like to get the page numbers of each page. In the PDF spec this is called Page Label. I was wondering if iText supports the getting of these page numbers. I am looking in the book on page 402 it shows that I can change them on documents I create. But doesn't s

[iText-questions] Page Labels

2007-02-05 Thread Dean Krueger
Hi. I have a multi page PDF and would like to get the page numbers of each page. In the PDF spec this is called Page Label. I was wondering if iText supports the getting of these page numbers. I am looking in the book on page 402 it shows that I can change them on documents I create. But doesn't s