Finish and Display PDF File if Condition is Met

finishAndShowPdfIf(to.pdf, PDF, ...)

Arguments

to.pdf

if TRUE the pdf device is closed and the pdf file is opened in a viewer

PDF

path to the opened pdf file

...

arguments passed to finishAndShowPdf