问题
I am using ‘pdf-reader’ gem to read raw contents of pdf documents so I can post (http-post) them to an API. To confirm the API implementation can create a valid pdf document from the raw content, I wrote a small gist to validate my code to read the pdf content.
For some reason, I always keep getting ‘PDF does not contain EOF marker (PDF::Reader::MalformedPDFError)’.
Can anyone point me out where I am going wrong?
来源:https://stackoverflow.com/questions/27612426/pdf-does-not-contain-eof-marker-pdfreadermalformedpdferror-with-pdf-reader