Commit Graph

499 Commits (6add19ae271124be7bf4dbb4603873f7f2b333af)

Author SHA1 Message Date
Vinayak Mehta 378408a271 Remove debug statements 2018-11-22 05:42:10 +05:30
Vinayak Mehta 123227aa8c Add TextEdge and TextEdges helper classes 2018-11-22 05:31:02 +05:30
Vinayak Mehta cd3aa38f7e
Change table to grid (#196) 2018-11-06 19:18:45 +05:30
Vinayak Mehta b310f16dba Bump version and update HISTORY.md 2018-11-04 01:37:27 +05:30
Vinayak Mehta defaead679
Add table bbox attribute (#193) 2018-11-04 01:33:41 +05:30
Palash Chatterjee a60ce38d4d [MRG + 1] Fix the order of coordinates in docs (#191) 2018-11-03 01:06:44 +05:30
Vinayak Mehta 36006cadc5 Bump version and update HISTORY.md 2018-11-02 23:25:07 +05:30
Vinayak Mehta db3f8c6897
[MRG] Make matplotlib optional (#190)
* Rename png files

* Convert plot to PlotMethods class and update docs

* Update test

* Update setup.py and docs

* Refactor PlotMethods

* Make matplotlib optional

* Raise ImportError in cli
2018-11-02 23:16:03 +05:30
Suyash Behera c0e9235164 [MRG + 1] Create a new figure and test each plot type #127 (#179)
* [MRG] Create a new figure and test each plot type #127

 - move `plot()` to `plotting.py` as `plot_pdf()`
 - modify plotting functions to return matplotlib figures
 - add `test_plotting.py` and baseline images
 - import `plot_pdf()` in `__init__`
 - update `cli.py` to use `plot_pdf()`
 - update advanced usage docs to reflect changes

* Change matplotlib backend for image comparison tests

* Update plotting and tests
 - use matplotlib rectangle instead of `cv2.rectangle` in
`plot_contour()`
 - set matplotlib backend in `tests/__init__`
 - update contour plot baseline image
 - update `test_plotting` with more checks

* Update plot tests and config
 - remove unnecessary asserts
 - update setup.cfg and makefile with `--mpl`

* Add  to

* Add tolerance

* remove text from baseline plots
update plot tests with `remove_text`

* Change method name, update docs and add pep8

* Update docs
2018-11-02 20:57:02 +05:30
Vinayak Mehta 79db6e3d1b Add gitter badge 2018-10-31 17:33:40 +05:30
Vinayak Mehta 29f22ad1a6 Update conda definition 2018-10-30 23:48:56 +05:30
Vinayak Mehta e8af4c2c1c Update conda install instructions 2018-10-30 23:36:31 +05:30
Vinayak Mehta 220d6ad29c Fix cli doc 2018-10-29 01:03:36 +05:30
Vinayak Mehta f73062c1c4 Bump version
Update HISTORY.md
2018-10-28 22:37:33 +05:30
Vinayak Mehta 9cffe0adbe Update HISTORY.md
Update HISTORY.md

Update HISTORY.md again
2018-10-28 22:12:47 +05:30
rbares 429640feea [MRG + 1] Add basic support for encrypted PDF files (#180)
* [MRG] Add basic support for encrypted PDF files

Update API and CLI to accept ASCII passwords to decrypt PDFs
encrypted by algorithm code 1 or 2 (limited by support from PyPDF2).
Update documentation and unit tests accordingly.

Example document health_protected.pdf generated as follows:
qpdf --encrypt userpass ownerpass 128 -- health.pdf health_protected.pdf

Issue #162

* Support encrypted PDF files in python3

Issue #162

* Address review comments

Explicitly check passwords for None rather than falsey.
Correct read_pdf documentation for Owner/User password.

Issue #162

* Correct API documentation changes for consistency

Issue #162

* Move error tests from test_common to test_errors

Issue #162

* Add qpdf example

* Remove password is not None check

* Fix merge conflict

* Fix pages example
2018-10-28 22:01:10 +05:30
gison93 4366313484 Clarify example for argument pages in read_pdf (#177) 2018-10-28 14:41:04 +05:30
Vinayak Mehta 2830ed9418 Update HISTORY.md 2018-10-25 00:07:16 +05:30
Vinicius Mesel 39cf65ffef [MRG + 1] Convert filename to lowercase to check for extension (#169)
* Creates a new variable that stores a lowercase version of the filename

* Remove variable
2018-10-24 23:53:54 +05:30
Parth P Panchal 32df09ad1c Renames the keyword `table_area` to `table_areas` (#171)
`table_areas` sounds more apt since it is a list and there can be
multiple table areas on a page.

Closes #165
2018-10-24 23:06:53 +05:30
Vinayak Mehta 8205e0e9ab Update HISTORY.md 2018-10-23 21:16:18 +05:30
Vinayak Mehta a78ef7f841
[MRG] Use find_executable for gs and raise error if not found (#166)
* Use find_executable for gs and raise error if not found

* Remove unused variable

* Add test

* Use pytest monkeypatch
2018-10-23 21:12:43 +05:30
Vinayak Mehta f734af3a0b Update HISTORY.md 2018-10-23 15:04:54 +05:30
Parth P Panchal 61963aabb6 [MRG + 1] Add __main__ (#159)
* Renames camelot.cli to camelot.__main__

Closes #154

* Keep __main__ and cli separate

* Monkey patch click HelpFormatter
2018-10-23 15:01:20 +05:30
Jonathan Lloyd 60c1270745 Fix typo in test name (#160)
test_no_tables_found_warnings_supressed -> test_no_tables_found_warnings_suppressed
2018-10-23 04:54:57 +05:30
Vinayak Mehta 72481bc1b5 Replace table_areas with table_area 2018-10-23 04:00:17 +05:30
Vinayak Mehta c5c85a2dc8 Fix index.rst 2018-10-22 21:58:51 +05:30
Vinayak Mehta 9c6ec49652 Update index.rst 2018-10-22 21:53:38 +05:30
Vinayak Mehta 2a60d1fd54 Update README 2018-10-22 21:52:49 +05:30
Vinayak Mehta 2022a8abc9 Update HISTORY.md 2018-10-19 17:00:20 +05:30
Jonathan Lloyd 3def4a5aea [MRG + 1] Add suppress_warnings flag (#155)
* Add suppress_warnings flag

* Add --quiet flag to cli (to suppress warnings)

* Remove TODO and update comment
2018-10-19 16:55:00 +05:30
Vinayak Mehta 1d064adc3e Update .editorconfig and HISTORY.md 2018-10-19 16:23:15 +05:30
KOLANICH 7baea06bca Add .editorconfig (#151) 2018-10-19 16:19:06 +05:30
Vinayak Mehta 5645ef5b62
Update setup.py 2018-10-15 04:31:54 +05:30
Krishna Sumanth 7a3b76cb76
Update conf.py 2018-10-12 21:39:38 +05:30
Krishna Sumanth 970f906435
Update conf.py 2018-10-12 21:37:53 +05:30
Krishna Sumanth 297888b18c
Update conf.py 2018-10-12 20:22:02 +05:30
Vinayak Mehta 9362175a82
Update advanced.rst 2018-10-12 16:46:09 +05:30
Vinayak Mehta 9e6474e5a6 Update HISTORY.md 2018-10-11 23:51:05 +05:30
Vaibhav Mule 1ba0cfc7bc [MRG + 1] Run codecov only once (#132)
* Run codecov only once

* Update .travis.yml

* Update .travis.yml

* Add os based install to Makefile

* Add requests like .travis.yml and Makefile

* Add 'sudo: required' to .travis.yml

* Add before_install

* Make separate command
2018-10-11 23:36:36 +05:30
Vinayak Mehta 8d38907832 Update conda installation instructions
Update conda installation instructions again
2018-10-11 13:00:41 +05:30
Vinayak Mehta ac2d40aa44 Update HISTORY.md
Update HISTORY.md again
2018-10-10 00:37:25 +05:30
Vinayak Mehta c33bf9c168 Add docs badge 2018-10-09 21:33:51 +05:30
Vinayak Mehta d628e9b5df Update requirements.txt 2018-10-09 21:23:10 +05:30
Vinayak Mehta 750f955f9c Add requirements.txt for rtd 2018-10-09 21:21:50 +05:30
Vinayak Mehta 898646b73b Add conda installation instructions 2018-10-09 20:22:07 +05:30
Vinayak Mehta 45e7f7570e Bump version 2018-10-08 03:54:21 +05:30
Vinayak Mehta 296be21d9d Update requirement versions 2018-10-08 01:44:20 +05:30
Vinayak Mehta 1a358f603a Update MANIFEST.in
Update HISTORY.md
2018-10-08 01:18:19 +05:30
Vinayak Mehta fe68328ef2
Move opencv-python to extra_requires (#134) 2018-10-08 01:10:48 +05:30