Transform PDF documents into engaging video presentations with smooth animations.
Transform PDF documents into engaging video presentations with smooth animations.
https://github.com/user-attachments/assets/464622be-c855-42c6-bc9e-988350906d92
Multiple Scene Types
stack - Card stack display with entrance animationfocus - Extract and zoom into a specific page with scroll supportswitch - Smooth page transitions with slide animationsfan - Fan/wheel layout with rotation and focus effectsSmart Animations
Title System
Bottom Info Bar
Ending Scene
Dynamic Duration
Background Music
High Quality Rendering
npm installPlace your PDF and background music in the public/ folder:
# PDF document
cp /path/to/your/document.pdf public/sample.pdf
# Background music (optional)
cp /path/to/your/music.mp3 public/background.mp3npm run dev
# Preview with custom props
npx remotion preview --props=./props/example.jsonnpm run build
# Render with custom props
npx remotion render PdfShowcase out/example.mp4 --props=./props/example.json{
src: "/sample.pdf", // PDF file path (in public folder)
title: "Document Title", // Main title
subtitle: "Subtitle", // Optional subtitle
highlights: [1, 3, 5], // Pages to showcase
pageTitles: { // Per-page titles
"1": "Cover",
"3": "Key Points",
"5": "Summary",
},
pageDescriptions: { // Per-page descriptions (typing effect)
"1": "Introduction to the document...",
"3": "The core findings are...",
"5": "In conclusion...",
},
}Full control over the presentation flow:
{
src: "/sample.pdf",
title: "Custom Flow",
script: [
{ type: "stack", duration: 60 }, // Stack display
{ type: "focus", page: 1, duration: 120 }, // Focus page 1
{ type: "switch", page: 3, duration: 120 }, // Switch to page 3
{ type: "fan", page: 5, duration: 150 }, // Fan mode for page 5
{ type: "stack", duration: 120 }, // Ending stack
],
}| Type | Description | Default Duration |
|---|---|---|
stack |
Card stack display | 60 frames |
focus |
Zoom into a page | 120 frames |
switch |
Slide transition | 120 frames |
fan |
Fan wheel layout | 150 frames |
{
"src": "/sample.pdf",
"title": "Technical Report",
"subtitle": "Key Insights",
"highlights": [1, 3, 9, 14, 20],
"pageTitles": {
"1": "Abstract",
"3": "Architecture",
"9": "Training",
"14": "Results",
"20": "Conclusion"
},
"pageDescriptions": {
"1": "Overview of the technical approach...",
"3": "The system architecture consists of...",
"9": "Training process involves...",
"14": "Benchmark results show...",
"20": "Key takeaways include..."
}
}{
"src": "/sample.pdf",
"title": "Technical Report",
"subtitle": "Key Insights",
"script": [
{ "type": "stack", "duration": 60 },
{ "type": "fan", "page": 1, "duration": 150 },
{ "type": "fan", "page": 3, "duration": 150 },
{ "type": "fan", "page": 9, "duration": 150 },
{ "type": "stack", "duration": 120 }
]
}This project includes a Claude Code skill (.claude/skills/pdf-to-video/) for automated PDF to video conversion.
The skill is already in the correct location. If you want to use it globally, copy to your home directory:
cp -r .claude/skills/pdf-to-video ~/.claude/skills/Once installed, simply tell Claude:
"帮我把这个 PDF 转成展示视频:/path/to/document.pdf"
Claude will:
…MIT
No open issues yet, or sync has not completed.