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.

Wed Sep 11, 2019 12:22 pm

Hi Spire!
Please how to extract/store embeded 3D model from PDF to U3D file using Spire.PDF?

Universal 3D (U3D) is a compressed file format for 3D computer graphic data. 3D modules in U3D format can be inserted into PDF documents and interactively visualized by Acrobat Reader.
So I need the reverse operation as in your Tutorials > Spire.PDF > Program Guide > Image > "How to Embed 3D Interactive Graphics into PDF Document in C#, VB.NET".

BR,
Vlado

procamSpire
 
Posts: 22
Joined: Tue Sep 03, 2019 7:56 am

Thu Sep 12, 2019 3:00 am

Hi Vlado,

Thanks for your inquiry.
To help us investigate your issue accurately, could you please provide your input file which embeds U3D file?
You could upload it here or send to us(support@e-iceblue.com) via email.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 09, 2019 6:26 am

Hi Spire!
Please how to extract/store embeded 3D model from .PDF to .U3D file using Spire.PDF and c#?

Examples of .PDF files with 3D model embeded:
prostep.us/home/resources/3d-pdf-samples-and-examples/

Thank you.
Best regards,
Vladimir

procamSpire
 
Posts: 22
Joined: Tue Sep 03, 2019 7:56 am

Wed Oct 09, 2019 7:00 am

Hi,

Sorry for late reply.
Our Dev team already started to implement the new feature of extracting embedded 3D model from .PDF to .U3D file. And once the feature is available, we will let you know.
Apologize for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Oct 10, 2019 8:54 am

Ok, thank you.
Best regards
Vladimir

procamSpire
 
Posts: 22
Joined: Tue Sep 03, 2019 7:56 am

Thu Oct 10, 2019 9:34 am

Hi,

I just got information that the feature is under test phase, we will let you know as soon as the hotfix is available.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Oct 11, 2019 8:07 am

Hi,

Glad to inform you that the feature has been implemented, please download Spire.PDF Pack(Hot Fix) Version:5.10.2.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet: https://www.nuget.org/packages/Spire.PDF/

Sample code for your kind reference:
Code: Select all
            PdfDocument doc = new PdfDocument(FilePath + "sample.pdf");
            PdfAnnotationCollection annot = doc.Pages[0].AnnotationsWidget;
            int count = 0;
            for (int i = 0; i < annot.Count; i++)
            {
                if (annot[i] is Pdf3DAnnotation)
                {
                    Pdf3DAnnotation annot3D = annot[i] as Pdf3DAnnotation;
                    byte[] bytes = annot3D._3DData;
                    if (bytes != null)
                    {
                        File.WriteAllBytes(String.Format("result-{0}.u3d", count), bytes);
                        count++;
                    }
                }
            }


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Oct 11, 2019 10:20 am

Perfect!
Thank you.
Best regards,
Vladimir

procamSpire
 
Posts: 22
Joined: Tue Sep 03, 2019 7:56 am

Fri Oct 11, 2019 10:39 am

Hi,

Thanks for your response.
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Dec 04, 2023 10:58 am

To extract an embedded U3D model from a PDF using Spire.PDF, you'll need to check the library's documentation or forums for specific methods. It might involve accessing the PDF's resources or elements to extract and store the U3D data separately. Look for functions related to extracting embedded objects.

HellySmith
 
Posts: 1
Joined: Mon Dec 04, 2023 7:28 am

Tue Dec 05, 2023 3:58 am

Hi,

Thanks for your inquiry.
I didn't understand what you meant. Did you encounter some issues while extracting U3D from pdf file? If so, please provide a detailed description.

Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.PDF