Skip to content

add options for doc extractor#122

Closed
spneto wants to merge 4 commits intodbashford:masterfrom
spneto:master
Closed

add options for doc extractor#122
spneto wants to merge 4 commits intodbashford:masterfrom
spneto:master

Conversation

@spneto
Copy link
Contributor

@spneto spneto commented Jun 11, 2017

When extracting doc files larger then default stdout max buffer size (200KB), I got the following error:
Error: antiword read of file named [[ myfile.doc ]] failed: Error: stdout maxBuffer exceeded.

So I just passed options.exec to exec. So I'm able to configure maxBuffer, like:

textract.fromUrl('http://www.aaa.com/mylargedoc.doc', 
	{exec: {maxBuffer: 400 * 1024}},
	function( error, text ) {});

'application/xml'
'application/xml',
'application/rss+xml',
'application/atom+xml'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these changes are in another PR, can you remove them from this one?

@dbashford
Copy link
Owner

This has the octet stream stuff in it (spelled incorrectly), so going to close and make the small exec change myself.

@dbashford dbashford closed this Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants