text2pdf: write text to pdf file

View source: R/read_pdf_funs.R

text2pdfR Documentation

write text to pdf file

Description

write text to pdf file

Usage

text2pdf(txt, pdffile)

Arguments

txt

character vector with data to write to pdffile

pdffile

character string with name (optionally with full path) of pdf file

Details

text2pdf writes txt to a temporary text file with an additional line added before and after txt with three backticks. pandoc then considers the file as verbatim text and converts it to a pdf file

Examples

## Not run: 
outfile <- "testfile.pdf"
txt     <- c('en dat is één', 'en dat is twee', 'en dat is zev-e-ven')
v <- text2pdf (txt, outfile)

## End(Not run)


HanOostdijk/HOQCutil documentation built on July 28, 2023, 5:56 p.m.