[iText-questions] plz give ideas

2008-05-05 Thread san kar
hi, I want to create TOC(Table of Contents) in my pdf. My TOC look like this.. *Contents* Introduction .8 1. Author..9 Pl

Re: [iText-questions] New Page is not added for the end of the page for a very, very long text

2008-05-05 Thread info
Quoting "krishnan.1000" <[EMAIL PROTECTED]>: > > Hi 1T3XT info, > > I want text to be displayed on the same page to the page size. I want the > remaining text to be shown on the new page. What is the question? My previous answer solves your problem. -- This answer is provided by 1T3XT BVBA -

Re: [iText-questions] List class

2008-05-05 Thread info
Quoting Howard Shank <[EMAIL PROTECTED]>: > Bruno/Paulo, > > The List class creates numbered lists using a single digit. > There's the ability to append a prefix and a suffix to the value. That's a very recent addition, added it after a question on the list (but I don't remember which one). > Ho

Re: [iText-questions] OCG and content stream

2008-05-05 Thread info
Quoting Leonard Rosenthol <[EMAIL PROTECTED]>: > Provided that you replace the ENTIRE object (with all associated > elements in the dictionary), then it should be fine to replace Form > XObjects as well. Why is this important? Suppose that your original XObject uses a font Helvetica, referred to

Re: [iText-questions] Problems with Alignments of PdfPCells in PdfPTables

2008-05-05 Thread info
Quoting Deadblow <[EMAIL PROTECTED]>: > Can somebody help me please. Thanks already a lot ! :) Google for "text mode", "composite mode" and "PdfPTable". Or read chapters 6 and 7 of the book "iText in Action". -- This answer is provided by 1T3XT BVBA ---

Re: [iText-questions] New Page is not added for the end of the page for a very, very long text

2008-05-05 Thread krishnan.1000
Hi 1T3XT info, I want text to be displayed on the same page to the page size. I want the remaining text to be shown on the new page. 1T3XT info wrote: > > krishnan.1000 wrote: >> Hi, >> >> I followed example Chapter7/ColumnControl.java to create a fax cover >> sheet >> for my project. I am t

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Leonard Rosenthol
Provided that you replace the ENTIRE object (with all associated elements in the dictionary), then it should be fine to replace Form XObjects as well. Leonard On May 5, 2008, at 11:43 AM, Lars Eirik Rønning wrote: Thanks Leonard. Would you or anyone else care to elaborate on your statement

Re: [iText-questions] Problems with Alignments of PdfPCells in PdfPTables

2008-05-05 Thread Paulo Soares
If you use addElement(k) the alignment comes from the object k, like a Paragraph, for example. Paulo - Original Message - From: "Deadblow" <[EMAIL PROTECTED]> To: Sent: Monday, May 05, 2008 10:11 PM Subject: [iText-questions] Problems with Alignments of PdfPCells in PdfPTables > > I

[iText-questions] Problems with Alignments of PdfPCells in PdfPTables

