3D Objects

Top Previous Topic Next Topic  Print this topic

Acrobat Reader 3D objects are supported in XF Rendering Server 2013 via the object-3d tag.

 

Example of usage:

 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0">

       <fo:layout-master-set>

               <fo:simple-page-master master-name="all-pages" page-height="3in" page-width="6in">

                       <fo:region-body region-name="xsl-region-body" column-gap="0.25in" padding="6pt" margin="0.7in" />

                       <fo:region-before region-name="xsl-region-before" display-align="after" extent="0.7in" padding="6pt"/>

                       <fo:region-after region-name="xsl-region-after" display-align="before" extent="0.7in" padding="6pt"/>

               </fo:simple-page-master>

               <fo:page-sequence-master master-name="default-sequence">

                       <fo:repeatable-page-master-reference master-reference="all-pages"/>

               </fo:page-sequence-master>

       </fo:layout-master-set>

       <fo:page-sequence master-reference="default-sequence">

               <fo:flow flow-name="xsl-region-body">

                       <fo:block>

                               <xf:object-3d src="url('my3dobject.u3d')" preveiew-src="url('my3dobjectpreview.png')" fo:content-width="192px" fo:content-height="216px" fo:scaling="non-uniform" lighting-scheme="artwork" />

                       </fo:block>

               </fo:flow>

       </fo:page-sequence>

</fo:root>

 

 

·The src attribute specifies the source of the 3D object to be embedded in the PDF file. The expected formats are Universal 3d File Format (*.u3d) and Product Representation Compact (*.prc).
·The preview-src attribute specifies the preview image to embed in the PDF for this 3D object. Any type of image supported in XF Rendering Server 2013 can be set as preview.
·The content-height, content-width and scaling attributes are the same as the standard XSL-FO attributes applied to fo:external-graphic and fo:instream-foreign-object. The attributes must be prefixed by the fo namespace to be properly recognized by the engine.
·The lighting-scheme attribute defines which lighting scheme will be used in Adobe Reader when viewing the object. Possible values are: artwork (default), none, white, day, night, hard, primary, blue, red, cube, cad, headlamp.

 

Output:

 

3d-object