Re: [iText-questions] Signing from hash, not rangestream.

2009-11-30 Thread Andreas Kuehne
Hi Javadoc, are yu really going in the right direction ? I would presume the rangestream the most important part when it comes to signing PDFs. We process most part of the signature outside iText in a different crypto provider, but praise the lord every day for the availability of the rangestre

[iText-questions] Multiple signatures and multiple revisions

2009-11-30 Thread Glam
Hi, I've read the following thread http://old.nabble.com/Re:-multiple-signatures-td3725560.html , but there is something more I'd like to ask. It is obvious, that if the document has 2 revisions, the first signature doesn't cover the second revision. However, is it possible (according to the PDF

Re: [iText-questions] Problem with PDFReader object

2009-11-30 Thread Mike Marchywka
> From: > To: itext-questions@lists.sourceforge.net > Date: Tue, 1 Dec 2009 07:53:56 +0530 > Subject: Re: [iText-questions] Problem with PDFReader object > > The same pdf's when they are sent to the PDFReader as a single request it > works correctly, th

Re: [iText-questions] Problem with PDFReader object

2009-11-30 Thread Sinha, Abhishek
The same pdf's when they are sent to the PDFReader as a single request it works correctly, the problem is only happening when we send 5 or more concurrent threads to the concatenate method. -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Tuesday, December 01, 2009 12

[iText-questions] Signing from hash, not rangestream.

2009-11-30 Thread Javadoc
I've been modifying the standard itext example of signing with an external signature. Normally you use the Signature.update(byte[]) method to input the range stream into to the signature object and then call Signature.sign() to return the digest. I would like to use a MessageDigest to return the P

Re: [iText-questions] iTextSharp : How to read PDF field for which page to show first

2009-11-30 Thread Leonard Rosenthol
Well... A PDF is always set to open on Page 1 (or page 0, depending on how you count ;). HOWEVER, through the use of an "open action" (see ISO 32000-1, 12.6) the document can instruct a conforming reader to do something else - such as "go to a different page in the document". There are variou

[iText-questions] iTextSharp : How to read PDF field for which page to show first

2009-11-30 Thread jayelbee
Can someone give me a pointer to how I would use iTextSharp to read the field that Acrobat uses to determine the first page to display? I would like to scan a number of existing PDFs and report which ones are not set to open to the cover page. I've used iTextSharp as far as opening a PDF a iterat

Re: [iText-questions] Problem with PDFReader object

2009-11-30 Thread Mike Marchywka
> Date: Mon, 30 Nov 2009 20:17:03 +0100 > From: i...@1t3xt.info > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Problem with PDFReader object > > Sinha, Abhishek wrote: >> Please let us know >> if there is any issue with

Re: [iText-questions] Problem with PDFReader object

2009-11-30 Thread 1T3XT info
Sinha, Abhishek wrote: > Please let us know > if there is any issue with PDFReader implementation in iText2.0.8. Free support on the mailing list is limited to the current version. The current version is 2.1.7, so your question isn't admissible. This being said: when the trailer of a PDF file isn

[iText-questions] Problem with PDFReader object

2009-11-30 Thread Sinha, Abhishek
Hi, We are using PDFReader = new PDFReader(byte[]) in our code and this is being used in a loop to concatenate various PDF files into one PDF. Every time this is being accessed concurrently by 5 or 6 threads causes the code to faile and we get exceptions like Trailer not found Rebuild failed

[iText-questions] Invitation to connect on LinkedIn

2009-11-30 Thread toshniwal RAmya
LinkedIn Post, I'd like to add you to my professional network on LinkedIn. - toshniwal Confirm that you know toshniwal RAmya https://www.linkedin.com/e/isd/896886587/aVa_KvPi/ Every day, millions of professionals like toshniwal RAmya use LinkedIn to connect with colleagues,

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread CGP
Thanks pal! I'll look into it! :) On Tue, Dec 1, 2009 at 12:36 AM, trumpetinc2 wrote: > > The parser can be used to get text from the PDF. See > com.lowagie.text.pdf.parser.PdfContentReaderTool > > - K > > > CGP-4 wrote: >> >> Cool! Thanks! >> For my task, I doubt that whether should I read the

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread trumpetinc2
The parser can be used to get text from the PDF. See com.lowagie.text.pdf.parser.PdfContentReaderTool - K CGP-4 wrote: > > Cool! Thanks! > For my task, I doubt that whether should I read the PDF Reference and > write my info-extraction program from scratch.. -___- > > On Mon, Nov 30,

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread 1T3XT info
Leonard Rosenthol wrote: > BUT we WILL answer questions for you as you attempt to actually implement > something based on our recommendations... That's exactly what this free mailing-list is about, but because Ganesh from Pune, India, ignored all your answers and mine, because he harassed me on m

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread CGP
Cool! Thanks! For my task, I doubt that whether should I read the PDF Reference and write my info-extraction program from scratch.. -___- On Mon, Nov 30, 2009 at 11:48 PM, Iliadis Yannis wrote: > For Rtf you need the iText-rtf-2.1.7.jar. > > As far as concerning text extraction from a PDF

Re: [iText-questions] Can iText be used to extract information from PDF files?

2009-11-30 Thread CGP
the information in metadata is s little and irrelevant for my task.. Is it possible to use iText to read out different inner component of a PDF file? On Mon, Nov 30, 2009 at 11:45 PM, Leonard Rosenthol wrote: > You can extract metadata from the PDF - so if the metadata is already present > i

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread 1T3XT info
java.geek wrote: > Hi Bruno/Leo, > It's urgent task that I need to complete in coming two days :( OK, that does it. You have been warned enough! I'll kick you from the mailing list. -- Let Crystal Reports handle the repor

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread Leonard Rosenthol
> It's urgent task that I need to complete in coming two days :( > Then I guess you better start reading what we've already written on the topic and try to understand it. We have already told you WHY the code you wrote won't work for most images in a PDF. We have alrea

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread java.geek
Hi Bruno/Leo, It's urgent task that I need to complete in coming two days :( I need to extract all format image from pdf document. I tried with Bruno suggestion ImageXRefViewer.java class. PdfReader chartReader = new PdfReader("MyPdf.pdf"); for (int i = 0; i < char

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread Iliadis Yannis
For Rtf you need the iText-rtf-2.1.7.jar . As far as concerning text extraction from a PDF, there are quite a lot of threads in the mailing list that state the complexity of this task. On the other hand if all the information about the

Re: [iText-questions] Can iText be used to extract information from PDF files?

2009-11-30 Thread Leonard Rosenthol
You can extract metadata from the PDF - so if the metadata is already present in the proper format(s), then iText will happily retrieve it for you. However, if not, and you would need to "scrape the text", then iText doesn't have what you need. Leonard -Original Message- From: CGP [mai

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread CGP
Thanks Matthew! I've downloaded iText 2.1.7 It is JAR'd.. but it is not complete... some classes like RtfWriter2 does not exist in the JAR.. but it is implemented in the source code.. That's why I want to recompile the source code... For me, the most important task is to extract information from P

Re: [iText-questions] Can iText be used to extract information from PDFfiles?

2009-11-30 Thread Wain, Matthew
If you downloaded iText 2.1.7 you will see that's it is already JAR'd. -Original Message- From: CGP [mailto:chenguang1...@gmail.com] Sent: 30 November 2009 15:21 To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Can iText be used to extract information from PDFfiles? H

[iText-questions] Can iText be used to extract information from PDF files?

