Configuration can be passed into textract. The following configuration options are available preserveLineBreaks: When using the command line this is set to true to preserve stdout readability. When using the library via node this is set to false. Pass this in as true and textract will not strip any line breaks. preserveOnlyMultipleLineBreaks: Some extractors, like PDF, insert line breaks at the en