embed pdf as an option. embedding is default now. move a bunch of functions
from Coroutine.File to ModelAction.File
use canonicalizePath for pdf file so that relative path doesn't cause crash
askIfOverwrite : asking before overwriting a file