/palas-basic:removing-notebooklm — Remove NotebookLM Watermark
IMPORTANT: Before starting execution, inform the user: "ESTOY EJECUTANDO EL SKILL /palas-basic:removing-notebooklm"
Remove the NotebookLM watermark from PDFs and images automatically.
Usage
/palas:removing-notebooklm <file> [--output <path>]
Arguments:
file(Required): Input file to process- PDF: Multi-page presentations (e.g.,
presentation.pdf) - PNG/JPG: Single images/infographics (e.g.,
infographic.png)
- PDF: Multi-page presentations (e.g.,
--output(Optional): Custom output path (default:{name}_clean.{ext})
No argument = show this usage.
Environment Setup
This skill uses zero-footprint dependency management:
- Python scripts: Executed via
uv runwith PEP 723 inline metadata — norequirements.txtor.venvneeded
Prerequisites (must be installed on the system):
No per-project setup required. Dependencies are cached globally and resolved on first run.
Dependencies (declared inline in script)
Pillow— Image processingpymupdf— PDF processingopencv-python— Inpainting algorithmnumpy— Array operations
Command
Replace <plugin-path> with the actual path to this plugin's installation directory.
# Default output (adds _clean suffix)
uv run <plugin-path>/skills/removing-notebooklm/scripts/removing-notebooklm.py "<file>"
# Custom output path
uv run <plugin-path>/skills/removing-notebooklm/scripts/removing-notebooklm.py "<file>" --output "<output>"
Examples
/palas:removing-notebooklm presentation.pdf
-> Creates presentation_clean.pdf
/palas:removing-notebooklm infographic.png
-> Creates infographic_clean.png
/palas:removing-notebooklm input.pdf --output final.pdf
-> Creates final.pdf
Output Format
Processing PDF: presentation.pdf
Pages: 12
Page 1/12
Page 2/12
...
Page 12/12
Saved: presentation_clean.pdf
Done
How It Works
Watermark Specifications
| Property | Value |
|---|---|
| Size | 194 x 28 pixels (at 2x) |
| Position | Bottom-right corner |
| PDF margins | 18px right, 16px bottom |
| Image margins | 9px right, 10px bottom |
Inpainting Algorithm
Uses OpenCV's Telea inpainting algorithm to seamlessly reconstruct the background:
- Creates a mask over the watermark area
- Propagates surrounding pixels into the masked region
- Works with complex backgrounds (textures, patterns, gradients)
Supported Formats
| Type | Extensions | Processing |
|---|---|---|
.pdf |
All pages | |
| Image | .png, .jpg |
Single file |
Behavior
- Check argument: If no file provided, show usage and exit
- Validate file: Check file exists and format is supported
- Process file: Remove watermark using appropriate method
- Save output:
{original_name}_clean.{extension}
Notes
- Output file is saved in the same directory as input
- Original file is not modified
- Requires:
uvinstalled on system - No
.venvcreated—dependencies cached globally by uv