Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Aug 03, 2015 4:56 am

Hi,
does it supports visualization of 3d images in the pdf,(images will be loaded using u3d/prc files)

pka
 
Posts: 2
Joined: Mon Aug 03, 2015 4:52 am

Tue Aug 04, 2015 6:21 am

Hello,

Sorry for late reply as weekend. Spire.Pdf can support to create PDF with 3d image. Here are sample codes for your reference.
Code: Select all
       PdfDocument doc = new PdfDocument();
        PdfPageBase page = doc.Pages.Add();
        Rectangle rt=new Rectangle(100,100,200,200);
        Pdf3DAnnotation annotation = new Pdf3DAnnotation(rt, "teapot.u3d");
        annotation.Activation = new Pdf3DActivation();
        annotation.Activation.ActivationMode = Pdf3DActivationMode.PageOpen;
        Pdf3DView pdf = new Pdf3DView();
        pdf.Background = new Pdf3DBackground(new PdfRGBColor(Color.Blue));
        pdf.ViewNodeName = "test";
        pdf.RenderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid);
        pdf.InternalName = "test";
        pdf.LightingScheme = new Pdf3DLighting();
        pdf.LightingScheme.Style = Pdf3DLightingStyle.Day;
        annotation.Views.Add(pdf);
        page.AnnotationsWidget.Add(annotation);
        doc.SaveToFile( "CreatePdf3d.pdf",FileFormat.PDF);

Please contact us if you have any questions.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Aug 06, 2015 9:05 am

Hello,

Has your issue been resolved?
Have you tried the code?
Thanks for your feedback.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Aug 07, 2015 10:53 am

Thanks Gary, Could you pls send the codes to load a prc file specifically, rather than u3d.

Regards

pka
 
Posts: 2
Joined: Mon Aug 03, 2015 4:52 am

Mon Aug 10, 2015 7:29 am

Hello,

Thanks for your response. Could you pleas provide us a sample .prc file? We will check if it can be supported.

Thanks in advance,
Gary
E-icebue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Aug 11, 2015 3:45 am

Hello,

Could you please provide us a sample .prc file?
Please kindly note that firstly you need to compress it and upload.
Or you can send it to us ( [email protected] ) via email.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF