We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to add embed 3D file (u3D) in PDF Document

How to add embed 3D file (u3D) in PDF Document

3D Annotation

3D Annotation are used to represent 3D artworks in a PDF document. Creation of new Pdf3DAnnotation can be shown in below code snippet.

C#

 

Pdf3DView

Represents an attribute to be applied to the virtual camera associated with a 3D annotation. It is used to create additional view to set the Background, Lighting and Rendering but either CameraToWorldMatrix or ViewNodeName must be specified.

C#

 

 

 

CameraToWorldMatrix

A 12-element 3D transformation matrix that specifies a position and orientation of the camera in world coordinates. If the array has more than 12 elements, only the first 12 will be considered. We cannot set the C2W matrix automatically. We must provide the matrix value manually in the below format.

[left_x left_y left_z up_x up_y up_z view_x view_y view_z trans_x trans_y trans_z]

 

C#

 

ViewNodeName

A sequence of one or more text strings used to access a view node within the 3D artwork. A View Node is a parameter in the 3D artwork that specifies the view. If both ViewNodeName and CameraToWorldMatrix are specified, then ViewNodeName takes precedence. If ViewNodeName is set to create additional view, Internal name of the Pdf3dView must be specified.

C#

 

Features supported by Pdf3DView

Background:

C#

 

Render Mode:

C#

 

Lighting:

C#

 

Insert an u3d into PDF document with Pdf3dView is shown in the below code snippet.

C#

 

Sample Link :

http://www.syncfusion.com/downloads/support/forum/131363/ze/Sample360240407.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
7881 07/31/2017 07/31/2017 WPF PDF
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.