mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
cd7da983d1
[clsi] convert to ES modules GitOrigin-RevId: fb7fa52cc8f678ee31be352e62a5dff95e88008b
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
import fs from 'node:fs'
|
|
import XrefParser from '../app/js/XrefParser.js'
|
|
|
|
const pdfPath = process.argv[2]
|
|
|
|
async function main() {
|
|
const size = (await fs.promises.stat(pdfPath)).size
|
|
const { xRefEntries } = await XrefParser.parseXrefTable(pdfPath, size)
|
|
console.log('Xref entries', xRefEntries)
|
|
}
|
|
|
|
main().catch(console.error)
|