Skip to main content

Browser with embedded Adobe PDF Problem

2 replies [Last post]
bigfwoosh
Offline
Joined: 2008-05-16

I now have a BrComponent in a JPanel that I am using in a larger application. When I attempt to open a PDF and Adobe Reader loads in the browser window, I am unable to control the PDF that is embedded in the page. I cannot click any of the Adobe Reader buttons, nor can I scroll through the PDF. After about 10 seconds or so, the entire embedded PDF turns white. Is this a known bug in the BrComponent, or should it normally work okay? Thanks for any help you can give me.

Also, I guess I should say that I am unable to simply right-click and save the PDF since it is generated on the fly and sent to the browser, rather than located on disk somewhere, so this is a bit of a critical problem for me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
uta
Offline
Joined: 2007-01-10

New "native paint" mode was implemented in JDICplus.

PDF document viewer:
https://jdic.dev.java.net/documentation/incubator/JDICplus/ws/DocViewDem...

But each feature has a price. In case of "native paint" mode you lose the Swing menu coverage over the browser.

uta
Offline
Joined: 2007-01-10

That is known problem. I am working under solution. Currently I didn't see any 'light' implementation except hooking for WM_PAINT event for each child window.
It is not a PDF viewer problem, but it happens for any render, but HTML.