Check to see if the PDF file allows printing.
[read-only property] okToPrint([out, retval] VARIANT_BOOL *ok)
This function returns false if the PDF file is encrypted and does not allow printing. The owner password can be used to circumvent this: if a valid owner password was supplied to loadFileWithPassword or loadStreamWithPassword, this function will always return true.

If this function returns zero, the printing and PostScript conversion functions will return errors.

If Not pdf.okToPrint Then ' can't print this document ... End If