On 8/18/2013 6:18 AM, Angel Herráez wrote:
> I'm not sure I understand the css/printing business.

Me either, but Pshemak said he wanted a substitute image for the printed version, and seemed to imply that the regular model does not print.

What I am seeing is indeed that the browser prints the HTML5 version all fine. For the Java applet it just gives an empty box. My trick allows to print an image in that place in both the Java and HTML5 versions (there may a way to make it java-only).

Pshemak, please tell us where it was that you wanted the image to be printed.


It is a bit more complicated in my case.
I have two goals:
replace Jmol/JSmol with images on devices that do not support them, in the best way possible (I know it is impossible to cover all permutations of device/browser)
    replace Jmol/JSmol with images in printed documents

For the second case, I know that Firefox and Chrome print Jmol, and JSmol, but I also use wkhtmltopdf on our server to produce well organized pdf "booklets". The wkhtmltopdf mechanism of printing relies on "capturing" the page "image" (html/css equivalent) produced by the server. Apparently the Jmol/JSmol components are generated too slowly to be captured effectively. We are trying to resolve that issue, but till then, image substitution seems like a good "patch".

Thanks for all your help,

PM











------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk


_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to