Returns a pdfium_page handle bound to its parent doc. The page is
garbage-collected with a finalizer that calls FPDF_ClosePage; call
pdf_page_close() explicitly when you need deterministic release.
The page keeps the parent document alive for as long as the page
is reachable, so it is safe to drop your reference to doc while
still holding a page.
Arguments
- doc
A
pdfium_docfrompdf_doc_open().- page_num
One-based page index. Must satisfy
1 <= page_num <= pdf_page_count(doc).
Examples
fixture <- system.file("extdata", "fixtures", "minimal.pdf",
package = "pdfium"
)
if (nzchar(fixture)) {
doc <- pdf_doc_open(fixture)
page <- pdf_page_load(doc, 1)
pdf_page_close(page)
pdf_doc_close(doc)
}