1b47bed306
Sorry, changes should have been more atomic. *In pdf2txt.py:* * Re-wrote main function to use argparse instead of optparse. * Manually tested in Py2/Py3 to get partial consistency. * Errors abound including Tags mode, but most modes weren't working at all in Py3 anyway. * Py2 mode *probably* unchanged, cannot find any bugs yet... * Kept old main function for posterity, for now. *In utils:* * Added a few compatibility functions (some string hax required chardet, new dependency): - make_compat_bytes(in_str)-> (py3->bytes | py2->str) - make_compat_str(in_str)-> (str) - compatible_encode_method(bytesorstring, encoding, erraction)-> (str) *In pdfdevice:* * To handle different output filetypes in Py3, injected lots of calls to new utils methods, as well as some six.PYX checks and logic. These changes are largely responsible for enhanced Py2/Py3 consistency. *In converter:* * To handle output filetypes in Py2, injected a few checks and fixes particularly around the py2 `str.encode` method and its *assumed* usual use-analogies in Py3. |
||
---|---|---|
.. | ||
Makefile | ||
__init__.py | ||
conv_afm.py | ||
conv_cmap.py | ||
conv_glyphlist.py | ||
dumppdf.py | ||
latin2ascii.py | ||
pdf2html.cgi | ||
pdf2txt.py | ||
prof.py | ||
runapp.py |