Vinayak Mehta
5e71f0b0e6
Fix #192
2018-12-13 12:50:30 +05:30
Vinayak Mehta
33cea45346
Fix #105
2018-12-13 00:45:22 +05:30
Vinayak Mehta
591cfd5291
Change kwarg name
2018-12-12 10:15:04 +05:30
Vinayak Mehta
e50f9c8847
Change suppress_warnings to verbose
2018-12-12 09:58:34 +05:30
Vinayak Mehta
87a2f4fdc9
Add textedge plot type
2018-12-12 07:36:07 +05:30
Vinayak Mehta
8d8ca6e435
Fix variable name
2018-12-07 18:45:23 +05:30
Vinayak Mehta
cb3e76726b
Bump version
2018-12-05 20:10:25 +05:30
Vinayak Mehta
23ec6b55f7
Add docstrings and update docs
2018-11-23 21:04:10 +05:30
Vinayak Mehta
1f71513004
Fix no table found warning and add tests for two tables
2018-11-23 19:28:55 +05:30
Vinayak Mehta
0251422e33
Add fix to include table headers
2018-11-23 03:27:23 +05:30
Vinayak Mehta
a1e1fd781d
Fix comments
2018-11-23 02:51:22 +05:30
Vinayak Mehta
9b67b271e4
Add atol and fix variable declaration
2018-11-23 02:44:55 +05:30
Vinayak Mehta
9b5782f9ba
Fix indent
2018-11-22 20:05:30 +05:30
Vinayak Mehta
bcde67fe17
Add constant to include table headers
2018-11-22 19:56:16 +05:30
Vinayak Mehta
529914eb6f
Update comment
2018-11-22 19:50:59 +05:30
Vinayak Mehta
4e2aee18c3
Add get_table_areas textedges method
2018-11-22 19:48:51 +05:30
Vinayak Mehta
a587ea3782
Add get_relevant textedges method
2018-11-22 18:24:31 +05:30
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
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
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
f73062c1c4
Bump version
...
Update HISTORY.md
2018-10-28 22:37:33 +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
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
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
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
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
45e7f7570e
Bump version
2018-10-08 03:54:21 +05:30
Vinayak Mehta
fe68328ef2
Move opencv-python to extra_requires ( #134 )
2018-10-08 01:10:48 +05:30
Vinayak Mehta
2527512f63
Replace gs subprocess call (Wand experiment)
...
Replace gs subprocess call
Update requirements.txt
2018-10-07 13:39:44 +05:30
Vinayak Mehta
9b2fc53e58
Bump version
2018-10-05 20:22:46 +05:30
Vaibhav Mule
c53ea795fd
[MRG + 1] Add tests for repr ( #128 )
...
* add tests for repr
* remove repr for Cell
* add round for repr of Cell
* change decimal places to 2
* change tests for 2 decimal places
2018-10-05 20:19:24 +05:30
Oshawk
90aaba6eec
[MRG + 1] Make pep8 ( #125 )
...
* Make setup.py pep8
Add new line at end of file, fix bare except, remove unused import.
* Make tests/*.py pep8
Add some newlines at and of files and a visual indent.
* Make docs/*.py pep8
Fix block comments and add new lines at end of files.
* Make camelot/*.py pep8
Fixed unused import, a few weirdly ordered imports, a docstring typo and many new lines at the end of lines.
* Fix imports
Fix import order and remove a couple more unused imports.
* Fix indents
Fix indentation (no opening delimiter alignment).
* Add newlines
2018-10-05 16:55:43 +05:30
Vinayak Mehta
6e8079df84
[MRG] Add tests for output formats and parser kwargs ( #126 )
...
* Remove unused image processing code
* Add opencv back-compat comment
* Add tests for parser special cases
* Fix lattice table area test
* Add tests for output format
* Add openpyxl dep
2018-10-05 16:15:30 +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
c5bde5e2ad
[MRG] Add error/warning tests ( #113 )
...
* Add unknown flavor test
* Add input kwargs test
* Remove unused utils
* Add unsupported format test
* Add stream unequal tables-columns length test
* Add python3 compat
* Add no tables found test
* Convert util info log to warning
2018-10-02 19:28:42 +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
dfb0d4fb4c
Fix TableList repr
2018-09-27 04:42:23 +05:30
Vinayak Mehta
759e635a3c
Bump version
2018-09-25 12:32:01 +05:30
Vinayak Mehta
7731497a5b
Fix relative links
...
Fix broken links
2018-09-24 22:15:43 +05:30
Vinayak Mehta
be2733ebd2
Add utf8 header
2018-09-24 16:27:26 +05:30
Vinayak Mehta
93b4dabcc2
Update CLI
2018-09-24 01:00:30 +05:30
Vinayak Mehta
a70befe528
Update docs
2018-09-23 14:04:21 +05:30
Vinayak Mehta
959a252aa3
Fix CLI
2018-09-23 12:45:01 +05:30
Vinayak Mehta
7aaa7b2460
Deprecate debug and add plot docstrings
2018-09-23 11:56:40 +05:30
Vinayak Mehta
71d91fbebd
Fix plot_text
2018-09-23 11:45:20 +05:30
Vinayak Mehta
3170a9689f
Add flavors
2018-09-23 10:53:32 +05:30
Vinayak Mehta
021aca8f97
Update __version__.py
2018-09-15 03:34:04 +05:30
Vinayak Mehta
a4fcdc7781
Add advanced guide illustrations
2018-09-13 21:12:25 +05:30
Vinayak Mehta
3a980a46c1
Add quickstart
2018-09-13 15:50:30 +05:30
Vinayak Mehta
0ba3469d21
Add Stream benchmarks
2018-09-12 07:21:35 +05:30
Vinayak Mehta
b276909a4f
Add Lattice benchmarks
2018-09-12 05:58:22 +05:30
Vinayak Mehta
094be1a1dd
Add better table detection image
2018-09-12 02:29:25 +05:30
Vinayak Mehta
dc533e73e2
Add agstat to benchmark
2018-09-12 02:05:34 +05:30
Vinayak Mehta
17ea5f335e
Fix docstrings and interlinks
2018-09-11 08:31:37 +05:30
Vinayak Mehta
656808b8e2
Fix setup.py
2018-09-11 08:31:37 +05:30
Vinayak Mehta
118aac47bc
Merge pull request #99 from socialcopsdev/cli
...
Add CLI
2018-09-10 16:06:14 +05:30
Vinayak Mehta
544e0c9c3f
Update CLI help and README
2018-09-10 16:05:51 +05:30
Vinayak Mehta
7bb1aee9b6
Add CLI
2018-09-10 15:16:41 +05:30
Vinayak Mehta
1b013178a8
Add docstrings to table to_format methods
2018-09-09 18:41:40 +05:30
Vinayak Mehta
d3beaafc99
Add temporary directory context manager
2018-09-09 18:10:55 +05:30
Vinayak Mehta
9a6ed555c8
Fix get_rotation
2018-09-09 10:04:54 +05:30
Vinayak Mehta
9878de4dfc
Add docstrings and update docs
2018-09-09 10:00:22 +05:30
Vinayak Mehta
c91a9bb36d
Add future import
2018-09-09 05:36:07 +05:30
Vinayak Mehta
7c3e531b07
Port tests
2018-09-09 05:29:24 +05:30
Vinayak Mehta
04383920b4
Rename parser keyword arguments
2018-09-08 05:38:43 +05:30
Vinayak Mehta
e615580e55
Fix plot_geometry
2018-09-07 06:25:13 +05:30
Vinayak Mehta
b3f840bba9
Change utils function names
2018-09-07 06:04:45 +05:30
Vinayak Mehta
20acda2259
Fix current logging
2018-09-07 05:53:19 +05:30
Vinayak Mehta
09ac8f4640
Add property n to TableList
2018-09-07 05:17:09 +05:30
Vinayak Mehta
0c329634e7
Add export to TableList and Table
2018-09-07 05:13:34 +05:30
Vinayak Mehta
557189da24
Refactor core
2018-09-06 07:42:41 +05:30
Vinayak Mehta
ffeb853c55
Rename plot.py to plotting.py
2018-09-06 06:21:54 +05:30
Vinayak Mehta
42d7a4ac02
Add import os
2018-09-06 06:15:13 +05:30
Vinayak Mehta
b91df8a1b8
Create parsers module
2018-09-06 06:13:58 +05:30
Vinayak Mehta
d0005101a7
Add BaseParser docstring stub
2018-09-06 05:55:05 +05:30
Vinayak Mehta
96af09d9cd
Add BaseParser and refactor extract_tables
2018-09-06 05:28:34 +05:30
Vinayak Mehta
a4d3165e94
Add docstring stubs
2018-09-05 19:35:46 +05:30
Vinayak Mehta
bf63432494
Remove docstrings
2018-09-05 19:04:40 +05:30
Vinayak Mehta
08cbababca
Add properties to GeometryList
2018-09-05 19:00:30 +05:30
Vinayak Mehta
73e52939f5
Add parsing_report property
2018-09-05 18:50:10 +05:30
Vinayak Mehta
9124e3374c
Add properties to Table
2018-09-05 18:20:46 +05:30
Vinayak Mehta
b9d77cb983
Decouple debug geometry from tables
2018-09-05 15:18:31 +05:30
Vinayak Mehta
941994f0bf
Make present code work with new API
2018-09-04 23:34:49 +05:30
Vinayak Mehta
e3aabb720f
Add stream and lattice to parsers
2018-09-04 21:28:37 +05:30
Vinayak Mehta
5d29f0c21c
Move Pdf class to core as FileHandler
2018-09-04 07:02:30 +05:30
Vinayak Mehta
c689735da2
Move cell and table to core
2018-09-04 03:49:43 +05:30
Vinayak Mehta
72c42c74db
Remove ocr
2018-09-01 16:23:54 +05:30
Vinayak Mehta
861ed0b64e
Fix lattice fill
2017-05-05 15:02:29 +05:30
Vinayak Mehta
e252e476b9
Add better y-cuts detection
2017-04-25 18:44:53 +05:30
Vinayak Mehta
76e1d32417
Add minor fix
...
Minor fix
2017-04-24 16:53:54 +05:30
Vinayak Mehta
bef33c75b1
Fix ValueError
2017-04-21 20:15:35 +05:30
Vinayak Mehta
fdb4b0d494
Update version
2017-04-21 15:41:32 +05:30
Vinayak Mehta
5c5bd6199c
Fix warnings and exceptions
2017-04-21 14:20:33 +05:30
Vinayak Mehta
18e1a799a1
Remove remove_empty
2017-04-21 13:22:37 +05:30