Copy link to clipboard
Copied
Hello,
I'm trying to embed a local PDF file in a Windows Forms application; right now I'm using a standard WebBrowser control, which takes care of instantiating a web browser and, if Acrobat Reader DC is the default document handler for PDF files, the web browser calls it in order to display the contents of the file. The problem is, instead of getting the file displayed, I'm getting a "103:103" error. I have already tried disabling the "Enable Protected Mode at startup" and the "Allow documents to hide the menu bar, toolbars and window controls" options, with no luck. If I simply click on the same document from the filesystem, the application opens it correctly. Besides, I cannot ask all my end users to change their Acrobat Reader configuration. Any suggestions?
In that case, I think I'll just launch the default application for the PDF file format, looks like the safest choice to me. Thanks for your time, anyway.
Copy link to clipboard
Copied
Are you able to view local PDF files embedded in local HTML using Internet Explorer?
Copy link to clipboard
Copied
Yes, Internet Explorer 11 correctly loads Acrobat Reader and displays the file.
Copy link to clipboard
Copied
Hmm. If that works it means Reader is basically ok. Since your use is outside the expected use of Reader, I doubt you can proceed further with this. There is a supported API for PDF display in your window, see the SDK.
Copy link to clipboard
Copied
Can you be more specific? Where exactly should I look?
Copy link to clipboard
Copied
In the Acrobat SDK. Most functions are for Acrobat only but there is one interface for Reader with OLE. Look in the “interapplication communication” section.
Copy link to clipboard
Copied
But in that case I would have to rely on the assumption that users have Acrobat Reader installed on their machines, right?
Copy link to clipboard
Copied
Or Acrobat, since Acrobat provides the same interface too, yes.
Copy link to clipboard
Copied
In that case, I think I'll just launch the default application for the PDF file format, looks like the safest choice to me. Thanks for your time, anyway.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more