Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add options for doc extractor #122

Closed
wants to merge 4 commits into from
Closed

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