Re: [iText-questions] Problem processing some PDFs with attachments

2007-08-31 Thread Leonard Rosenthol
I would, however, write out some warning message (if possible) so that people stop making BOGUS PDFs... Leonard On Aug 31, 2007, at 7:25 AM, Bruno Lowagie (iText) wrote: > Bruno Lowagie (iText) wrote: >> I'm not sure what to do with this. Should iText be more >> tolerant for faulty PDFs? In so

Re: [iText-questions] Problem processing some PDFs with attachments

2007-08-31 Thread Bruno Lowagie (iText)
Bruno Lowagie (iText) wrote: > I'm not sure what to do with this. Should iText be more > tolerant for faulty PDFs? In some cases, it already is; > in this case I don't know... OK, I've done some further investigation, and it was easy to change iText to accept values that aren't names for the /TYPE

Re: [iText-questions] Problem processing some PDFs with attachments

2007-08-31 Thread Bruno Lowagie (iText)
This mail is a follow-up concerning a problem mentioned earlier on the mailing list. Will Simpson wrote: > I have 'diffed' the two PDFs but have been unable to locate a /TYPE > entry problem. (Actually, I am not hugely knowledgable about PDFs - I am > hoping to learn a little more). If you open

Re: [iText-questions] Problem processing some PDFs with attachments

2007-08-30 Thread Bruno Lowagie (iText)
Will Simpson wrote: > Are there any know issues with attachments, or has anyone had similar > experiences? The only thing I can think of, is that you have something like <> instead of <> in your PDF (I've omitted plenty of other stuff in the dictionary because I don't know what your PDF look like

[iText-questions] Problem processing some PDFs with attachments

2007-08-30 Thread Will Simpson
Hi, I am having a problem with some PDFs containing attachments (generally a JPEG image of the first page of the PDF). This is my code. ... PdfReader reader = new PdfReader(pdfInputStream); int endPage = reader.getNumberOfPages(); for (int currentPage = 1; currentPage <= endPage; currentPage++