Skip to content

Commit

Permalink
update generateOutline.js
Browse files Browse the repository at this point in the history
  • Loading branch information
helongfei authored and helongfei committed Sep 15, 2022
1 parent 9802919 commit 223fd58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generateOutline.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ async function main() {
continue
}
const path = process.argv[2]+'/'+item
const filename = path.split('/').pop().replace('.pdf','').replace("【daobanke.com】",'')
const filename = path.split('/').pop().replace('.pdf','').replace("something",'')
// .replace(/\d{2}/,'')
const pdf = await PDFDocument.load(fs.readFileSync(path))
console.log(filename+" "+page)
page += pdf.getPageCount()
}
}

main();
main();

0 comments on commit 223fd58

Please sign in to comment.