Extract structured information from a pathology PDF report using
pdftools::pdf_text() and regex-based section parsing.
Value
A molpath_parsed object whose data slot is a
tibble with columns section and content
extracted from the report (Patient, Sample, Findings, Interpretation,
Recommendations).
Examples
# \donttest{
pdf_file <- system.file("extdata", "report.pdf", package = "molpathR")
if (nzchar(pdf_file)) {
result <- mp_read_pdf_report(pdf_file)
print(result)
}
# }