Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/node/index.js → examples/node/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function main() {
let annotations = await pdfWorker.importAnnotations(buf, [], '', cmapProvider);
console.log(annotations);

let fulltext = await pdfWorker.extractFulltext(buf, '', 1, cmapProvider);
let fulltext = await pdfWorker.getFulltext(buf, 1, '', cmapProvider);
console.log(fulltext);

annotations = [{
Expand All @@ -30,7 +30,8 @@ async function main() {
color: '#FF0000',
comment: 'A test note',
authorName: 'John',
dateModified: '2019-04-19T08:21:13.011Z'
dateModified: '2019-04-19T08:21:13.011Z',
tags: []
}];

try {
Expand Down