Basic Usage ​
Create an Instance ​
You can create a PDFALab instance like this::
TypeScript
import * as fs from 'node:fs';
import { PDFALab } from '@pdfa-lab/core';
const bytes = fs.readFileSync('example.pdf');
const lab = await PDFALab.from(bytes);
// Do something with the instance like extracting text or converting the
// document to PDF/A.