{"id":"7fb8e39f-4a2a-4ae9-a779-04b3f795e9f6","shortId":"t7sFeS","kind":"skill","title":"pdftk-server","tagline":"Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Use when asked to merge PDFs, split PDFs, rotate pages, encrypt or decrypt PDFs, fill PDF forms, apply watermarks, stamp overlays, extract metadata, burst documents into pages, repair corrupted","description":"# PDFtk Server\n\nPDFtk Server is a command-line tool for working with PDF documents. It can merge, split, rotate, encrypt, decrypt, watermark, stamp, fill forms, extract metadata, and manipulate PDFs in a variety of ways.\n\n## When to Use This Skill\n\n- Merging or joining multiple PDF files into one\n- Splitting or bursting a PDF into individual pages\n- Rotating PDF pages\n- Encrypting or decrypting PDF files\n- Filling PDF form fields from FDF/XFDF data\n- Applying background watermarks or foreground stamps\n- Extracting PDF metadata, bookmarks, or form field information\n- Repairing corrupted PDF files\n- Attaching or extracting files embedded in PDFs\n- Removing specific pages from a PDF\n- Collating separately scanned even/odd pages\n- Compressing or decompressing PDF page streams\n\n## Prerequisites\n\n- PDFtk Server must be installed on the system\n  - **Windows**: `winget install --id PDFLabs.PDFtk.Server`\n  - **macOS**: `brew install pdftk-java`\n  - **Linux (Debian/Ubuntu)**: `sudo apt-get install pdftk`\n  - **Linux (Red Hat/Fedora)**: `sudo dnf install pdftk`\n- Access to a terminal or command prompt\n- Verify installation by running `pdftk --version`\n\n## Step-by-Step Workflows\n\n### Merge Multiple PDFs\n\n```bash\npdftk file1.pdf file2.pdf cat output merged.pdf\n```\n\nUsing handles for more control:\n\n```bash\npdftk A=file1.pdf B=file2.pdf cat A B output merged.pdf\n```\n\n### Split a PDF into Individual Pages\n\n```bash\npdftk input.pdf burst\n```\n\n### Extract Specific Pages\n\nExtract pages 1-5 and 10-15:\n\n```bash\npdftk input.pdf cat 1-5 10-15 output extracted.pdf\n```\n\n### Remove Specific Pages\n\nRemove page 13:\n\n```bash\npdftk input.pdf cat 1-12 14-end output output.pdf\n```\n\n### Rotate Pages\n\nRotate all pages 90 degrees clockwise:\n\n```bash\npdftk input.pdf cat 1-endeast output rotated.pdf\n```\n\n### Encrypt a PDF\n\nSet an owner password and a user password with 128-bit encryption (default):\n\n```bash\npdftk input.pdf output secured.pdf owner_pw mypassword user_pw userpass\n```\n\n### Decrypt a PDF\n\nRemove encryption using the known password:\n\n```bash\npdftk secured.pdf input_pw mypassword output unsecured.pdf\n```\n\n### Fill a PDF Form\n\nPopulate form fields from an FDF file and flatten to prevent further edits:\n\n```bash\npdftk form.pdf fill_form data.fdf output filled.pdf flatten\n```\n\n### Apply a Background Watermark\n\nPlace a single-page PDF behind every page of the input (input should have transparency):\n\n```bash\npdftk input.pdf background watermark.pdf output watermarked.pdf\n```\n\n### Stamp an Overlay\n\nPlace a single-page PDF on top of every page of the input:\n\n```bash\npdftk input.pdf stamp overlay.pdf output stamped.pdf\n```\n\n### Extract Metadata\n\nExport bookmarks, page metrics, and document information:\n\n```bash\npdftk input.pdf dump_data output metadata.txt\n```\n\n### Repair a Corrupted PDF\n\nPass a broken PDF through pdftk to attempt automatic repair:\n\n```bash\npdftk broken.pdf output fixed.pdf\n```\n\n### Collate Scanned Pages\n\nInterleave separately scanned even and odd pages:\n\n```bash\npdftk A=even.pdf B=odd.pdf shuffle A B output collated.pdf\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| `pdftk` command not found | Verify installation; check that pdftk is in your system PATH |\n| Cannot decrypt PDF | Ensure you are providing the correct owner or user password via `input_pw` |\n| Output file is empty or corrupt | Check input file integrity; try running `pdftk input.pdf output repaired.pdf` first |\n| Form fields not visible after fill | Use the `flatten` flag to merge fields into the page content |\n| Watermark not appearing | Ensure the input PDF has transparent regions; use `stamp` for opaque overlays |\n| Permission denied errors | Check file permissions on input and output paths |\n\n## References\n\nBundled reference documents in the `references/` folder:\n\n- [pdftk-man-page.md](references/pdftk-man-page.md) - Complete manual reference with all operations, options, and syntax\n- [pdftk-cli-examples.md](references/pdftk-cli-examples.md) - Practical command-line examples for common tasks\n- [download.md](references/download.md) - Installation and download instructions for all platforms\n- [pdftk-server-license.md](references/pdftk-server-license.md) - PDFtk Server licensing information\n- [third-party-materials.md](references/third-party-materials.md) - Third-party library licenses","tags":["pdftk","server","awesome","copilot","github","agent-skills","agents","custom-agents","github-copilot","hacktoberfest","prompt-engineering"],"capabilities":["skill","source-github","skill-pdftk-server","topic-agent-skills","topic-agents","topic-awesome","topic-custom-agents","topic-github-copilot","topic-hacktoberfest","topic-prompt-engineering"],"categories":["awesome-copilot"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/github/awesome-copilot/pdftk-server","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add github/awesome-copilot","source_repo":"https://github.com/github/awesome-copilot","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 33270 github stars · SKILL.md body (4,332 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T18:52:19.092Z","embedding":null,"createdAt":"2026-04-18T20:25:47.486Z","updatedAt":"2026-05-18T18:52:19.092Z","lastSeenAt":"2026-05-18T18:52:19.092Z","tsv":"'-12':283 '-15':261,269 '-5':258,267 '1':257,266,282,300 '10':260,268 '128':316 '13':277 '14':284 '90':293 'access':198 'appear':550 'appli':37,121,374 'apt':187 'apt-get':186 'ask':22 'attach':139 'attempt':452 'automat':453 'b':235,239,474,478 'background':122,376,397 'bash':219,231,248,262,278,296,320,340,365,394,418,434,455,470 'behind':384 'bit':317 'bookmark':130,428 'brew':178 'broken':447 'broken.pdf':457 'bundl':575 'burst':43,100,251 'cannot':498 'cat':223,237,265,281,299 'check':490,520,566 'clockwis':295 'collat':152,460 'collated.pdf':480 'command':9,56,203,485,597 'command-lin':8,55,596 'common':601 'complet':584 'compress':157 'content':547 'control':230 'correct':506 'corrupt':48,136,443,519 'data':120,438 'data.fdf':370 'debian/ubuntu':184 'decompress':159 'decrypt':32,70,111,331,499 'default':319 'degre':294 'deni':564 'dnf':195 'document':44,63,432,577 'download':607 'download.md':603 'dump':437 'edit':364 'embed':143 'empti':517 'encrypt':30,69,109,304,318,335 'end':285 'endeast':301 'ensur':501,551 'error':565 'even':466 'even.pdf':473 'even/odd':155 'everi':385,413 'exampl':599 'export':427 'extract':41,75,127,141,252,255,425 'extracted.pdf':271 'fdf':357 'fdf/xfdf':119 'field':117,133,354,532,543 'file':19,95,113,138,142,358,515,522,567 'file1.pdf':221,234 'file2.pdf':222,236 'fill':34,73,114,348,368,536 'filled.pdf':372 'first':530 'fixed.pdf':459 'flag':540 'flatten':360,373,539 'folder':581 'foreground':125 'form':36,74,116,132,351,353,369,531 'form.pdf':367 'found':487 'get':188 'handl':227 'hat/fedora':193 'id':175 'individu':104,246 'inform':134,433,617 'input':343,389,390,417,512,521,553,570 'input.pdf':250,264,280,298,322,396,420,436,527 'instal':168,174,179,189,196,206,489,605 'instruct':608 'integr':523 'interleav':463 'issu':482 'java':182 'join':92 'known':338 'librari':623 'licens':616,624 'line':10,57,598 'linux':183,191 'maco':177 'manipul':78 'manual':585 'merg':24,66,90,216,542 'merged.pdf':225,241 'metadata':42,76,129,426 'metadata.txt':440 'metric':430 'multipl':93,217 'must':166 'mypassword':327,345 'odd':468 'odd.pdf':475 'one':97 'opaqu':561 'oper':589 'option':590 'output':224,240,270,286,302,323,346,371,399,423,439,458,479,514,528,572 'output.pdf':287 'overlay':40,403,562 'overlay.pdf':422 'owner':309,325,507 'page':29,46,105,108,148,156,161,247,254,256,274,276,289,292,382,386,408,414,429,462,469,546 'parti':622 'pass':445 'password':310,314,339,510 'path':497,573 'pdf':18,35,62,94,102,107,112,115,128,137,151,160,244,306,333,350,383,409,444,448,500,554 'pdflabs.pdftk.server':176 'pdfs':25,27,33,79,145,218 'pdftk':2,12,13,49,51,164,181,190,197,209,220,232,249,263,279,297,321,341,366,395,419,435,450,456,471,484,492,526,614 'pdftk-cli-examples.md':593 'pdftk-java':180 'pdftk-man-page.md':582 'pdftk-server':1 'pdftk-server-license.md':612 'permiss':563,568 'place':378,404 'platform':611 'popul':352 'practic':595 'prerequisit':163 'prevent':362 'prompt':204 'provid':504 'pw':326,329,344,513 'red':192 'refer':574,576,580,586 'references/download.md':604 'references/pdftk-cli-examples.md':594 'references/pdftk-man-page.md':583 'references/pdftk-server-license.md':613 'references/third-party-materials.md':619 'region':557 'remov':146,272,275,334 'repair':47,135,441,454 'repaired.pdf':529 'rotat':28,68,106,288,290 'rotated.pdf':303 'run':208,525 'scan':154,461,465 'secured.pdf':324,342 'separ':153,464 'server':3,14,50,52,165,615 'set':307 'shuffl':476 'singl':381,407 'single-pag':380,406 'skill':4,89 'skill-pdftk-server' 'solut':483 'source-github' 'specif':147,253,273 'split':26,67,98,242 'stamp':39,72,126,401,421,559 'stamped.pdf':424 'step':212,214 'step-by-step':211 'stream':162 'sudo':185,194 'syntax':592 'system':171,496 'task':602 'termin':201 'third':621 'third-parti':620 'third-party-materials.md':618 'tool':11,58 'top':411 'topic-agent-skills' 'topic-agents' 'topic-awesome' 'topic-custom-agents' 'topic-github-copilot' 'topic-hacktoberfest' 'topic-prompt-engineering' 'transpar':393,556 'tri':524 'troubleshoot':481 'unsecured.pdf':347 'use':6,20,87,226,336,537,558 'user':313,328,509 'userpass':330 'varieti':82 'verifi':205,488 'version':210 'via':511 'visibl':534 'watermark':38,71,123,377,548 'watermark.pdf':398 'watermarked.pdf':400 'way':84 'window':172 'winget':173 'work':16,60 'workflow':215","prices":[{"id":"994bb8e6-1ef0-4f4c-85bc-1c7fe549af5d","listingId":"7fb8e39f-4a2a-4ae9-a779-04b3f795e9f6","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"github","category":"awesome-copilot","install_from":"skills.sh"},"createdAt":"2026-04-18T20:25:47.486Z"}],"sources":[{"listingId":"7fb8e39f-4a2a-4ae9-a779-04b3f795e9f6","source":"github","sourceId":"github/awesome-copilot/pdftk-server","sourceUrl":"https://github.com/github/awesome-copilot/tree/main/skills/pdftk-server","isPrimary":false,"firstSeenAt":"2026-04-18T21:50:25.183Z","lastSeenAt":"2026-05-18T18:52:19.092Z"},{"listingId":"7fb8e39f-4a2a-4ae9-a779-04b3f795e9f6","source":"skills_sh","sourceId":"github/awesome-copilot/pdftk-server","sourceUrl":"https://skills.sh/github/awesome-copilot/pdftk-server","isPrimary":true,"firstSeenAt":"2026-04-18T20:25:47.486Z","lastSeenAt":"2026-05-07T22:40:18.025Z"}],"details":{"listingId":"7fb8e39f-4a2a-4ae9-a779-04b3f795e9f6","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"github","slug":"pdftk-server","github":{"repo":"github/awesome-copilot","stars":33270,"topics":["agent-skills","agents","ai","awesome","custom-agents","github-copilot","hacktoberfest","prompt-engineering"],"license":"mit","html_url":"https://github.com/github/awesome-copilot","pushed_at":"2026-05-18T01:26:59Z","description":"Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.","skill_md_sha":"5bdf313dc8f686ff4af18134f361e79df0755292","skill_md_path":"skills/pdftk-server/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/github/awesome-copilot/tree/main/skills/pdftk-server"},"layout":"multi","source":"github","category":"awesome-copilot","frontmatter":{"name":"pdftk-server","description":"Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Use when asked to merge PDFs, split PDFs, rotate pages, encrypt or decrypt PDFs, fill PDF forms, apply watermarks, stamp overlays, extract metadata, burst documents into pages, repair corrupted PDFs, attach or extract files, or perform any PDF manipulation from the command line."},"skills_sh_url":"https://skills.sh/github/awesome-copilot/pdftk-server"},"updatedAt":"2026-05-18T18:52:19.092Z"}}