Groups > Software Support > Adobe Acrobat Scripting > Re: Scan from VBA (since 8.0 version)




Scan from VBA (since 8.0 version)

Scan from VBA (since 8.0 version)
Fri, 16 May 2008 07:28:22 -070
Hello,

I used to scan documents from access 2007 using execMenuItem("scan").
Since Acrobat pro 8.0, the application asks for a filename on creation. I need
to specify this filename from my VBA program (without asking to user). Is it
possible ?
Thanks,

Fabien

Adobe Acrobat 8 professional
Windows XP
Post Reply
Re: Scan from VBA (since 8.0 version)
Fri, 16 May 2008 07:46:29 -070
You can use Acrobat Capture. That comes with a programming interface:
Post Reply
Re: Scan from VBA (since 8.0 version)
Fri, 16 May 2008 07:50:48 -070
There is certainly no API to pass information to a dialog; if a given
menu item is non-interactive, then it will be non-interactive no
matter what.  It may be that there is an alternative API to scanning,
I don't know.

Post Reply
Re: Scan from VBA (since 8.0 version)
Mon, 19 May 2008 02:09:43 -070
Thanks Bernd,

I solved my problem by :
 - open a file with one page
 - add pages by menuitem "scan"
 - delete page one
 - saving by pdDoc.Save(PDSaveCopy, full path)

With this method, I don't need to specify the file name myself

I'll try to get Acrobat Capture to improve this (quite lame) method.
Thanks for your help !!!

Post Reply
about | contact