F
Flaming Flamingo
Hi,
I'm making a script that check's if a pdf file is corrupt or not.
require 'watir'
require 'win32ole'
require 'pdf/writer'
oPDF = WIN32OLE.new('AcroExch.App')
oPDFDoc = WIN32OLE.new('AcroExch.AVDoc')
if (oPDFDoc.Open("c:\\tempcor.pdf","") !=true)
puts "false" #problem...press enter
else
puts "true"
end
Now, the problem is, when opening a corrupt pdf, a message appears in
Adobe.
Does anyone know how to check it without the message or get the message
out of the way?
cheers.
FF
I'm making a script that check's if a pdf file is corrupt or not.
require 'watir'
require 'win32ole'
require 'pdf/writer'
oPDF = WIN32OLE.new('AcroExch.App')
oPDFDoc = WIN32OLE.new('AcroExch.AVDoc')
if (oPDFDoc.Open("c:\\tempcor.pdf","") !=true)
puts "false" #problem...press enter
else
puts "true"
end
Now, the problem is, when opening a corrupt pdf, a message appears in
Adobe.
Does anyone know how to check it without the message or get the message
out of the way?
cheers.
FF