Releases the underlying PDFium handle. Idempotent — calling pdf_doc_close() on
an already-closed document is a no-op. The finalizer registered at
pdf_doc_open() also calls this when the R object is garbage-collected, but
explicit close is recommended when handling many large documents or when a
subsequent operation needs to delete the source file (relevant on Windows).
Arguments
- doc
A
pdfium_docproduced bypdf_doc_open().