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.

Fri Mar 20, 2020 9:28 am

Hi everybody,
When i use this code
Code: Select all
   using (Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument(path))
            {
     
                for (int i = 0; i < doc.Layers.Count; i++)
                {
                    MessageBox.Show(doc.Layers[i].Name);
                }
}


on a pdf with 2 layers (i can see in Photoshop), nothing happen, the application tell me that there are 0 layers. How can i solve?

hakzi9898
 
Posts: 7
Joined: Wed Mar 18, 2020 7:59 pm

Fri Mar 20, 2020 9:40 am

Hello,

Thanks for your inquiry.
To help us investigate your issue more accurately, please share your input file with us.
You could upload here or send it to us([email protected]) via email. Thanks in advance for your assistance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Mar 20, 2020 9:46 am

I attached it in the message before

hakzi9898
 
Posts: 7
Joined: Wed Mar 18, 2020 7:59 pm

Fri Mar 20, 2020 10:37 am

Hello,

Thanks for your sharing.
Our Spire.PDF follows the PDF standard. And I tried to open your PDF document in different versions of Adobe, but did not find any layers, as shown in the attached screenshot. And you could also verify it on your side.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF

cron