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.

Thu Jun 17, 2021 1:37 am

We are trying to create a pdf with 2 layers Sprire pdf for java . The layers are getting created but they are not the top level layers as we expected.
The layers created are under Layer1 when pdf is opened in Adobe Illustrator.(shown in current layers.png)

The hierarchy we are trying to achieve with layering is shown in (expected.png). Please let us know if/how we can achieve this.

Thanks

chaitest
 
Posts: 1
Joined: Sat Jun 05, 2021 6:51 am

Thu Jun 17, 2021 7:48 am

Hello,

Thanks for your inquiry.
Kindly note that Adobe Illustrator is not a tool specifically used to view PDF documents, it is not based on the PDF Standard to parse PDF documents.
Our Spire.PDF for Java follows PDF Standard. For the PDF file generated by our Spire.PDF, if you open it with a PDF reader tool (e.g. Adobe Reader), it will display layers similar to your first screenshot.

We are sorry that our Spire.PDF is unable to achieve your requirement. If you have any other questions, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF