Skip to content

Commit 467f945

Browse files
author
Andrey
committed
Update text extract
- Now the output txt contains a page number
1 parent 2cbb99f commit 467f945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ app.get('/textextract/:filename-:pagenumber', (req, res) => {
150150
}
151151

152152
const inputPath = path.resolve(__dirname, filesPath, filename);
153-
const outputPath = path.resolve(__dirname, filesPath, `${filename}.txt`);
153+
const outputPath = path.resolve(__dirname, filesPath, `${filename}-${pageNumber}.txt`);
154154

155155
const main = async () => {
156156
await PDFNet.initialize();

0 commit comments

Comments
 (0)