rbrito / pkg-pdfsizeopt Goto Github PK
View Code? Open in Web Editor NEWUnofficial packaging of pdfsizeopt
License: GNU General Public License v2.0
Unofficial packaging of pdfsizeopt
License: GNU General Public License v2.0
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.