pdfminer.six/tools
Cathal Garvey 1b47bed306 Many changes to make pdf2txt.py work better in Py3, some in that script, others in module!
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.
2015-05-17 21:08:57 +01:00
..
Makefile webapp fixed 2010-12-25 08:41:35 +00:00
__init__.py tools must be a module to enable scripts tests 2014-09-04 09:47:33 +02:00
conv_afm.py Use print as a function. 2014-06-15 12:14:33 +09:00
conv_cmap.py conv_cmap py3 compat 2014-09-12 00:29:30 +02:00
conv_glyphlist.py Use print as a function. 2014-06-15 12:14:33 +09:00
dumppdf.py guess argv encoding in py2 using sys.stdin.encoding 2014-09-16 23:17:26 +02:00
latin2ascii.py Use print as a function. 2014-06-15 12:14:33 +09:00
pdf2html.cgi Fixed for newer version: pdf2html.cgi 2014-04-02 18:54:50 +09:00
pdf2txt.py Many changes to make pdf2txt.py work better in Py3, some in that script, others in module! 2015-05-17 21:08:57 +01:00
prof.py Use print as a function. 2014-06-15 12:14:33 +09:00
runapp.py Use print as a function. 2014-06-15 12:14:33 +09:00