per aprire un pdf si usa un getURL:
getURL ("file.pdf", "_blank");
dove "file.pdf" andrà sostituito con la tua variabile.