Is there a way to use Python to create a multiple layers PDF. But not merge.
I think the multiple layers PDF means there is more than one layers in a page and I can select which layer to show in Acrobat.
Here is a document I find about layered PDF: http://www.open.ac.uk/opencetl/files/opencetl/file/ecms/web-content/Multi-pdf-how-to-%20file.pdf
And an example of layered PDF: http://www.talkgraphics.com/attachment.php?s=1901864ddbe7b63f672440daffc3907e&attachmentid=76844&d=1285324919
From what I can tell, neither Reportlab nor pypdf have mechanisms to create the blocks of marked content necessary to implement layers (or Optional Content Groups).
I have created such using IronPython and Datalogics .Net interface to APDFL. There is also a Java interface, so you could do the same with Jython.
The technique is basically that you create an OptionalContentGroup for your layer, you then add the content that you want in your layer to a container, and you set the Container's OptionalContentMembershipDict to an OptionalContentMemberDict that connects the two.
Where labelContainer is a Container Element I had added to the Content of my page.
Disclosure: I work for Datalogics.