Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Testing PDF viewer in browser
02-28-2012, 04:40 PM #1
- Join Date
- Feb 2012
- Thanked 0 Times in 0 Posts
Testing PDF viewer in browser
The built in PDF viewer in Google Chrome does not support the Adobe function submitForm. Adobe Reader, Acrobat and Foxit reader do support submitForm. I did not test Safari's built in PDF viewer.
To test for this, I created a blank PDF file (called test.pdf - attached) that runs submitForm as soon as it opens and a PHP script (below) that returns "Ok" when it receives the file from the submitForm call. When I load test.pdf in Chrome, I just get a blank pdf file. When I load test.pdf in IE (which is using Adobe Reader) or Firefox (which is using Foxit Reader) I get an "0k".
What I don't know how to do is create a script that loads the test.pdf file. If it does not get the "0k", closes the page with test.pdf and warns the user. If it does get the "Ok", closes that page and loads the PDF form I want the user to see. Any ideas?