GithubHelp home page GithubHelp logo

pkg-pdfsizeopt's People

Contributors

rbrito avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

pkg-pdfsizeopt's Issues

Error when running pdfsizeopt small1.pdf on Linux

If I run the command ./pdfsizeopt ./small1.pdf, I get the error :

info: This is pdfsizeopt.py rUNKNOWN size=316511.
info: using Java for Multivalent: /usr/bin/java
info: loading PDF from: ./small2.pdf
info: loaded PDF of 290 bytes
info: found 4 obj offsets and 0 obj streams in xref stream
info: separated to 3 objs + xref + trailer
info: found 0 Type1 fonts loaded
info: found 0 Type1C fonts loaded
info: saving PDF with 3 objs with Multivalent to: ./small2.psom.pdf
info: trying 3 jobs and using the smallest
info: writing Multivalent input PDF: pso.conv.mi.tmp.pdf
info: generated object stream of 112 bytes in 3 objects (35%)
Traceback (most recent call last):
File "./pdfsizeopt.py", line 7846, in
main(sys.argv)
File "./pdfsizeopt.py", line 7839, in main
is_flate_ok=not do_decompress_flate)
File "./pdfsizeopt.py", line 7538, in Save
multivalent_java=multivalent_java)
File "./pdfsizeopt.py", line 7398, in _RunMultivalent
may_obj_heads_contain_comments=may_obj_heads_contain_comments)
File "./pdfsizeopt.py", line 4350, in AppendSerializedPdf
is_flate_ok=is_flate_ok)
File "./pdfsizeopt.py", line 3999, in GenerateXrefStream
max_obj_num = obj_numbers[-1]
IndexError: list index out of range

Python3 support

With Python2 on the way out in the next several years, what does the upgrade path look like for Python3?
I am somewhat knowledgeable in Python, but it would be nice to know what I can expect before I start trying to port pdfsizeopt to Python3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.