import { Injectable } from '@nestjs/common';
import { PDFDocument } from 'pdf-lib';

@Injectable()
export class PdfService {
  constructor() {}

  async load(bytes: Uint8Array) {
    return await PDFDocument.load(bytes, {ignoreEncryption: true});
  }
}
