postprocessing_doc: Post-process PowerPoint Document

View source: R/appendix.R

postprocessing_docR Documentation

Post-process PowerPoint Document

Description

Performs final actions on the PowerPoint object, including optionally saving the updated file. The saved filename includes a suffix indicating the slide type that was appended.

Usage

postprocessing_doc(doc, save_file, doc_o, type = "")

Arguments

doc

An 'officer::rpptx' object to finalize.

save_file

A boolean indicating whether to save the file to disk.

doc_o

Original PowerPoint file path.

type

A string suffix to label the output file, e.g., '"cohort_sec"' or '"safety_sum_sec"'.

Value

The modified 'officer::rpptx' object.

Examples

tmp <- tempfile(fileext = ".pptx")
doc <- officer::read_pptx()
doc <- officer::add_slide(doc, layout = "Title Slide", master = "Office Theme")
print(doc, target = tmp)
doc <- officer::read_pptx(tmp)
# Call postprocessing_doc to save a modified version of doc
postprocessing_doc(doc, TRUE, tmp, type = "final")

autoslider.core documentation built on Aug. 8, 2025, 6:44 p.m.