2008-05-05 Thread Deadblow
I am adding PdfPCells to PdfPTables with the addCell()-function. This added cells normally contain images or phrases that i added before i add the cells to the tables in this way: Images: cell = new PdfPCell(image,false); Phrases: cell.addElement(new Phrase("Nabble is cool",...); Now occures the

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Lars Eirik Rønning
Thanks Leonard. Would you or anyone else care to elaborate on your statement "The replacement works fine for raster images, but not for the Form XObjects". In my case I know that there will either be Xobject of the subtype image or form. I also need to be able to replace existing text (from illustr

[iText-questions] List class

2008-05-05 Thread Howard Shank
Bruno/Paulo, The List class creates numbered lists using a single digit. There's the ability to append a prefix and a suffix to the value. So, List list = new List(true, 20); list.add(new ListItem("First line")); list.add(new ListItem("The second")); list.add(ne

Re: [iText-questions] Question about signature appearance using iText

2008-05-05 Thread Leonard Rosenthol
On May 5, 2008, at 9:12 AM, Khurram Saleem wrote: >> I would look at tools such as PdfBox or JPEDAL > Are these open source or free? > Yes. >> Can you explain some more about WHY you are doing this? > As iText can parse PDF and write in PDF e.g. creating signatures. > Although > iText

Re: [iText-questions] Invalid TIFF -- Invalid code encountered whiledecoding 2D group 4 compressed data.

2008-05-05 Thread Paulo Soares
Please post your fix. Apparentely nobody can produce correct G4 files and the burden is on the viewers to fix the broken files. iText does some effort to fix it but only goes so far. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tessler

Re: [iText-questions] Question about signature appearance using iText

2008-05-05 Thread Muhammad Khurram Saleem
Hi Leonard! > I would look at tools such as PdfBox or JPEDAL Are these open source or free? >as you will need to be able to render arbitrary PDF content into a raster >image (if that is what you want). Yeah I need the same. The whole page as well as pdf signatures. >Adobe Acrobat adds additional

Re: [iText-questions] Question about signature appearance using iText

2008-05-05 Thread Muhammad Khurram Saleem
Hi Leonard! > I would look at tools such as PdfBox or JPEDAL Are these open source or free? >as you will need to be able to render arbitrary PDF content into a raster >image (if that is what you want). Yeah I need the same. The whole page as well as pdf signatures. >Adobe Acrobat adds additional

[iText-questions] Invalid TIFF -- Invalid code encountered while decoding 2D group 4 compressed data.

2008-05-05 Thread Tessler, Micah (M.B.)
I am working with a set of tiffs, several of which are invalid. When reading into iText, I get the following error message: Invalid TIFF -- Invalid code encountered while decoding 2D group 4 compressed data. iText version = 2.02 My question is regarding the cause of the issue and some possible app

Re: [iText-questions] Question about signature appearance using iText

2008-05-05 Thread Leonard Rosenthol
I would look at tools such as PdfBox or JPEDAL, as you will need to be able to render arbitrary PDF content into a raster image (if that is what you want). Adobe Acrobat adds additional UI elements (like the green checkmark) to a signature's appearance - and that is specific to Acrobat. Can

Re: [iText-questions] OCG and content stream

2008-05-05 Thread 1T3XT info
Lars Eirik Rønning wrote: > Thanks again. > I have to admit i am not aware how one can influence the creation of an > XObject with a explicit /OC entry using Acrobat or Illustrator. > Are you able to help me with pointers on this issue? I'm sorry, I hardly ever use Acrobat and I don't have Illust

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Leonard Rosenthol
You can't influence either - they will do what they want when authoring. So you'll need to write more complex code to deal with the problem... Remember that XObjects can either be simple raster images OR complex "mini-PDFs". The replacement works fine for raster images, but not for the

Re: [iText-questions] Bookmarks in merged PDF document

2008-05-05 Thread Mark Flagg
Hi Paulo, Thanks very much for your quick reply. I have implemented your example and it works 100%. Many thanks Mark. -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: 05 May 2008 01:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] B

[iText-questions] Question about signature appearance using iText

2008-05-05 Thread Muhammad Khurram Saleem
Hi iText Team, Is there any way that I can get the Signature Appearance from PDF document as an image using iText? Also I want to get information about signatures. I want to get and show Signature Appearance as Adobe Acrobat shows it in its interface. Also I don't want to use managed code based ap

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Lars Eirik Rønning
Thanks again. I have to admit i am not aware how one can influence the creation of an XObject with a explicit /OC entry using Acrobat or Illustrator. Are you able to help me with pointers on this issue? Also I had a look at your receipe for finding the object's corresponding layer and it was simil

Re: [iText-questions] OCG and content stream

2008-05-05 Thread 1T3XT info
Lars Eirik Rønning wrote: > I fully understand your concern when it comes to the possibility of > destroying the output, however in our case we have full control of the > original pdf that will be read. OK. > The idea is that someone with esthetics produce a nice pdf. I have a counter-question

Re: [iText-questions] Image from pdf is empty

2008-05-05 Thread Paulo Soares
Your pages don't start at (0,0). Place the pages with addTemplate() with an offset, in your case with -8595.0 y offset. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of aaresund > Sent: Monday, May 05, 2008 3:31 PM > To: itext-questions@li

Re: [iText-questions] Image from pdf is empty

2008-05-05 Thread aaresund
Sorry for not being specific enough in the first place. Unfortunately, I cannot post the samples. So please let me put the question a bit more precise this time: I have 2 pdf files, generated from different Adobe Acrobat Plugins. Both files show and print without problem in Acrobat Reader. How

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Lars Eirik Rønning
OK, thanks for the great help. I fully understand your concern when it comes to the possibility of destroying the output, however in our case we have full control of the original pdf that will be read. The idea is that someone with esthetics produce a nice pdf. This pdf will then be opened and imag

Re: [iText-questions] OCG and content stream

2008-05-05 Thread 1T3XT info
Lars Eirik Rønning wrote: > Each xobject in my pdf is placed on its own layer. I was going to say: that's where you're wrong. But you aren't. It's a matter of interpretation. Let's have a look at this snippet: /OC /MC0 BDC q 0 841.89 595.276 -841.89 re W n q 1 0 0 -1 283.7324219 393.2568359 cm /

Re: [iText-questions] PDF Signatures: Why are only the first 8192 bytes of RangeStream relevant?

2008-05-05 Thread Andreas Kuehne
Hi Rico, don't worry, it's just a plain Java problem : The while-loop iterates as long as the number of read bytes is bigger than 0. So update on the digest is called multiple times, if required ... the whole bunch of bytes from the stream will be processed. Greetings Andreas - Original

[iText-questions] PDF Signatures: Why are only the first 8192 bytes of RangeStream relevant?

2008-05-05 Thread Starke, Rico
Hi, I'm using iText to sign pdf files with an external signature dictionary similar to the examples here: http://itextpdf.sourceforge.net/howtosign.html. The examples make me wonder why only the first 8192 bytes of the range stream are used to compute the document hash, instead of all range stream

Re: [iText-questions] OCG and content stream

2008-05-05 Thread Lars Eirik Rønning
Each xobject in my pdf is placed on its own layer. The strange thing is that i am not (allthough i have read about this before) able to find a reference to the oc in either of the objects streams. The pdfs are genreated from Adobe Illustrator. Any idea why the oc reference is left out? Btw i do me

Re: [iText-questions] OCG and content stream

2008-05-05 Thread 1T3XT info
Lars Eirik Rønning wrote: > Hi. > Is there an easy way to retrieve the part of the page content stream > which indicate the reference to a given ocg(layer) I guess you are looking for something like PRTokeniser; but I wouldn't say that offers an easy way to retrieve the operators and operands mar

Re: [iText-questions] Bookmarks in merged PDF document

2008-05-05 Thread Paulo Soares
You are posting two questions. 1 - iTextSharp doesn't produce docs with errors in XREF tables or elsewhere. If it does, please provide a small standalone program so that the problem can be reproduced. 2 - Bookmarks are built outside the source docs and added before closing the final doc. See the

Re: [iText-questions] Bookmarks in merged PDF document

2008-05-05 Thread 1T3XT info
Mark Flagg wrote: > My question is how do I get the final document to show bookmarks > correctly? I have looked through all the previous posts on this topic > and I cannot find a clear answer. Obviously you didn't look at the right place: http://www.1t3xt.com/downloads/source/index.php?page=code

[iText-questions] OCG and content stream

2008-05-05 Thread Lars Eirik Rønning
Hi. Is there an easy way to retrieve the part of the page content stream which indicate the reference to a given ocg(layer) The stream of a give page is included below: /OC /MC0 BDC q 0 841.89 595.276 -841.89 re W n q 1 0 0 -1 283.7324219 393.2568359 cm /Fm0 Do Q EMC /OC /MC1 BDC Q q 0 841.89 595.

[iText-questions] Bookmarks in merged PDF document

2008-05-05 Thread Mark Flagg
Hi, I have created a document from three separate documents. These are Title, Table Of Contents (TOC) and Body. The document is generated correctly but when opened in my reader (PDF-Xchange Viewer) there are no bookmarks and there is a warning that there are errors in the XREF table. Adobe Acro