2009-11-30 Thread CGP
Hello guys! I am interested in extract information from academic papers in PDF format. The information I wish to extract include: paper title, author, publication, year, etc. I've started reading the book iText in Action, it is a great book, but I have no idea whether the books content will help me

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread 1T3XT info
Cameron Laird wrote: > On Mon, Nov 30, 2009 at 7:03 AM, Leonard Rosenthol > wrote: > > PDF/A (ISO 19005-1), the standard for long term archiving of PDF > documents, FULLY SUPPORTS live annotations. There is no reason to > strip them out. > >... >

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Leonard Rosenthol
No confusion at all... I am trying to explain to you, so that you can pass it on to your manager, that his requirement isn't really a valid or necessary one. Instead of destroying the useful information in the PDF by "flattening" the annotations - you will get a MUCH more reliable (and useful)

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Mike Marchywka
> Date: Mon, 30 Nov 2009 08:12:53 -0600 > From: claird.visipr...@gmail.com > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] What's the opposite of "annotate or comment"? > > On Mon, Nov 30, 2009 at 7:03 AM, Leonard Rosenthol

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Cameron Laird
On Mon, Nov 30, 2009 at 7:03 AM, Leonard Rosenthol wrote: > PDF/A (ISO 19005-1), the standard for long term archiving of PDF > documents, FULLY SUPPORTS live annotations. There is no reason to strip > them out. > >... > I've confused you. The request is not--NOT--to strip out annotations.

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread Mike Marchywka
> Date: Mon, 30 Nov 2009 04:19:34 -0800 > From: j > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] extract the stamped image from pdf > > > Hi, > ImageXRefViewer will help us to extract images input stream from pdf > d

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Leonard Rosenthol
PDF/A (ISO 19005-1), the standard for long term archiving of PDF documents, FULLY SUPPORTS live annotations. There is no reason to strip them out. Leonard From: Cameron Laird [mailto:claird.visipr...@gmail.com] Sent: Monday, November 30, 2009 6:18 AM To: Post all your questions about iText here

Re: [iText-questions] Extract PDF embedded images using iText

2009-11-30 Thread Leonard Rosenthol
I gave you a VERY complete answer earlier on the list, but you ignored it :(. Perhaps if you re-read my answer and then asked some questions about it, that might help... -Original Message- From: java.geek [mailto:java.g...@rediffmail.com] Sent: Monday, November 30, 2009 5:35 AM To: itex

Re: [iText-questions] extract the stamped image from pdf

2009-11-30 Thread java.geek
Hi, ImageXRefViewer will help us to extract images input stream from pdf document. After getting the image input stream I am able to create the instance of only jpeg images are embedded in pdf document. Image image = Image.getInstance(imgBytes); For other formated images getting the error massag

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Cameron Laird
On Mon, Nov 30, 2009 at 4:58 AM, Fabrizio Arosio wrote: > If you need to copy a PDF with annotations to a new PDF without > annotations, you can use PdfWriter to create a new pdf with all pages > imported from the source pdf. PdfImportedPage with PdfWriter does not > preserve annotations. > Someth

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Cameron Laird
On Sun, Nov 29, 2009 at 5:01 PM, Leonard Rosenthol wrote: > Why would you want to do that? You use all the usefulness of the > comments – including information about who made them, when they made them, > and any associated notes that they added to go along with them… > >... > *In order* to "

Re: [iText-questions] What's the opposite of "annotate or comment"?

2009-11-30 Thread Fabrizio Arosio
If you need to copy a PDF with annotations to a new PDF without annotations, you can use PdfWriter to create a new pdf with all pages imported from the source pdf. PdfImportedPage with PdfWriter does not preserve annotations. Something similar to: Document document = new Document(PageSize.A4); P

Re: [iText-questions] Extract PDF embedded images using iText

2009-11-30 Thread java.geek
Could you please explain me more ? It will be good if you will provide some code snippet here of your suggestions below. Thanks in advance :) 1T3XT info wrote: > > Quoting "java.geek" : > >> >> The way I am extracting images input stream is wrong. > > That's correct. > >> byte[] im = PdfRea

Re: [iText-questions] Extract PDF embedded images using iText

2009-11-30 Thread info
Quoting "java.geek" : > > The way I am extracting images input stream is wrong. That's correct. > byte[] im = PdfReader.getStreamBytesRaw((PRStream)(stream)); > InputStream inputStream = new ByteArrayInputStream(im); With the above two lines, you get the bits and bytes from the image, but you'r