Skip to content
Discussion options

You must be logged in to vote

You must call destroy after finishing your work with the current PDF to prevent memory leaks. After loading a single PDF, you can perform multiple operations.

const parser = new PDFParse({ url: 'https://bitcoin.org/bitcoin.pdf' });
const textResult = await parser.getText();
const imageResult = await parser.getImage();
const ssResult = await parser.getScreenshot();
await parser.destroy();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Diluka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants