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. Image for the cookie policy date
close icon

PDF Layers not correct

Hi,
I want to display all layers which are in a PDF file in an Grid (this.lvwLayers).
I tried this out with a PDF which Comes from AutoCAD. In the page layer collection are 6 layers (one of them 4 times).
But all the other layers are not in the collection, it must be 38. BTW. The Adobe Reader is correct.
What went wrong?
This is the code:
Syncfusion.Pdf.PdfDocumentm_Document=newSyncfusion.Pdf.PdfDocument();
m_Document.PageSettings.Rotate=m_Rotation;
m_Document.ImportPageRange(m_PDFLoadedDocument,0,m_PDFLoadedDocument.Pages.Count-1);
Syncfusion.Pdf.PdfLoadedPagepage=m_PDFLoadedDocument.Pages[0]asSyncfusion.Pdf.PdfLoadedPage;

this.lvwLayers.BeginUpdate();
this.lvwLayers.DataSource=null;
this.lvwLayers.DataSource=page.Layers;
this.lvwLayers.EndUpdate();
Thanks for helping.
Regards Jürgen

3 Replies

SK Surya Kumar Syncfusion Team September 4, 2017 07:23 AM UTC

Hi Jurgen, 
 
Thank you for using Syncfusion products. 
 
We have tried to reproduce the issue which you have mentioned by creating a new PDF document with multiple layers and saved it. Then loaded the saved document and checked whether the layers which are added are present in the loaded document with the code snippet which you have used in your last update. 
 
But we are unable to reproduce the issue, can you please provide us the document in which the mentioned issue is reproduce so that we can help you better in this. 
 
Please find the sample in which we tried to reproduce the issue from below link: 
 
Please let us know if you need any further information in this. 
 
Regards, 
Surya Kumar 



JB Juergen Becker September 4, 2017 07:44 AM UTC

Hi,

many thanks for your Reply.

In the attached file you will find the PDF with the layers. Please be so kind and check it with this file.

Thanks a lot.

Regards Jürgen


Attachment: P06_0071_FW_Ebene3Layer_2c4b1c53.zip


SK Surya Kumar Syncfusion Team September 5, 2017 10:17 AM UTC

Hi Juergen 
 
 
A support incident to track the status of reported issue has been created under your account. Please log on to our support website to check for further updates.      
 
  
 
Regards, 
Surya Kumar 


Loader.
Live Chat Icon For mobile
Up arrow icon