Commit Graph

61 Commits

Author SHA1 Message Date
Roberto Rosario
c46c52ebdf Added converter backend agnostic image file format descriptions 2011-08-12 04:06:48 -04:00
Roberto Rosario
0a2591d58f Removed unused import, PEP8 cleanups 2011-08-12 02:13:23 -04:00
Roberto Rosario
beea100cd9 Updated the get_page_count logic to let the converter raise UnknownFileFormat
and let the document model handle the exception, defaulting to one page
count and saving a comment on the document description
2011-08-05 03:48:51 -04:00
Roberto Rosario
cd0b1577a7 Renamed the exception UnknownFormat to UnkownFileFormat and updated all
backends get_page_count method to raise it, having the api's get_page_count
function decide how to handle the exception
2011-08-05 03:24:01 -04:00
Roberto Rosario
01de394b88 Properly import COMMON_TEMPORARY_DIRECTORY, removed more QUALITY related code 2011-07-21 03:45:14 -04:00
Roberto Rosario
8a017e2af0 Added PDF file support to the python converter backend via ghostscript 2011-07-19 20:55:08 -04:00
Roberto Rosario
7ea1b87ee0 Made size an optional argument of the convert function 2011-07-19 04:21:12 -04:00
Roberto Rosario
5bfd607b31 Removed pdftotext from the requirements, move unpaper calling to the OCR app 2011-07-18 04:06:19 -04:00
Roberto Rosario
5829bbde4d Added per OCR queue transformation models and CRUD views to replace the CONVERTER_OCR_OPTIONS with the new refactored converter transformations systems 2011-07-17 01:32:46 -04:00
Roberto Rosario
29adcce2a3 flake8 cleanups 2011-07-16 01:15:58 -04:00
Roberto Rosario
0fe032f7c9 Finished fixing new document transformations 2011-07-16 01:09:36 -04:00
Roberto Rosario
389253385c Source, document page and thumbnails working, new document transformations and OCR yet to convert 2011-07-15 20:25:49 -04:00
Roberto Rosario
743ae0fce0 Initial commit of the converter image transformation refactor 2011-07-15 06:16:14 -04:00
Roberto Rosario
415f0c8daa Refactored the converter backend system 2011-07-13 22:53:33 -04:00
Roberto Rosario
9250a6bbdc Added view to list supported file formats and reported by the converter backend 2011-06-18 00:51:32 -04:00
Roberto Rosario
07e9b12e78 flake8 cleanups, ununsed imports and variables cleanup, changed register_diagnostics to use reverse_lazy instead of reverse 2011-05-06 10:39:54 -04:00
Roberto Rosario
9c17a627ec Initial commit of the new_printing branch 2011-05-04 16:59:14 -04:00
Roberto Rosario
bfa70f114b Converted app cleanups, document pre-cache, magic number removal 2011-04-26 15:02:27 -04:00
Roberto Rosario
425e4a0086 Fix document previews 2011-04-25 11:33:16 -04:00
Roberto Rosario
f88b011365 Quick update to fix staging file previews 2011-04-25 10:56:04 -04:00
Roberto Rosario
06900f7cd9 Fixed typo from previous PEP8 cleanup 2011-04-24 04:34:51 -04:00
Roberto Rosario
700bd7071c Removed redundant tranformation calculation 2011-04-24 04:08:02 -04:00
Roberto Rosario
b2d0f7c310 Added doc extension to office document format list 2011-04-24 03:59:36 -04:00
Roberto Rosario
5b5a90100c flake8 cleanups 2011-04-23 23:03:56 -04:00
Roberto Rosario
46ec25b139 Added initial support for converting office documents (only ods and docx tested) 2011-04-23 22:20:30 -04:00
Roberto Rosario
221049100c Improved document convertion API 2011-04-23 19:42:15 -04:00
Roberto Rosario
75bed35d2c Fixed an error introduced in the last PEP8 cleanup 2011-04-23 05:36:17 -04:00
Roberto Rosario
2a744cefea PEP8, pylint cleanups and removal of relative imports 2011-04-23 02:49:07 -04:00
Roberto Rosario
ec2b313755 Lower image convertion quality if the format is jpg 2011-04-22 02:32:41 -04:00
Roberto Rosario
5b4b281791 Added interactive document page view rotation support 2011-04-21 23:58:41 -04:00
Roberto Rosario
27d7aed25c Added interactive zoom support to document page detail view 2011-04-21 02:32:30 -04:00
Roberto Rosario
6b67cff5d7 Changed the way document page count is parsed from the graphics backend, fixing issue #7 2011-04-08 03:29:48 -04:00
Roberto Rosario
61fb876a81 PEP8 and Pylint cleanups 2011-04-07 17:21:15 -04:00
Roberto Rosario
cea79ea240 When deleting staging file, it's cached preview is also deleted 2011-04-06 16:54:33 -04:00
Roberto Rosario
f66c8ec6e2 Fixed error and some warning returned by pylint 2011-04-05 00:04:11 -04:00
Roberto Rosario
ff9173ac29 Raise ImportError and notify user when specifying a non existant converter graphics backend 2011-03-31 23:57:24 -04:00
Roberto Rosario
18b9964786 Added Graphics magick support by means of user selectable graphic convertion backends 2011-03-31 12:23:58 -04:00
Roberto Rosario
5ced11a5fb Removed debug code 2011-03-12 04:03:29 -04:00
Roberto Rosario
bc3d246f34 Fixed page number detection 2011-03-11 02:59:58 -04:00
Roberto Rosario
3ccb01254d Improved exception handling of external programs 2011-03-07 23:24:46 -04:00
Roberto Rosario
41161b2ad7 Converter now differentiates between unknown file format and convert errors 2011-03-07 23:00:27 -04:00
Roberto Rosario
6a9e114acb Set all *.py files permissions to 644 2011-03-07 12:15:25 -04:00
Roberto Rosario
d0bea8ffeb Initial version of the GridFS storage driver 2011-03-04 01:08:20 -04:00
Roberto Rosario
94fb748020 Try to catch execution execptions 2011-02-16 20:54:43 -04:00
Roberto Rosario
b1e2f64617 Apply transformation before doing OCR, added unpaper to the OCR pre processing pipe 2011-02-16 03:32:21 -04:00
Roberto Rosario
0eb9774618 Fixed regression caused by c8d5e26b4c 2011-02-15 19:56:03 -04:00
Roberto Rosario
c8d5e26b4c Fix error accidental delete of staging file on preview 2011-02-15 15:27:34 -04:00
Roberto Rosario
b2565b8223 Return 1 as page number is the file format is unknown 2011-02-14 13:40:48 -04:00
Roberto Rosario
06d7e5a46a Added multipage document support and document page transformation 2011-02-14 00:18:16 -04:00
Roberto Rosario
65d1e5b176 Initial updates to support document tranformations 2011-02-13 17:01:51 -04:00