-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown font F1 (PDF::Reader::MalformedPDFError) bugfix #17
Conversation
I'm closing this old issue for now, please re-open it if it's still an applicable to the latest rc release |
Just faced with this issue in latest 1.0.0 version, so i believe this is still worth to look at. |
@Pumbus can you provide a simple code snippet and sample PDF that trigger this in 1.0? |
I will try, but it contains client's personal info which could be an issue. In the main time is there anything apart from pdf example i can do to help with fixing it? Maybe some debug info i can provide or something? |
Unfortunately it's diabolically difficult to debug these kind of issues without the target PDF. Can you start by posting just some sample code that triggers the exception? |
Roger, will do my best to get perm for post file here. As for code it's pretty simple: pdf = File.new(self.file).read |
Right. That's the old deprecated API that is I'm not keen on supporting. Can you try this code instead?
|
Heh, that's done the trick! Thank you! Im able to parse pdf files were raising MalformedPDFError now, however some others which were working fine with pdf-reader 0.10.0 got broken now: reader = PDF::Reader.new('file.pdf') ruby-1.9.2-p180 :020 > Trying to figure out why now, but please help if you can. Also maybe it could be useful to mark old deprecated API as deprecated. I didn't know it's deprecated until you've told me, so could be confused for others as well. |
The prepare_inline_token bug is fixed in master. Can you add pdf-reader to your Gemfile as a :git entry? I'm planning to release 1.1 before too long, but using a :git entry will let you continue working in the interim. The deprecation is only soft for now. The old API should still work as it used to, it's just not getting any active development and all documentation/examples use the new API. In a future release I'll start printing a deprecation warning. |
Hey James! Just got back to that issue. Sorry it didn't happen earlier :) reader = PDF::Reader.new('file.pdf') Is that supposed to be fixed in 1.1.1 or maybe something changed there? |
I'll need a copy of a file that is triggering this exception. Can you please open a new ticket for it and email me a sample file? |
Hi James, Ryan Stawarz should be contacting you any minute now about this issue, Thank you, On 05/20/2012 06:19 AM, James Healy wrote:
|
Added issue #55 |
the alpha branch bugfix didn't work for me. I have fixed it, please check it out