Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Acrobat within Vb

Status
Not open for further replies.

sarduspater

Programmer
Jan 31, 2010
38
0
0
IT
Hi,
my last problem is how execute Acrobat Reader within Vb or Vba for convert a lot of .pdf files in .txt.
Can you help me?
Thanks in advance,
Renato

Candu si tene su 'entu es prezisu bentolare.
 
I found many examples but finally I know that Acrobat Reader doesn't supporto OLE. With installation of Acrobat 8 professional the problem is resolved.
Thanks in any way
Renato

Candu si tene su 'entu es prezisu bentolare.
 
Save the .txt file as postscript (basically print to file using a postscript print driver - I've done it below with a Word doc), open in Distiller and convert to a PDF.

appWRD.PrintOut Background:=False, PrintToFile:=True, OutputFileName:=strTempDirPath + "\" + tempSeq + ".ps"

Set pdf = CreateObject("pdfdistiller.pdfdistiller.1")

pdf.FileToPDF strTempDirPath + "\" + tempSeq + ".ps", strTempDirPath + "\" + tempSeq + ".pdf",
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top