Insert a page number shape into the current slide of a pptx object.

# S3 method for pptx
addPageNumber(doc, value, ...)

Arguments

doc

pptx object

value

character value to add into the page number shape of the current slide. optionnal. If missing current slide number will be used.

...

further arguments, not used.

Value

a pptx document object

See also

addPageNumber, addDate

Examples

doc.filename <- "add_page_number_example.pptx" doc <- pptx( title = "title" ) doc <- addSlide( doc, slide.layout = "Title Slide" ) # add a page number on the current slide --- doc <- addPageNumber( doc ) doc <- addSlide( doc, slide.layout = "Title and Content" ) # add a page number with free text ---- doc <- addPageNumber( doc, value = "Page number text") writeDoc( doc, file = doc.filename )