    for (let i = 0; i < pages.length; ++i) {
            const page = pages[i];
            const annotations = page.node.Annots();
            if (!annotations) continue;
            const ctx = annotations.context;

            for (let j = 0; j < annotations.size(); ++j) {
              const annotation = annotations.get(j);
              ctx.delete(annotation);
            }
          }

          const pdfBytes = await pdfDoc.save();
          const pdfBlob = new Blob([pdfBytes], { type: 'application/p