NotebookLM PDF Cleaner
Use this skill for NotebookLM slide-deck PDFs that contain the small visible NotebookLM footer badge in the bottom-right corner.
Default behavior
The default behavior is intentionally narrow and safe:
- - keep the original PDF unchanged
- write a new
*-clean.pdf copy - mask the small bottom-right NotebookLM footer area on each page
It does not remove arbitrary watermarks or redesign slides.
Script
CODEBLOCK0
By default it writes:
CODEBLOCK1
Useful flags
CODEBLOCK2
Safety checks
- - Refuse non-PDF input
- Refuse overwrite of the source file
- Refuse overwrite of an existing output unless
--force is used - Keep metadata/annotation stripping off by default
Defaults
The default mask is tuned for common 16:9 NotebookLM slide-deck exports:
- - INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
These values are scaled automatically for each page size.
Recommended workflow
- 1. Keep the original PDF
- Create INLINECODE6
- Spot-check page 1 and one later page
- If needed, adjust the mask values and rerun
- Share or email the cleaned copy
NotebookLM PDF 清洁工具
使用此技能处理NotebookLM幻灯片PDF,这些PDF在右下角包含可见的小型NotebookLM页脚徽标。
默认行为
默认行为刻意保持狭窄且安全:
- - 保留原始PDF不变
- 写入新的*-clean.pdf副本
- 在每页上遮盖右下角的小型NotebookLM页脚区域
它不会移除任意水印或重新设计幻灯片。
脚本
bash
python3 {baseDir}/scripts/cleannotebooklmpdf.py /path/to/input.pdf
默认情况下,它会写入:
bash
/path/to/input-clean.pdf
实用标志
bash
显式输出路径
python3 {baseDir}/scripts/clean
notebooklmpdf.py in.pdf --out out.pdf
仅检查(不写入输出文件)
python3 {baseDir}/scripts/clean
notebooklmpdf.py in.pdf --inspect
以PDF点为单位调整右下角页脚遮罩(原点为左下角)
python3 {baseDir}/scripts/clean
notebooklmpdf.py in.pdf --mask-x 1208 --mask-y 0 --mask-w 168 --mask-h 32
可选的高级清理标志
python3 {baseDir}/scripts/clean
notebooklmpdf.py in.pdf --strip-metadata --strip-annots
安全检查
- - 拒绝非PDF输入
- 拒绝覆盖源文件
- 拒绝覆盖现有输出(除非使用--force)
- 默认关闭元数据/注释剥离功能
默认值
默认遮罩针对常见的16:9 NotebookLM幻灯片导出进行了优化:
- - mask-x = 1208
- mask-y = 0
- mask-w = 168
- mask-h = 32
这些值会根据每个页面尺寸自动缩放。
推荐工作流程
- 1. 保留原始PDF
- 创建*-clean.pdf
- 抽查第1页和后续某一页
- 如有需要,调整遮罩值并重新运行
- 分享或通过电子邮件发送清洁后的副本