Commit Graph

40 Commits (c0e923516448889fd6e2899f577042e5d08336fe)

Author SHA1 Message Date
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 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
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
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 72481bc1b5 Replace table_areas with table_area 2018-10-23 04:00:17 +05:30
Vinayak Mehta 9362175a82
Update advanced.rst 2018-10-12 16:46:09 +05:30
Vinayak Mehta 8d38907832 Update conda installation instructions
Update conda installation instructions again
2018-10-11 13:00:41 +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 fe68328ef2
Move opencv-python to extra_requires (#134) 2018-10-08 01:10:48 +05:30
Vinayak Mehta cf7823f33c
[MRG] Add ghostscript fix for windows (#124)
* Add ghostscript fix for windows

* Add python2 fix

* Update install.rst
2018-10-05 02:06:37 +05:30
Vinayak Mehta 9ff61c70d3 Update README
Update docs
2018-10-03 13:12:32 +05:30
christinegarcia ea79cf2fb7 [MRG + 1] Copyedit all documentation for Camelot (#112)
* Copyedit index.rst

* Copyedit intro.rst

* Copyedit install.rst

* Copyedit how-it-works.rst

* Fix subheading capitalization on install.rst

* Copyedit quickstart.rst

* Copyedit advanced.rst

* Copyedit cli.rst

* Copyedit contributing.rst

* Make more heading & sub-heading capitalization fixes (for consistency)

* Fix README and docs
2018-10-02 23:37:49 +05:30
Vinayak Mehta 09ed772b6a Fix doc typo 2018-09-30 14:09:22 +05:30
Vinayak Mehta fc0542bd3c
Add Python 3 compatibility (#109)
* Add python3 compat

* Update .gitignore

* Update .gitignore again

* Remove debugging return

* Add unicode_literals import

* Bump version

* Add python3-tk note
2018-09-28 21:58:29 +05:30
Vinayak Mehta 82463e10b4 Fix link 2018-09-28 14:58:11 +05:30
Vinayak Mehta b9648f3b39 Update intro doc 2018-09-28 14:49:07 +05:30
Vinayak Mehta 3600025a22 Add doc fixes 2018-09-24 16:26:35 +05:30
Vinayak Mehta a70befe528 Update docs 2018-09-23 14:04:21 +05:30
Vinayak Mehta bf9d7386a6 Fix typos in documentation 2018-09-14 11:01:19 +05:30
Vinayak Mehta 8a0df8e3fc Fix PDF link 2018-09-14 08:18:53 +05:30
Vinayak Mehta 76528f5a27 Add contributor's guide 2018-09-14 08:04:30 +05:30
Vinayak Mehta 3d2c9b5435 Update CLI doc 2018-09-14 02:58:04 +05:30
Vinayak Mehta 5daf24ecb0 Update advanced guide 2018-09-14 02:46:11 +05:30
Vinayak Mehta 6ea34e540f Remove advanced guide references 2018-09-14 02:04:13 +05:30
Vinayak Mehta 7a7ac533db Update advanced guide 2018-09-14 01:57:29 +05:30
Vinayak Mehta e08aec9ed0 Update advanced guide 2018-09-14 01:29:27 +05:30
Vinayak Mehta a4fcdc7781 Add advanced guide illustrations 2018-09-13 21:12:25 +05:30
Vinayak Mehta 075f11c0df Add superscript to benchmark 2018-09-13 18:19:27 +05:30
Vinayak Mehta 8ee54dfc16 Add _static 2018-09-13 16:25:42 +05:30
Vinayak Mehta 9011491ce2 Update intro 2018-09-13 16:15:54 +05:30
Vinayak Mehta 3a980a46c1 Add quickstart 2018-09-13 15:50:30 +05:30
Vinayak Mehta 40404d1f4a Add install.rst 2018-09-13 00:56:45 +05:30
Vinayak Mehta 76e671124d Update intro.rst 2018-09-12 22:03:37 +05:30
Vinayak Mehta affd4a8f86 Update README and intro.rst 2018-09-12 21:51:39 +05:30
Vinayak Mehta dc533e73e2 Add agstat to benchmark 2018-09-12 02:05:34 +05:30
Vinayak Mehta 0dbe531101 Add $ to commands 2018-09-11 19:24:48 +05:30
Vinayak Mehta 066c5c6aca Add LICENSE and _templates 2018-09-11 18:47:29 +05:30