Hi,
I just need to know, if the PDF file is printable or not. But not finding any properties to do so in "AcroExch.App"/"AcroExch.PDDoc"/"AcroExch.avdoc" object(s).
Is there any other way I can achieve this?
Also, if it is printable, I need to know if it needs a password to print.
I need to seperate pdf files
1.Which I am able to open and print
and
2.Those which are open/print protected.
Any comments or solutions are welcome.
Thanks in advance
Vijaya
My code is as below
----------
acrobatAVDoc = CreateObject("AcroExch.avdoc")
If acrobatAVDoc.Open(lFile.FullName, "") Then
'able to open
If acrobatAVDoc.PrintPages(1, 1, 1, 1, 1) Then
'able to print
MsgBox("Able to print")
Else
MsgBox("Unable to print")
End If
Else
MsgBox("unable to open")
End If
---------------------
This code actually ask for the password if the PDF is password protected for either opening or printing. and also it physically prints the document if it is not password protected for printing.
I want to just know if its printable without providing any password, I dont want to print it.
Thanks
Vijaya
I just need to know, if the PDF file is printable or not. But not finding any properties to do so in "AcroExch.App"/"AcroExch.PDDoc"/"AcroExch.avdoc" object(s).
Is there any other way I can achieve this?
Also, if it is printable, I need to know if it needs a password to print.
I need to seperate pdf files
1.Which I am able to open and print
and
2.Those which are open/print protected.
Any comments or solutions are welcome.
Thanks in advance
Vijaya
My code is as below
----------
acrobatAVDoc = CreateObject("AcroExch.avdoc")
If acrobatAVDoc.Open(lFile.FullName, "") Then
'able to open
If acrobatAVDoc.PrintPages(1, 1, 1, 1, 1) Then
'able to print
MsgBox("Able to print")
Else
MsgBox("Unable to print")
End If
Else
MsgBox("unable to open")
End If
---------------------
This code actually ask for the password if the PDF is password protected for either opening or printing. and also it physically prints the document if it is not password protected for printing.
I want to just know if its printable without providing any password, I dont want to print it.
Thanks
Vijaya
Last edited: