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 Apr 25, 2025 1:48 pm

Hi!

I have a document with non-layered contents, and a layer with additional contents. Actually, the layer and it contents were created with Spire (doc.Layers.AddLayer/layer.CreateGraphics/canvas.Draw) :wink:
Now I need to copy that layered content to another document.
I have copied entire pages before (page.CreateTemplate/template.Draw...), but that copies layered and non-layered content alike.
Is there a way to just copy or create a template from the layer?
Alternatively, how can I delete all non-layered content before creating the template?
(if it were the other way around, I could just delete the layer before creating the template, but it's just the layer I want to keep)

Hope someone knows a way; any suggestions welcome

kristofvdw
 
Posts: 3
Joined: Fri Apr 25, 2025 1:27 pm

Sun Apr 27, 2025 6:54 am

Hello,

Thanks for your inquiry.
Sorry, our Spire.PDF does not support copying PDFLayer yet. However, we have added it to our update list with the tikcet SPIREPDF-6943. Our development team will further investigate whether it can be implemented. If there is any progress, we will inform you as soon as possible.

Sincerely,
Tommy
E-iceblue support team
User avatar

Tommy.Tang
 
Posts: 85
Joined: Mon Apr 21, 2025 7:05 am

Mon Apr 28, 2025 6:27 am

Sorry to hear that, but thanks for adding it to the update list.

Regards,
K.

kristofvdw
 
Posts: 3
Joined: Fri Apr 25, 2025 1:27 pm

Return to Spire.PDF

cron