Skip to content
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

Created ruby script from PDF, script produces error #24

Open
GoogleCodeExporter opened this issue Sep 18, 2015 · 4 comments
Open

Created ruby script from PDF, script produces error #24

GoogleCodeExporter opened this issue Sep 18, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Here is the full "test script" using the latest fetch:
--------------------

hg clone https://code.google.com/p/origami-pdf/
cd origami-pdf/
rake
cd ..
curl 'http://www.ada.gov/hospcombrprt.pdf' -o hospcombrprt.pdf
origami-pdf/bin/pdf2ruby -x hospcombrprt.pdf
mv hospcombrprt.pdf hospcombrprtORIG.pdf
cd hospcombrprt
ruby hospcombrprt.rb # THIS STEP PRODUCES ERRORS
bc hospcombrprt.pdf ../hospcombrprtORIG.pdf || echo FAILED

-----------------------------

EXPECTED: 
Two files are identical

ACTUAL:
/Users/williamentriken/Developer/origami-pdf/lib/origami/page.rb:75:in `pages': 
Invalid page tree (Origami::InvalidPDFError)
    from /Users/williamentriken/Developer/origami-pdf/lib/origami/pdf.rb:689:in `compile'
    from /Users/williamentriken/Developer/origami-pdf/lib/origami/pdf.rb:233:in `save'
    from hospcombrprt.rb:189:in `<main>'


Original issue reported on code.google.com by fulldec...@gmail.com on 28 Jun 2014 at 3:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant