# Convert-RTF-to-PDF

## Vignette Build Datetime

    message(paste0('Datetime: ',Sys.Date(),':',Sys.time()))
    #> Datetime: 2026-01-21:2026-01-21 09:14:01

## Generate PDFs from RTFs for NON-PRODUCTION Work in 3 Clicks (Unlimited Number of Files)

### (Must use Pulsar for PRODUCTION Work)

## Create Folder Structure on Windows

Step 1.) Create the following folder structure using your MUDID:

C:/Users/USERNAME/Documents/

Step 2.) Create the following 2 sub-folders under the Documents folder created in Step 1:

C:/Users/USERNAME/Documents/rtf_files/
C:/Users/USERNAME/Documents/scripts/

Step 3.) Copy the following 2 files into the scripts folder created in Step 2:

https://github.com/GSK-Biostatistics/repfun/blob/misc/outputs/rtf2pdf.ps1
https://github.com/GSK-Biostatistics/repfun/blob/misc/outputs/makepdf.bat

Step 4.) Create RTF outputs as needed, for example see Vignette ‘Create-AE-Tables’

Step 5.) From within R Studio files pane, select and Export the RTF files produced in Step 4 (see below). Click to View Picture

Step 6.) Click download (see below). Click to View Picture

Step 7.) Run the batch file copied in Step 3 (see below). Click to View Picture

The following file is produced from Step 7 (see below). Click to View Picture

Step 8: Final step is to upload the converted.zip file from R Studio files pane (see below). Click to View Picture

For future conversions repeat Steps 5 thru 8. (The most recent zip file in the downloads folder will be processed.)