I don't know if you're aware of it, but when we try to use your (excellent, btw) library to open a pdf created by Acrobat Distiller v9.0.0, the exe crashes :
Unhandled Exception: System.InvalidCastException: Unable to cast object of type
'System.Int32' to type 'System.String'.
at it.stefanochizzolini.clown.files.File..ctor(IInputStream stream)
at it.stefanochizzolini.clown.files.File..ctor(String path)
at pdfParser.Program.Main(String args) in E:\Projects\pdfParser\pdfParser\P
I guess Adobe chaged the type of an attribute in the header, causing the ReadTrailer to crash.
Do you know about this issue (which is not really a bug...) ? Do you plan to add support for pdf generated with this version of distiller ?
Thanks in advance
many thanks for your report.
Could you please send me (if it doesn't hurt your privacy) one of such PDF files so that I'm able to reproduce it?
See my personal info page  to get my email address.
your issue was due to the lack of support to cross-reference streams [PDF:1.6:3.4.7], as PDF Clown hasn't implemented them yet (it currently supports only the more common cross-reference table syntax).
Cross-reference streams will be made available in one of the next releases (2009), along with object streams and file linearization.
Thank you for your answer Stefano, I'll be waiting for the next release :)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.