Skip to content

feat: Manipulate layers / optional content #190

@p-vdp

Description

@p-vdp

Please explain your intent
The ability to turn layers on/off, delete layers, and copy layers to a new file

Describe the solution you'd like
A new command layers, perhaps something like:

> pdfly layers doc.pdf --list
['layer1': {'visible': True}, 'layer2': {'visible': True}]
> pdfly layers doc.pdf --off layer1
layer1 turned off
> pdfly layers doc.pdf --list
['layer1': {'visible': False}, 'layer2': {'visible': True}]
> pdfly layers doc.pdf --del layer2
layer2 deleted
> pdfly layers doc.pdf --list
['layer1': {'visible': False}]

Additional context
I'm interested in working on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions