py-pdf / py-pdf/pdfly

feat: Manipulate layers / optional content

Open
#190 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
571
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing CLI command entry points and how PDF manipulation commands are structured. Define the scope of a proposed layers command around listing, toggling visibility, deleting layers, and copying layers to a new file. Done should include documented command behavior and coverage for the requested operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.