Print Page | Close Window

Merge PDF with Layers

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3875
Printed Date: 13 Jun 25 at 8:59AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Merge PDF with Layers
Posted By: ventumsoft
Subject: Merge PDF with Layers
Date Posted: 12 Jan 21 at 3:46PM
Hello everyone!
I am using QuickPDF V18 under a trial license.
I am trying to combine several PDF files into one. These PDF files have layers. When merging, the layers remain only in the first file, the layers disappear in the rest. Is there some way to fix this?
I will be grateful to everyone!



Replies:
Posted By: Ingo
Date Posted: 12 Jan 21 at 10:30PM
Hi Sergey,

"combine" is the key ;-)
After Load of each pdf try...
NormalizePage:
https://www.debenu.com/docs/pdf_library_reference/NormalizePage.php
CombineContentStreams:
https://www.debenu.com/docs/pdf_library_reference/CombineContentStreams.php
...and then do the concatenation of the files.

Cheers and welcome here,
Ingo

Reference guide:
https://www.debenu.com/docs/pdf_library_reference/FunctionGroups.php
Developer guide:
http://www.debenu.com/docs/pdf_library_developer_guide/foxit_quick_pdf_library_15_developer_guide.pdf



-------------
Cheers,
Ingo



Posted By: ventumsoft
Date Posted: 13 Jan 21 at 2:09AM
Thank you so much Ingo, for your answer!

My mistake is that I wrote "Layers". After reading the documentation, I realized that the correct term is OCG (Optional Content Groups)


I need to save OCG in each of the merged PDFs.  Content stream manipulation doesn't help. Probably need to work directly with OSG . But there is no combination function for OCG . Maybe there is a solution for this OCG probleml?


Posted By: Ingo
Date Posted: 13 Jan 21 at 7:29PM
Try this search:
https://www.debenu.com/docs/pdf_library_reference/Search.php
...and insert OCG in the search field.
The search result will be large enough - perhaps there's something which feed your needs.



-------------
Cheers,
Ingo



Posted By: Ingo
Date Posted: 15 Jan 21 at 6:42PM
Originally posted by ventumsoft ventumsoft wrote:

Thank you so much Ingo, for your answer!

My mistake is that I wrote "Layers". After reading the documentation, I realized that the correct term is OCG (Optional Content Groups)


I need to save OCG in each of the merged PDFs.  Content stream manipulation doesn't help. Probably need to work directly with OSG . But there is no combination function for OCG . Maybe there is a solution for this OCG probleml?


Regarding OCG you'll find a lot of interesting informations inside the developer guide...



-------------
Cheers,
Ingo



Posted By: maratovich
Date Posted: 02 Feb 21 at 6:52PM
The problem is that the MergeFileList is being used.
At the same time, it is impossible to do something with the files before merging.
And for reference, the described "combine" commands do not fix it at all.
After merging the layers are only on the first page, they are lost on the rest.
So I am not using new versions yet, there are no useful fixes.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk