179 Commits

Author SHA1 Message Date
Jonathan Ingram f48142557c docd: return JSON errors when things fail (#127) v1.3.3 2022-09-20 17:36:18 +10:00
Jonathan Ingram c6fca3224d docd/appengine: use 1.3.2 release (#126) 2022-09-20 16:59:09 +10:00
Jonathan Ingram f7c0a24696 docd: fix binary paths (#125) v1.3.2 2022-09-20 15:49:57 +10:00
Jonathan Ingram e0eaf8afca docd: fix Dockerfile after change to Go 1.19 (#124) v1.3.1 2022-09-20 15:26:29 +10:00
Jonathan Ingram 6d8c9df3fc docd: add recovery middleware and allow reporting errors to GCP (#121) v1.3.0 2022-09-20 14:18:37 +10:00
Jonathan Ingram e52737e9fc docd: use Go 1.19 to build base image (#123) 2022-09-20 14:18:24 +10:00
Jonathan Ingram cdb328aec3 .github: add Go 1.19 to matrix (#122) 2022-09-20 13:51:07 +10:00
Jonathan Ingram 3bb63564e6 docd/appengine: use 1.2.1 release (#120) 2022-09-20 12:59:03 +10:00
Jonathan Ingram aa395e1332 convert-doc: don't use doc if there was an error (#117)
Avoids panics.
2022-09-05 11:33:11 +10:00
Helena Mariano 42bcff6668 fix unbounded memory consumption vulnerability (#111)
Co-authored-by: Helena Mariano <31138349+helenamariano@users.noreply.github.com>
v1.2.1
2022-07-18 15:47:08 +10:00
Helena Mariano b19021ade3 Fix remote code execution vulnerability in the PDF OCR converter (#110)
ENG-3252
2022-07-07 14:16:47 +10:00
David Howden 44d6739947 client: improve client error messages (#113) 2022-06-28 17:00:34 +10:00
Helena Mariano 2894bd7093 update: generate iWork proto files with latest version of protoc (#107) 2022-06-28 12:30:03 +10:00
Jessica f445ac19cb doc: update msoleps dependency (#108)
There's a new version of the msoleps library used for .doc parsing that fixes a stack overflow bug in OLE Property Set handling.
2022-06-08 15:51:21 +10:00
Jonathan Sokolowski c8f472b62a README: add an example using curl (#102) 2021-08-20 12:17:24 +10:00
Jonathan Sokolowski c37a0df82a docd/appengine: use 1.2.0 release 2021-08-20 10:34:49 +10:00
Jonathan Sokolowski a6ea64d0ff .github: tag docd image with git SHA v1.2.0 2021-08-20 09:55:11 +10:00
Jonathan Sokolowski 7858c13659 .github: add workflow_dispatch trigger to docd 2021-08-20 09:38:10 +10:00
Jonathan Sokolowski 88cb39368e docd: refactor Dockerfile and publish to DockerHub (#101)
* Use multi-stage build to compile docd
* Bring debian variant up to date
* Deprecate the alpine variant
* Add GitHub action to publish an official image to DockerHub
* Use published image as the AppEngine custom runtime
2021-08-18 19:16:30 +10:00
jus c691ef7650 Updated dependency for poppler and removed bash arg check (#100) 2021-08-18 14:12:43 +10:00
David Howden c8a60e3f4d doc: improve metadata parsing so that titles can be reliably extracted (#99) 2021-08-17 17:41:37 +10:00
Jonathan Ingram 7b3472bc32 add test for TestConvertHTML (#93)
Use table tests with current package value "", and "good".

Co-authored-by: Remo Senekowitsch <remo@belegerfassung.ch>
2021-04-27 10:13:43 +10:00
Jonathan Ingram d6ce91ecd3 actions: stop building for Go 1.13
We want to use testing.Cleanup which was added in 1.14.
2021-04-27 09:29:53 +10:00
remLse 6b8d2b5d66 rtf: don't ignore lines less than 5 characters long (#91)
It looks like the original author of this function intended to do a bounds check
on the line variable before checking if it has the `### ` prefix. Instead, we can
just use `strings.HasPrefix` which also means that shorter lines are now 
included in the output.

Co-authored-by: Remo Senekowitsch <remo.senekowitsch@icloud.com>
2021-04-12 19:49:41 +10:00
Jonathan Ingram 6897b7b9d4 pptx_test: check returned error before deferring f.Close() 2021-04-09 20:37:33 +10:00
Jonathan Ingram 3800ce70dc add note about ignored error check 2021-04-09 20:37:33 +10:00
Jonathan Ingram bbb3aa9625 docd: remove unused convertPath function 2021-04-09 20:37:33 +10:00
Jonathan Ingram 70dbd5cc69 remove path separator from ioutil.TempFile prefix
In [1], from Go1.15 path separators are rejected in ioutil.TempFile.

Refs #87

[1] https://github.com/golang/go/commit/12cd55c062d6062a64076cb37f12ab7646df1be7
2021-04-09 20:23:50 +10:00
Jonathan Ingram be0383cc87 add Sourcegraph badge to README 2021-03-29 09:51:09 +11:00
Jonathan Ingram 88dc5a8a19 use GitHub actions instead of Travis
Also update README GoDoc badge to pkg.go.dev.
2021-03-29 09:28:16 +11:00
Jonathan Ingram 389c4aebd9 readme: fix typo 2021-03-29 09:05:38 +11:00
Jonathan Ingram d9ea05fbd5 readme: tidy 2020-07-01 16:26:49 -07:00
superxin 963655a30a support PowerPoint files in Convert functions 2020-07-02 08:05:20 +10:00
Hamish c4a9e3d578 ocr: update gosseract to v2
This also allows multiple gosseract languages to be provided.

Co-authored-by: Jonathan Ingram <jonathan.b.ingram@gmail.com>
2020-07-02 07:46:51 +10:00
superxin dd4e7b5a2c pptx: add support for MS PowerPoint files (#71) 2020-06-24 10:32:35 +10:00
Hamish f04c8759ea docd: appengine build fix 2020-06-12 11:32:40 -07:00
Hamish ee07bdd5c3 avoid double copy on tidy 2020-06-11 14:40:40 -07:00
Hamish 9c542a257b Update tidy pkg to use NewLocalFile func
Co-Authored-By: Ben Hinchley <bhinchley@sajari.com>
2020-06-11 14:40:40 -07:00
Hamish d37fc7c11e support windows temp directories 2020-06-11 14:40:40 -07:00
Hamish a8f1262a60 add go mod support 2020-06-11 13:14:24 -07:00
Benjamin Hinchley 1fd4d7a6c8 pdf: add extra time layout for pdfs 2019-10-16 14:41:55 +11:00
David Howden e3975370dc try to avoid loading file data into slices 2019-09-27 17:08:32 +10:00
Daniel Machado Kraus d82a45ebfe Fixes
rename variables,
fix test package of test resources,
declare internal structure as private structure
2019-09-27 16:31:09 +10:00
Daniel Machado Kraus 83716c35de Get docx contents reading [Content_Types].xml to get correct file names 2019-09-27 16:31:09 +10:00
David Howden eedabc494f docd: return error messages in the response v1.1.0 2018-02-07 16:45:20 +11:00
David Howden 142d49c1b0 travis: update to remove old versions of go 2018-02-07 14:19:16 +11:00
David Howden 01ef350e70 docconv-client: added missing error return code 2018-02-07 14:07:40 +11:00
David Howden 6f9795e9ba client: added docconv-client cli tool 2018-02-07 14:06:06 +11:00
Benjamin Hinchley b2673e6415 build: tag build alpine docker container
with either a passed through tag or the current commit
2018-02-07 14:05:06 +11:00
Benjamin Hinchley 99ebc37d51 docker: clean up install.sh 2018-02-07 14:05:06 +11:00