Skip to content

Commit f85bb9c

Browse files
committed
Merge pull request #153 from tdumitriu/dev
Adds configuration example for the html-to-html conversion step
2 parents 59eb2a4 + 7eeba6e commit f85bb9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/document_conversion_integration.v1-experimental.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ async.waterfall([
6262
document_conversion.convert({
6363
// (JSON) ANSWER_UNITS, NORMALIZED_HTML, or NORMALIZED_TEXT
6464
file: fs.createReadStream(__dirname + inputDocument),
65-
conversion_target: document_conversion.conversion_target.ANSWER_UNITS
65+
conversion_target: document_conversion.conversion_target.ANSWER_UNITS,
66+
config: {"html_to_html":{"specify_content_to_extract":{"enabled":true,"xpaths":["//h3"]}}}
6667
}, function (err, response) {
6768
if (err) {
6869
console.error(err);

0 commit comments

Comments
 (0)