Opening a PDF file can be done either through providing a filepath, a stream or a byte array..