[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFM7SBH6RBY9M5B923ZE7Y":3,"skill-same:01M6KFM7SBH6RBY9M5B923ZE7Y":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6KFM7SBH6RBY9M5B923ZE7Y","pandoc-pdf-error-recovery",null,"Systematic approach to diagnose and recover from pandoc PDF conversion unknown errors","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34],"PDF","error recovery","recovery","pandoc","error","pandoc pdf error recovery","diagnose","conversion","systematic","errors","unknown","2026-11-10 10:12:30",false,"---\nname: pandoc-pdf-error-recovery\ndescription: Systematic approach to diagnose and recover from pandoc PDF conversion unknown errors\n---\n\n# Pandoc PDF Error Recovery\n\n## Overview\n\nWhen pandoc fails to convert documents to PDF with an \"unknown error\" or similar vague message, follow this systematic diagnostic and recovery workflow.\n\n## Step-by-Step Procedure\n\n### 1. Verify Pandoc Installation\n\nFirst confirm pandoc is installed and accessible:\n\n```bash\npandoc --version\n```\n\nIf this fails, install pandoc before proceeding:\n- macOS: `brew install pandoc`\n- Linux: `sudo apt-get install pandoc` or `sudo yum install pandoc`\n- Windows: Download from https:\u002F\u002Fpandoc.org\u002Finstalling.html\n\n### 2. Check Available PDF Engines\n\nIdentify which PDF rendering engines are available on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf context\n```\n\nCommon engines and their typical use cases:\n- **pdflatex**: Standard LaTeX, fast but limited Unicode support\n- **xelatex**: Full Unicode support, recommended for most modern documents\n- **lualatex**: Lua scripting support, good for complex layouts\n- **wkhtmltopdf**: HTML\u002FCSS rendering, good for web-style documents\n- **context**: ConTeXt typesetting system\n\n### 3. Attempt Conversion with Explicit Engine\n\nTry conversion with xelatex first (most versatile for general documents):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\nThe `2>&1 | tee` pattern captures both stdout and stderr to a log file for analysis.\n\n### 4. Analyze Error Output\n\nIf conversion fails, examine the captured log:\n\n```bash\ncat conversion.log\n```\n\nCommon error patterns and solutions:\n- **Missing LaTeX packages**: Install with `tlmgr install \u003Cpackage>` or system package manager\n- **Font issues**: Specify fonts with `-V mainfont=\"Font Name\"`\n- **Missing engine**: Fall back to available engine (go to Step 5)\n\n### 5. Try Alternative Engines\n\nSystematically try other available engines:\n\n```bash\n# Fallback to pdflatex\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1 | tee conversion-pdflatex.log\n\n# Or try wkhtmltopdf for HTML-rich content\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1 | tee conversion-wkhtmltopdf.log\n\n# Or try lualatex for complex documents\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1 | tee conversion-lualatex.log\n```\n\n### 6. Install Missing Dependencies\n\nIf all engines fail or are missing, install required packages:\n\n```bash\n# Full TeX Live installation (comprehensive but large)\nsudo apt-get install texlive-full\n\n# Or minimal installation with common packages\nsudo apt-get install texlive-latex-base texlive-fonts-recommended\n\n# For xelatex font support\nsudo apt-get install fonts-noto fonts-dejavu\n```\n\n### 7. Simplify and Retry\n\nIf errors persist, try conversion with minimal options:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex --standalone\n```\n\nRemove complex formatting, custom headers, or advanced LaTeX features that may be causing issues.\n\n## Quick Reference Command\n\nComplete diagnostic one-liner:\n\n```bash\npandoc --version && which pdflatex xelatex wkhtmltopdf && pandoc input.md -o output.pdf --pdf-engine=xelatex -v\n```\n\n## Tips\n\n- Always capture stderr (`2>&1`) to see the actual error message\n- Use `-v` (verbose) flag for more detailed output during troubleshooting\n- For non-English documents, xelatex or lualatex are usually required\n- HTML\u002FCSS-heavy documents may work better with wkhtmltopdf\n- Check system disk space - PDF generation can require significant temporary space","# Pandoc PDF Error Recovery\n\n## Overview\n\nWhen pandoc fails to convert documents to PDF with an \"unknown error\" or similar vague message, follow this systematic diagnostic and recovery workflow.\n\n## Step-by-Step Procedure\n\n### 1. Verify Pandoc Installation\n\nFirst confirm pandoc is installed and accessible:\n\n```bash\npandoc --version\n```\n\nIf this fails, install pandoc before proceeding:\n- macOS: `brew install pandoc`\n- Linux: `sudo apt-get install pandoc` or `sudo yum install pandoc`\n- Windows: Download from https:\u002F\u002Fpandoc.org\u002Finstalling.html\n\n### 2. Check Available PDF Engines\n\nIdentify which PDF rendering engines are available on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf context\n```\n\nCommon engines and their typical use cases:\n- **pdflatex**: Standard LaTeX, fast but limited Unicode support\n- **xelatex**: Full Unicode support, recommended for most modern documents\n- **lualatex**: Lua scripting support, good for complex layouts\n- **wkhtmltopdf**: HTML\u002FCSS rendering, good for web-style documents\n- **context**: ConTeXt typesetting system\n\n### 3. Attempt Conversion with Explicit Engine\n\nTry conversion with xelatex first (most versatile for general documents):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\nThe `2>&1 | tee` pattern captures both stdout and stderr to a log file for analysis.\n\n### 4. Analyze Error Output\n\nIf conversion fails, examine the captured log:\n\n```bash\ncat conversion.log\n```\n\nCommon error patterns and solutions:\n- **Missing LaTeX packages**: Install with `tlmgr install \u003Cpackage>` or system package manager\n- **Font issues**: Specify fonts with `-V mainfont=\"Font Name\"`\n- **Missing engine**: Fall back to available engine (go to Step 5)\n\n### 5. Try Alternative Engines\n\nSystematically try other available engines:\n\n```bash\n# Fallback to pdflatex\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1 | tee conversion-pdflatex.log\n\n# Or try wkhtmltopdf for HTML-rich content\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1 | tee conversion-wkhtmltopdf.log\n\n# Or try lualatex for complex documents\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1 | tee conversion-lualatex.log\n```\n\n### 6. Install Missing Dependencies\n\nIf all engines fail or are missing, install required packages:\n\n```bash\n# Full TeX Live installation (comprehensive but large)\nsudo apt-get install texlive-full\n\n# Or minimal installation with common packages\nsudo apt-get install texlive-latex-base texlive-fonts-recommended\n\n# For xelatex font support\nsudo apt-get install fonts-noto fonts-dejavu\n```\n\n### 7. Simplify and Retry\n\nIf errors persist, try conversion with minimal options:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex --standalone\n```\n\nRemove complex formatting, custom headers, or advanced LaTeX features that may be causing issues.\n\n## Quick Reference Command\n\nComplete diagnostic one-liner:\n\n```bash\npandoc --version && which pdflatex xelatex wkhtmltopdf && pandoc input.md -o output.pdf --pdf-engine=xelatex -v\n```\n\n## Tips\n\n- Always capture stderr (`2>&1`) to see the actual error message\n- Use `-v` (verbose) flag for more detailed output during troubleshooting\n- For non-English documents, xelatex or lualatex are usually required\n- HTML\u002FCSS-heavy documents may work better with wkhtmltopdf\n- Check system disk space - PDF generation can require significant temporary space",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-recovery",{"tool":54,"command":55},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-recovery",{"tool":57,"command":58},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-recovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery\u002FSKILL.md",true,[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},".skill_id","OTHER","其他",39,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery\u002F.skill_id",[69,82,90,106,132,152],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":35},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[76,77,78,79,80,81],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":35},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[89,77,79,80,81],"zip deliverable finalization",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":35},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[97,98,99,100,101,102,103,104,81,105],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":117,"publishedAt":35},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[112],{"categoryNo":113,"categoryName":114,"taxonomyType":115,"taxonomyTypeDesc":116},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[118,119,120,121,122,123,124,125,126,127,128,129,130,131],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":141,"publishedAt":35},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[138],{"categoryNo":139,"categoryName":140,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[142,102,118,143,144,145,129,127,120,146,147,148,119,149,124,150,151],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":159,"publishedAt":35},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[158],{"categoryNo":113,"categoryName":114,"taxonomyType":115,"taxonomyTypeDesc":116},[118,121,160,161,127,120,162,163,119,164,165,126,102,166,129],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]