PDF does not contain EOF marker (PDF::Reader::MalformedPDFError) with pdf-reader

拥有回忆 提交于 2020-01-01 10:50:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!