These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to display pdf 3D or U3D file within an HTML Page

jb36123
jb36123's picture
Registered: Oct 30 2008
Posts: 3
Answered

Hello Every body,

Is there any plugin that allows to display a 3D object in U3D or PDF3D format embeded in an HTML page ?

Any Idea would be appreciated !

Thanks

UVSAR
UVSAR's picture
Expert
Registered: Oct 29 2008
Posts: 1357
Just embed the PDF file as an object tag, and if the user has Adobe Reader 8.5+ it'll display inline. You may need to enable full screen mode to get rid of the normal chrome.

There are assorted tricks to divert the user if they don't have Reader, or have an older version - the best way to version-filter is to do it inside the PDF itself, for example by putting the 3D on page 2, an "upgrade now" message on page 1, and running a document Javascript inside the PDF which changes the view based on app.viewerVersion. You can wrap against not having a PDF reader plugin at all by using the 'Stirfry' method with object tags.
jb36123
jb36123's picture
Registered: Oct 30 2008
Posts: 3
Thanks UVSAR,

1) Would you have an example or an URL to demonstrate your technique ?

2) Would you know if FLASH could do the job ?

Regards
UVSAR
UVSAR's picture
Expert
Registered: Oct 29 2008
Posts: 1357
I've posted a basic example at

[url]http://uvsar.blogspot.com/2008/10/version-sniffing-for-inline-pdf-files.php[/url]

It explains the code in the blog post. You can go to town with what the PDF does when it learns the viewer version (reporting info on form fields, changing to a different PDF with legacy content, etc.) but the idea is the same.