I have the following situation:
- Internet Explorer 9 on Windows 7 SP1 32-bit
- Adobe Acrobat Professional version 10
- A webpage with code like this:
<object data="foo.pdf" src="foo.pdf">
Given that:
- The default PDF reader on the system is Adobe Acrobat
- Adobe Reader's browser plugin is suppressed in favor of Acrobat's plugin
- Acrobat.exe is running when the plugin loads
- I'm using Internet Explorer's COM automation (from Ruby, but that doesn't really matter) to obtain a reference to the
object
'sAxAcroPDFLib.AxAcroPDF
object
With this AxAcroPDFLib.AxAcroPDF
object, I need to manipulate form fields, read text, and do other stuff that is perfectly reasonable to do with the AcroExch.PDDoc
API, and then click a button on the webpage (using IE automation) to serialize the form fields to XML and save them to the webserver.
I need to test this "end to end" from a user perspective due to business requirements, so I can't just stuff values in the XML and see if the server takes them.
Is there any way to access the AcroExch.PDDoc
APIs of the opened PDF document from the AxAcroPDFLib.AxAcroPDF
reference, without saving the PDF to a file on disk and opening it in using AcroExch.App
?
The problem is that if I save it to disk and re-open it in Acrobat, that file cannot be used to save and submit the form field data to the web server, as far as I know. (Or can it?)