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

I am using a "PDF reader" to read the original content of PDF documents so that I can http-post them to the API. To confirm that the API implementation can generate a valid PDF from the original content, I wrote a small gist to check 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 where I am going wrong?

+3
ruby pdf gem stringio pdf-reader


source to share


No one has answered this question yet

See similar questions:

2
Fastest way to check if a PDF is corrupted (or just missing EOF) in Ruby?
0
Ruby - How to add EOF marker to PDF file or otherwise bypass PDF :: Reader :: MalformedPDFError: PDF does not contain EOF marker

or similar:

1475
Converting HTML + CSS to PDF with PHP?
1115
Recommended way to embed PDF in HTML?
1111
Correct MIME Media Type for PDF Files
830
Combine / convert multiple PDF files into one PDF file
354
Fast and Fast PDF Viewer for iPhone / iPad / iOs - Tips and Tricks?
2
PDF reader
0
Error creating PDF file with Wicked-PDF Ruby Gem
0
how to publish (http-post) pdf content using ruby?
0
PDF Reader Cucumber Ruby
0
Ruby - How to add EOF marker to PDF file or otherwise bypass PDF :: Reader :: MalformedPDFError: PDF does not contain EOF marker



All Articles
Loading...
X
Show
Funny
Dev
Pics