      const { PDFDocument, rgb, StandardFonts } = PDFLib;

      const [inputPdfBytes] = await Promise.all([
        fetchAsset(
          'pdfs/with_newline_whitespace_in_indirect_object_numbers.pdf',
        ),
      ]);

      const pdfDoc = await PDFDocument.load(inputPdfBytes);

      const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica);

      const pages = pdfDoc.getPages();

      const [firstPage] = pages;

      const { width, height } = firstPage.getSize();
      const text = 'pd