Larry Schmidlin wrote:
When in doubt, go to the source.
When in doubt, go to the PDF Reference ;-)
I'm trying to create a service where I use iText to create PDFs, then
I'm trying to use lulu.com as my printer. When I upload pdfs to
lulu.com, they print fine. But when I try to download their 'Press
ready PDF', the PDF is corrupted.
I have seen the question on the list.
As Leonard already told you, the ID looks really weird.
When I do a diff between the pdf I gave them and the pdf they
returned, the only difference is:
First file: <</ID
[<3bcc5600b04a5472ec6fa4cd4508079d><3bcc5600b04a5472ec6fa4cd4508079d>]/Root
123 0 R/Size 125/Info 124 0 R>>
Second file: <</ID[<247961><f79f4614005cd49891fff8b783fab631>] >>
Observation: Any other PDF I've seen on my PC does not have the extra
Root/Size/Info data.
If that is really true, then none of your PDF files are valid.
You are talking about the trailer dictionary (section 3.4.4 in the PDF
Reference).
As you can see in Table 3.13, the Size and the Root key are required in
this dictionary.
The info dictionary is optional. So is the ID, but it is strongly
recommended to have one.
I'm not sure if this is causing it, but am wondering if there is a way
to have it not write out this data.?.
The Root key refers to the Catalog dictionary. The catalog dictionary
has information
that is absolutely necessary to be able to open the PDF. If the catalog
dictionary is
missing, the viewer doesn't know where to find the pages, the outlines,...
Also, lulu.com says they use iText to convert input docs to pdfs,
Could be, I don't know about all the projects that use iText.
so I don't know if there's something unusual they might be doing when
they read the original pdf that could be causing this.?.
You should ask lulu.com.
Thanks for any help. Did you get the book finished?
I have been ill for a few days, so I wasn't able to work on the book.
I have all the content (about 550 pages).
I now have to review everything and cut the less important stuff,
so that I end up with a book of about 470 pages.
br,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions