[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-labs-pdf":3,"mdc-rqerek-key":44,"related-org-aws-labs-pdf":2342,"related-repo-aws-labs-pdf":2513},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":39,"sourceUrl":42,"mdContent":43},"pdf","process and manipulate PDF documents","Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text\u002Ftables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting\u002Fdecrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"aws-labs","AWS Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws-labs.png","awslabs",[13,16,19],{"name":14,"slug":4,"type":15},"PDF","tag",{"name":17,"slug":18,"type":15},"Automation","automation",{"name":20,"slug":21,"type":15},"Documents","documents",3176,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-samples","2026-07-12T08:41:44.135656","Proprietary. LICENSE.txt has complete terms",1233,[28,29,30,31,32,33,34,35,36,37,38],"agent","agentic-ai","agents","authentication","bedrock","core","gateway","identity-management","memory-management","production-code","runtime",{"repoUrl":23,"stars":22,"forks":26,"topics":40,"description":41},[28,29,30,31,32,33,34,35,36,37,38],"Amazon Bedrock Agentcore accelerates AI agents into production with the scale, reliability, and security, critical to real-world deployment.","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fagentcore-samples\u002Ftree\u002FHEAD\u002F01-features\u002F07-centralize-and-govern-your-ai-infrastructure\u002F03-registry\u002F03-advanced\u002Fregistry-skills-dynamic-discovery\u002Fskills\u002Fpdf","---\nname: pdf\ndescription: Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text\u002Ftables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting\u002Fdecrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.\nlicense: Proprietary. LICENSE.txt has complete terms\n---\n\n# PDF Processing Guide\n\n## Overview\n\nThis guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.\n\n## Quick Start\n\n```python\nfrom pypdf import PdfReader, PdfWriter\n\n# Read a PDF\nreader = PdfReader(\"document.pdf\")\nprint(f\"Pages: {len(reader.pages)}\")\n\n# Extract text\ntext = \"\"\nfor page in reader.pages:\n    text += page.extract_text()\n```\n\n## Python Libraries\n\n### pypdf - Basic Operations\n\n#### Merge PDFs\n```python\nfrom pypdf import PdfWriter, PdfReader\n\nwriter = PdfWriter()\nfor pdf_file in [\"doc1.pdf\", \"doc2.pdf\", \"doc3.pdf\"]:\n    reader = PdfReader(pdf_file)\n    for page in reader.pages:\n        writer.add_page(page)\n\nwith open(\"merged.pdf\", \"wb\") as output:\n    writer.write(output)\n```\n\n#### Split PDF\n```python\nreader = PdfReader(\"input.pdf\")\nfor i, page in enumerate(reader.pages):\n    writer = PdfWriter()\n    writer.add_page(page)\n    with open(f\"page_{i+1}.pdf\", \"wb\") as output:\n        writer.write(output)\n```\n\n#### Extract Metadata\n```python\nreader = PdfReader(\"document.pdf\")\nmeta = reader.metadata\nprint(f\"Title: {meta.title}\")\nprint(f\"Author: {meta.author}\")\nprint(f\"Subject: {meta.subject}\")\nprint(f\"Creator: {meta.creator}\")\n```\n\n#### Rotate Pages\n```python\nreader = PdfReader(\"input.pdf\")\nwriter = PdfWriter()\n\npage = reader.pages[0]\npage.rotate(90)  # Rotate 90 degrees clockwise\nwriter.add_page(page)\n\nwith open(\"rotated.pdf\", \"wb\") as output:\n    writer.write(output)\n```\n\n### pdfplumber - Text and Table Extraction\n\n#### Extract Text with Layout\n```python\nimport pdfplumber\n\nwith pdfplumber.open(\"document.pdf\") as pdf:\n    for page in pdf.pages:\n        text = page.extract_text()\n        print(text)\n```\n\n#### Extract Tables\n```python\nwith pdfplumber.open(\"document.pdf\") as pdf:\n    for i, page in enumerate(pdf.pages):\n        tables = page.extract_tables()\n        for j, table in enumerate(tables):\n            print(f\"Table {j+1} on page {i+1}:\")\n            for row in table:\n                print(row)\n```\n\n#### Advanced Table Extraction\n```python\nimport pandas as pd\n\nwith pdfplumber.open(\"document.pdf\") as pdf:\n    all_tables = []\n    for page in pdf.pages:\n        tables = page.extract_tables()\n        for table in tables:\n            if table:  # Check if table is not empty\n                df = pd.DataFrame(table[1:], columns=table[0])\n                all_tables.append(df)\n\n# Combine all tables\nif all_tables:\n    combined_df = pd.concat(all_tables, ignore_index=True)\n    combined_df.to_excel(\"extracted_tables.xlsx\", index=False)\n```\n\n### reportlab - Create PDFs\n\n#### Basic PDF Creation\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"hello.pdf\", pagesize=letter)\nwidth, height = letter\n\n# Add text\nc.drawString(100, height - 100, \"Hello World!\")\nc.drawString(100, height - 120, \"This is a PDF created with reportlab\")\n\n# Add a line\nc.line(100, height - 140, 400, height - 140)\n\n# Save\nc.save()\n```\n\n#### Create PDF with Multiple Pages\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak\nfrom reportlab.lib.styles import getSampleStyleSheet\n\ndoc = SimpleDocTemplate(\"report.pdf\", pagesize=letter)\nstyles = getSampleStyleSheet()\nstory = []\n\n# Add content\ntitle = Paragraph(\"Report Title\", styles['Title'])\nstory.append(title)\nstory.append(Spacer(1, 12))\n\nbody = Paragraph(\"This is the body of the report. \" * 20, styles['Normal'])\nstory.append(body)\nstory.append(PageBreak())\n\n# Page 2\nstory.append(Paragraph(\"Page 2\", styles['Heading1']))\nstory.append(Paragraph(\"Content for page 2\", styles['Normal']))\n\n# Build PDF\ndoc.build(story)\n```\n\n#### Subscripts and Superscripts\n\n**IMPORTANT**: Never use Unicode subscript\u002Fsuperscript characters (₀₁₂₃₄₅₆₇₈₉, ⁰¹²³⁴⁵⁶⁷⁸⁹) in ReportLab PDFs. The built-in fonts do not include these glyphs, causing them to render as solid black boxes.\n\nInstead, use ReportLab's XML markup tags in Paragraph objects:\n```python\nfrom reportlab.platypus import Paragraph\nfrom reportlab.lib.styles import getSampleStyleSheet\n\nstyles = getSampleStyleSheet()\n\n# Subscripts: use \u003Csub> tag\nchemical = Paragraph(\"H\u003Csub>2\u003C\u002Fsub>O\", styles['Normal'])\n\n# Superscripts: use \u003Csuper> tag\nsquared = Paragraph(\"x\u003Csuper>2\u003C\u002Fsuper> + y\u003Csuper>2\u003C\u002Fsuper>\", styles['Normal'])\n```\n\nFor canvas-drawn text (not Paragraph objects), manually adjust font the size and position rather than using Unicode subscripts\u002Fsuperscripts.\n\n## Command-Line Tools\n\n### pdftotext (poppler-utils)\n```bash\n# Extract text\npdftotext input.pdf output.txt\n\n# Extract text preserving layout\npdftotext -layout input.pdf output.txt\n\n# Extract specific pages\npdftotext -f 1 -l 5 input.pdf output.txt  # Pages 1-5\n```\n\n### qpdf\n```bash\n# Merge PDFs\nqpdf --empty --pages file1.pdf file2.pdf -- merged.pdf\n\n# Split pages\nqpdf input.pdf --pages . 1-5 -- pages1-5.pdf\nqpdf input.pdf --pages . 6-10 -- pages6-10.pdf\n\n# Rotate pages\nqpdf input.pdf output.pdf --rotate=+90:1  # Rotate page 1 by 90 degrees\n\n# Remove password\nqpdf --password=mypassword --decrypt encrypted.pdf decrypted.pdf\n```\n\n### pdftk (if available)\n```bash\n# Merge\npdftk file1.pdf file2.pdf cat output merged.pdf\n\n# Split\npdftk input.pdf burst\n\n# Rotate\npdftk input.pdf rotate 1east output rotated.pdf\n```\n\n## Common Tasks\n\n### Extract Text from Scanned PDFs\n```python\n# Requires: pip install pytesseract pdf2image\nimport pytesseract\nfrom pdf2image import convert_from_path\n\n# Convert PDF to images\nimages = convert_from_path('scanned.pdf')\n\n# OCR each page\ntext = \"\"\nfor i, image in enumerate(images):\n    text += f\"Page {i+1}:\\n\"\n    text += pytesseract.image_to_string(image)\n    text += \"\\n\\n\"\n\nprint(text)\n```\n\n### Add Watermark\n```python\nfrom pypdf import PdfReader, PdfWriter\n\n# Create watermark (or load existing)\nwatermark = PdfReader(\"watermark.pdf\").pages[0]\n\n# Apply to all pages\nreader = PdfReader(\"document.pdf\")\nwriter = PdfWriter()\n\nfor page in reader.pages:\n    page.merge_page(watermark)\n    writer.add_page(page)\n\nwith open(\"watermarked.pdf\", \"wb\") as output:\n    writer.write(output)\n```\n\n### Extract Images\n```bash\n# Using pdfimages (poppler-utils)\npdfimages -j input.pdf output_prefix\n\n# This extracts all images as output_prefix-000.jpg, output_prefix-001.jpg, etc.\n```\n\n### Password Protection\n```python\nfrom pypdf import PdfReader, PdfWriter\n\nreader = PdfReader(\"input.pdf\")\nwriter = PdfWriter()\n\nfor page in reader.pages:\n    writer.add_page(page)\n\n# Add password\nwriter.encrypt(\"userpassword\", \"ownerpassword\")\n\nwith open(\"encrypted.pdf\", \"wb\") as output:\n    writer.write(output)\n```\n\n## Quick Reference\n\n| Task | Best Tool | Command\u002FCode |\n|------|-----------|--------------|\n| Merge PDFs | pypdf | `writer.add_page(page)` |\n| Split PDFs | pypdf | One page per file |\n| Extract text | pdfplumber | `page.extract_text()` |\n| Extract tables | pdfplumber | `page.extract_tables()` |\n| Create PDFs | reportlab | Canvas or Platypus |\n| Command line merge | qpdf | `qpdf --empty --pages ...` |\n| OCR scanned PDFs | pytesseract | Convert to image first |\n| Fill PDF forms | pdf-lib or pypdf (see FORMS.md) | See FORMS.md |\n\n## Next Steps\n\n- For advanced pypdfium2 usage, see REFERENCE.md\n- For JavaScript libraries (pdf-lib), see REFERENCE.md\n- If you need to fill out a PDF form, follow the instructions in FORMS.md\n- For troubleshooting guides, see REFERENCE.md\n",{"data":45,"body":46},{"name":4,"description":6,"license":25},{"type":47,"children":48},"root",[49,58,65,71,77,181,187,194,201,286,292,347,353,407,413,487,493,499,553,559,621,627,754,760,766,889,895,1088,1094,1105,1110,1192,1197,1203,1209,1338,1343,1560,1566,1687,1693,1699,1822,1828,1945,1951,2003,2009,2110,2116,2305,2311,2336],{"type":50,"tag":51,"props":52,"children":54},"element","h1",{"id":53},"pdf-processing-guide",[55],{"type":56,"value":57},"text","PDF Processing Guide",{"type":50,"tag":59,"props":60,"children":62},"h2",{"id":61},"overview",[63],{"type":56,"value":64},"Overview",{"type":50,"tag":66,"props":67,"children":68},"p",{},[69],{"type":56,"value":70},"This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.",{"type":50,"tag":59,"props":72,"children":74},{"id":73},"quick-start",[75],{"type":56,"value":76},"Quick Start",{"type":50,"tag":78,"props":79,"children":84},"pre",{"className":80,"code":81,"language":82,"meta":83,"style":83},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from pypdf import PdfReader, PdfWriter\n\n# Read a PDF\nreader = PdfReader(\"document.pdf\")\nprint(f\"Pages: {len(reader.pages)}\")\n\n# Extract text\ntext = \"\"\nfor page in reader.pages:\n    text += page.extract_text()\n","python","",[85],{"type":50,"tag":86,"props":87,"children":88},"code",{"__ignoreMap":83},[89,100,110,119,128,137,145,154,163,172],{"type":50,"tag":90,"props":91,"children":94},"span",{"class":92,"line":93},"line",1,[95],{"type":50,"tag":90,"props":96,"children":97},{},[98],{"type":56,"value":99},"from pypdf import PdfReader, PdfWriter\n",{"type":50,"tag":90,"props":101,"children":103},{"class":92,"line":102},2,[104],{"type":50,"tag":90,"props":105,"children":107},{"emptyLinePlaceholder":106},true,[108],{"type":56,"value":109},"\n",{"type":50,"tag":90,"props":111,"children":113},{"class":92,"line":112},3,[114],{"type":50,"tag":90,"props":115,"children":116},{},[117],{"type":56,"value":118},"# Read a PDF\n",{"type":50,"tag":90,"props":120,"children":122},{"class":92,"line":121},4,[123],{"type":50,"tag":90,"props":124,"children":125},{},[126],{"type":56,"value":127},"reader = PdfReader(\"document.pdf\")\n",{"type":50,"tag":90,"props":129,"children":131},{"class":92,"line":130},5,[132],{"type":50,"tag":90,"props":133,"children":134},{},[135],{"type":56,"value":136},"print(f\"Pages: {len(reader.pages)}\")\n",{"type":50,"tag":90,"props":138,"children":140},{"class":92,"line":139},6,[141],{"type":50,"tag":90,"props":142,"children":143},{"emptyLinePlaceholder":106},[144],{"type":56,"value":109},{"type":50,"tag":90,"props":146,"children":148},{"class":92,"line":147},7,[149],{"type":50,"tag":90,"props":150,"children":151},{},[152],{"type":56,"value":153},"# Extract text\n",{"type":50,"tag":90,"props":155,"children":157},{"class":92,"line":156},8,[158],{"type":50,"tag":90,"props":159,"children":160},{},[161],{"type":56,"value":162},"text = \"\"\n",{"type":50,"tag":90,"props":164,"children":166},{"class":92,"line":165},9,[167],{"type":50,"tag":90,"props":168,"children":169},{},[170],{"type":56,"value":171},"for page in reader.pages:\n",{"type":50,"tag":90,"props":173,"children":175},{"class":92,"line":174},10,[176],{"type":50,"tag":90,"props":177,"children":178},{},[179],{"type":56,"value":180},"    text += page.extract_text()\n",{"type":50,"tag":59,"props":182,"children":184},{"id":183},"python-libraries",[185],{"type":56,"value":186},"Python Libraries",{"type":50,"tag":188,"props":189,"children":191},"h3",{"id":190},"pypdf-basic-operations",[192],{"type":56,"value":193},"pypdf - Basic Operations",{"type":50,"tag":195,"props":196,"children":198},"h4",{"id":197},"merge-pdfs",[199],{"type":56,"value":200},"Merge PDFs",{"type":50,"tag":78,"props":202,"children":204},{"className":80,"code":203,"language":82,"meta":83,"style":83},"from pypdf import PdfWriter, PdfReader\n\nwriter = PdfWriter()\nfor pdf_file in [\"doc1.pdf\", \"doc2.pdf\", \"doc3.pdf\"]:\n    reader = PdfReader(pdf_file)\n    for page in reader.pages:\n        writer.add_page(page)\n\nwith open(\"merged.pdf\", \"wb\") as output:\n    writer.write(output)\n",[205],{"type":50,"tag":86,"props":206,"children":207},{"__ignoreMap":83},[208,216,223,231,239,247,255,263,270,278],{"type":50,"tag":90,"props":209,"children":210},{"class":92,"line":93},[211],{"type":50,"tag":90,"props":212,"children":213},{},[214],{"type":56,"value":215},"from pypdf import PdfWriter, PdfReader\n",{"type":50,"tag":90,"props":217,"children":218},{"class":92,"line":102},[219],{"type":50,"tag":90,"props":220,"children":221},{"emptyLinePlaceholder":106},[222],{"type":56,"value":109},{"type":50,"tag":90,"props":224,"children":225},{"class":92,"line":112},[226],{"type":50,"tag":90,"props":227,"children":228},{},[229],{"type":56,"value":230},"writer = PdfWriter()\n",{"type":50,"tag":90,"props":232,"children":233},{"class":92,"line":121},[234],{"type":50,"tag":90,"props":235,"children":236},{},[237],{"type":56,"value":238},"for pdf_file in [\"doc1.pdf\", \"doc2.pdf\", \"doc3.pdf\"]:\n",{"type":50,"tag":90,"props":240,"children":241},{"class":92,"line":130},[242],{"type":50,"tag":90,"props":243,"children":244},{},[245],{"type":56,"value":246},"    reader = PdfReader(pdf_file)\n",{"type":50,"tag":90,"props":248,"children":249},{"class":92,"line":139},[250],{"type":50,"tag":90,"props":251,"children":252},{},[253],{"type":56,"value":254},"    for page in reader.pages:\n",{"type":50,"tag":90,"props":256,"children":257},{"class":92,"line":147},[258],{"type":50,"tag":90,"props":259,"children":260},{},[261],{"type":56,"value":262},"        writer.add_page(page)\n",{"type":50,"tag":90,"props":264,"children":265},{"class":92,"line":156},[266],{"type":50,"tag":90,"props":267,"children":268},{"emptyLinePlaceholder":106},[269],{"type":56,"value":109},{"type":50,"tag":90,"props":271,"children":272},{"class":92,"line":165},[273],{"type":50,"tag":90,"props":274,"children":275},{},[276],{"type":56,"value":277},"with open(\"merged.pdf\", \"wb\") as output:\n",{"type":50,"tag":90,"props":279,"children":280},{"class":92,"line":174},[281],{"type":50,"tag":90,"props":282,"children":283},{},[284],{"type":56,"value":285},"    writer.write(output)\n",{"type":50,"tag":195,"props":287,"children":289},{"id":288},"split-pdf",[290],{"type":56,"value":291},"Split PDF",{"type":50,"tag":78,"props":293,"children":295},{"className":80,"code":294,"language":82,"meta":83,"style":83},"reader = PdfReader(\"input.pdf\")\nfor i, page in enumerate(reader.pages):\n    writer = PdfWriter()\n    writer.add_page(page)\n    with open(f\"page_{i+1}.pdf\", \"wb\") as output:\n        writer.write(output)\n",[296],{"type":50,"tag":86,"props":297,"children":298},{"__ignoreMap":83},[299,307,315,323,331,339],{"type":50,"tag":90,"props":300,"children":301},{"class":92,"line":93},[302],{"type":50,"tag":90,"props":303,"children":304},{},[305],{"type":56,"value":306},"reader = PdfReader(\"input.pdf\")\n",{"type":50,"tag":90,"props":308,"children":309},{"class":92,"line":102},[310],{"type":50,"tag":90,"props":311,"children":312},{},[313],{"type":56,"value":314},"for i, page in enumerate(reader.pages):\n",{"type":50,"tag":90,"props":316,"children":317},{"class":92,"line":112},[318],{"type":50,"tag":90,"props":319,"children":320},{},[321],{"type":56,"value":322},"    writer = PdfWriter()\n",{"type":50,"tag":90,"props":324,"children":325},{"class":92,"line":121},[326],{"type":50,"tag":90,"props":327,"children":328},{},[329],{"type":56,"value":330},"    writer.add_page(page)\n",{"type":50,"tag":90,"props":332,"children":333},{"class":92,"line":130},[334],{"type":50,"tag":90,"props":335,"children":336},{},[337],{"type":56,"value":338},"    with open(f\"page_{i+1}.pdf\", \"wb\") as output:\n",{"type":50,"tag":90,"props":340,"children":341},{"class":92,"line":139},[342],{"type":50,"tag":90,"props":343,"children":344},{},[345],{"type":56,"value":346},"        writer.write(output)\n",{"type":50,"tag":195,"props":348,"children":350},{"id":349},"extract-metadata",[351],{"type":56,"value":352},"Extract Metadata",{"type":50,"tag":78,"props":354,"children":356},{"className":80,"code":355,"language":82,"meta":83,"style":83},"reader = PdfReader(\"document.pdf\")\nmeta = reader.metadata\nprint(f\"Title: {meta.title}\")\nprint(f\"Author: {meta.author}\")\nprint(f\"Subject: {meta.subject}\")\nprint(f\"Creator: {meta.creator}\")\n",[357],{"type":50,"tag":86,"props":358,"children":359},{"__ignoreMap":83},[360,367,375,383,391,399],{"type":50,"tag":90,"props":361,"children":362},{"class":92,"line":93},[363],{"type":50,"tag":90,"props":364,"children":365},{},[366],{"type":56,"value":127},{"type":50,"tag":90,"props":368,"children":369},{"class":92,"line":102},[370],{"type":50,"tag":90,"props":371,"children":372},{},[373],{"type":56,"value":374},"meta = reader.metadata\n",{"type":50,"tag":90,"props":376,"children":377},{"class":92,"line":112},[378],{"type":50,"tag":90,"props":379,"children":380},{},[381],{"type":56,"value":382},"print(f\"Title: {meta.title}\")\n",{"type":50,"tag":90,"props":384,"children":385},{"class":92,"line":121},[386],{"type":50,"tag":90,"props":387,"children":388},{},[389],{"type":56,"value":390},"print(f\"Author: {meta.author}\")\n",{"type":50,"tag":90,"props":392,"children":393},{"class":92,"line":130},[394],{"type":50,"tag":90,"props":395,"children":396},{},[397],{"type":56,"value":398},"print(f\"Subject: {meta.subject}\")\n",{"type":50,"tag":90,"props":400,"children":401},{"class":92,"line":139},[402],{"type":50,"tag":90,"props":403,"children":404},{},[405],{"type":56,"value":406},"print(f\"Creator: {meta.creator}\")\n",{"type":50,"tag":195,"props":408,"children":410},{"id":409},"rotate-pages",[411],{"type":56,"value":412},"Rotate Pages",{"type":50,"tag":78,"props":414,"children":416},{"className":80,"code":415,"language":82,"meta":83,"style":83},"reader = PdfReader(\"input.pdf\")\nwriter = PdfWriter()\n\npage = reader.pages[0]\npage.rotate(90)  # Rotate 90 degrees clockwise\nwriter.add_page(page)\n\nwith open(\"rotated.pdf\", \"wb\") as output:\n    writer.write(output)\n",[417],{"type":50,"tag":86,"props":418,"children":419},{"__ignoreMap":83},[420,427,434,441,449,457,465,472,480],{"type":50,"tag":90,"props":421,"children":422},{"class":92,"line":93},[423],{"type":50,"tag":90,"props":424,"children":425},{},[426],{"type":56,"value":306},{"type":50,"tag":90,"props":428,"children":429},{"class":92,"line":102},[430],{"type":50,"tag":90,"props":431,"children":432},{},[433],{"type":56,"value":230},{"type":50,"tag":90,"props":435,"children":436},{"class":92,"line":112},[437],{"type":50,"tag":90,"props":438,"children":439},{"emptyLinePlaceholder":106},[440],{"type":56,"value":109},{"type":50,"tag":90,"props":442,"children":443},{"class":92,"line":121},[444],{"type":50,"tag":90,"props":445,"children":446},{},[447],{"type":56,"value":448},"page = reader.pages[0]\n",{"type":50,"tag":90,"props":450,"children":451},{"class":92,"line":130},[452],{"type":50,"tag":90,"props":453,"children":454},{},[455],{"type":56,"value":456},"page.rotate(90)  # Rotate 90 degrees clockwise\n",{"type":50,"tag":90,"props":458,"children":459},{"class":92,"line":139},[460],{"type":50,"tag":90,"props":461,"children":462},{},[463],{"type":56,"value":464},"writer.add_page(page)\n",{"type":50,"tag":90,"props":466,"children":467},{"class":92,"line":147},[468],{"type":50,"tag":90,"props":469,"children":470},{"emptyLinePlaceholder":106},[471],{"type":56,"value":109},{"type":50,"tag":90,"props":473,"children":474},{"class":92,"line":156},[475],{"type":50,"tag":90,"props":476,"children":477},{},[478],{"type":56,"value":479},"with open(\"rotated.pdf\", \"wb\") as output:\n",{"type":50,"tag":90,"props":481,"children":482},{"class":92,"line":165},[483],{"type":50,"tag":90,"props":484,"children":485},{},[486],{"type":56,"value":285},{"type":50,"tag":188,"props":488,"children":490},{"id":489},"pdfplumber-text-and-table-extraction",[491],{"type":56,"value":492},"pdfplumber - Text and Table Extraction",{"type":50,"tag":195,"props":494,"children":496},{"id":495},"extract-text-with-layout",[497],{"type":56,"value":498},"Extract Text with Layout",{"type":50,"tag":78,"props":500,"children":502},{"className":80,"code":501,"language":82,"meta":83,"style":83},"import pdfplumber\n\nwith pdfplumber.open(\"document.pdf\") as pdf:\n    for page in pdf.pages:\n        text = page.extract_text()\n        print(text)\n",[503],{"type":50,"tag":86,"props":504,"children":505},{"__ignoreMap":83},[506,514,521,529,537,545],{"type":50,"tag":90,"props":507,"children":508},{"class":92,"line":93},[509],{"type":50,"tag":90,"props":510,"children":511},{},[512],{"type":56,"value":513},"import pdfplumber\n",{"type":50,"tag":90,"props":515,"children":516},{"class":92,"line":102},[517],{"type":50,"tag":90,"props":518,"children":519},{"emptyLinePlaceholder":106},[520],{"type":56,"value":109},{"type":50,"tag":90,"props":522,"children":523},{"class":92,"line":112},[524],{"type":50,"tag":90,"props":525,"children":526},{},[527],{"type":56,"value":528},"with pdfplumber.open(\"document.pdf\") as pdf:\n",{"type":50,"tag":90,"props":530,"children":531},{"class":92,"line":121},[532],{"type":50,"tag":90,"props":533,"children":534},{},[535],{"type":56,"value":536},"    for page in pdf.pages:\n",{"type":50,"tag":90,"props":538,"children":539},{"class":92,"line":130},[540],{"type":50,"tag":90,"props":541,"children":542},{},[543],{"type":56,"value":544},"        text = page.extract_text()\n",{"type":50,"tag":90,"props":546,"children":547},{"class":92,"line":139},[548],{"type":50,"tag":90,"props":549,"children":550},{},[551],{"type":56,"value":552},"        print(text)\n",{"type":50,"tag":195,"props":554,"children":556},{"id":555},"extract-tables",[557],{"type":56,"value":558},"Extract Tables",{"type":50,"tag":78,"props":560,"children":562},{"className":80,"code":561,"language":82,"meta":83,"style":83},"with pdfplumber.open(\"document.pdf\") as pdf:\n    for i, page in enumerate(pdf.pages):\n        tables = page.extract_tables()\n        for j, table in enumerate(tables):\n            print(f\"Table {j+1} on page {i+1}:\")\n            for row in table:\n                print(row)\n",[563],{"type":50,"tag":86,"props":564,"children":565},{"__ignoreMap":83},[566,573,581,589,597,605,613],{"type":50,"tag":90,"props":567,"children":568},{"class":92,"line":93},[569],{"type":50,"tag":90,"props":570,"children":571},{},[572],{"type":56,"value":528},{"type":50,"tag":90,"props":574,"children":575},{"class":92,"line":102},[576],{"type":50,"tag":90,"props":577,"children":578},{},[579],{"type":56,"value":580},"    for i, page in enumerate(pdf.pages):\n",{"type":50,"tag":90,"props":582,"children":583},{"class":92,"line":112},[584],{"type":50,"tag":90,"props":585,"children":586},{},[587],{"type":56,"value":588},"        tables = page.extract_tables()\n",{"type":50,"tag":90,"props":590,"children":591},{"class":92,"line":121},[592],{"type":50,"tag":90,"props":593,"children":594},{},[595],{"type":56,"value":596},"        for j, table in enumerate(tables):\n",{"type":50,"tag":90,"props":598,"children":599},{"class":92,"line":130},[600],{"type":50,"tag":90,"props":601,"children":602},{},[603],{"type":56,"value":604},"            print(f\"Table {j+1} on page {i+1}:\")\n",{"type":50,"tag":90,"props":606,"children":607},{"class":92,"line":139},[608],{"type":50,"tag":90,"props":609,"children":610},{},[611],{"type":56,"value":612},"            for row in table:\n",{"type":50,"tag":90,"props":614,"children":615},{"class":92,"line":147},[616],{"type":50,"tag":90,"props":617,"children":618},{},[619],{"type":56,"value":620},"                print(row)\n",{"type":50,"tag":195,"props":622,"children":624},{"id":623},"advanced-table-extraction",[625],{"type":56,"value":626},"Advanced Table Extraction",{"type":50,"tag":78,"props":628,"children":630},{"className":80,"code":629,"language":82,"meta":83,"style":83},"import pandas as pd\n\nwith pdfplumber.open(\"document.pdf\") as pdf:\n    all_tables = []\n    for page in pdf.pages:\n        tables = page.extract_tables()\n        for table in tables:\n            if table:  # Check if table is not empty\n                df = pd.DataFrame(table[1:], columns=table[0])\n                all_tables.append(df)\n\n# Combine all tables\nif all_tables:\n    combined_df = pd.concat(all_tables, ignore_index=True)\n    combined_df.to_excel(\"extracted_tables.xlsx\", index=False)\n",[631],{"type":50,"tag":86,"props":632,"children":633},{"__ignoreMap":83},[634,642,649,656,664,671,678,686,694,702,710,718,727,736,745],{"type":50,"tag":90,"props":635,"children":636},{"class":92,"line":93},[637],{"type":50,"tag":90,"props":638,"children":639},{},[640],{"type":56,"value":641},"import pandas as pd\n",{"type":50,"tag":90,"props":643,"children":644},{"class":92,"line":102},[645],{"type":50,"tag":90,"props":646,"children":647},{"emptyLinePlaceholder":106},[648],{"type":56,"value":109},{"type":50,"tag":90,"props":650,"children":651},{"class":92,"line":112},[652],{"type":50,"tag":90,"props":653,"children":654},{},[655],{"type":56,"value":528},{"type":50,"tag":90,"props":657,"children":658},{"class":92,"line":121},[659],{"type":50,"tag":90,"props":660,"children":661},{},[662],{"type":56,"value":663},"    all_tables = []\n",{"type":50,"tag":90,"props":665,"children":666},{"class":92,"line":130},[667],{"type":50,"tag":90,"props":668,"children":669},{},[670],{"type":56,"value":536},{"type":50,"tag":90,"props":672,"children":673},{"class":92,"line":139},[674],{"type":50,"tag":90,"props":675,"children":676},{},[677],{"type":56,"value":588},{"type":50,"tag":90,"props":679,"children":680},{"class":92,"line":147},[681],{"type":50,"tag":90,"props":682,"children":683},{},[684],{"type":56,"value":685},"        for table in tables:\n",{"type":50,"tag":90,"props":687,"children":688},{"class":92,"line":156},[689],{"type":50,"tag":90,"props":690,"children":691},{},[692],{"type":56,"value":693},"            if table:  # Check if table is not empty\n",{"type":50,"tag":90,"props":695,"children":696},{"class":92,"line":165},[697],{"type":50,"tag":90,"props":698,"children":699},{},[700],{"type":56,"value":701},"                df = pd.DataFrame(table[1:], columns=table[0])\n",{"type":50,"tag":90,"props":703,"children":704},{"class":92,"line":174},[705],{"type":50,"tag":90,"props":706,"children":707},{},[708],{"type":56,"value":709},"                all_tables.append(df)\n",{"type":50,"tag":90,"props":711,"children":713},{"class":92,"line":712},11,[714],{"type":50,"tag":90,"props":715,"children":716},{"emptyLinePlaceholder":106},[717],{"type":56,"value":109},{"type":50,"tag":90,"props":719,"children":721},{"class":92,"line":720},12,[722],{"type":50,"tag":90,"props":723,"children":724},{},[725],{"type":56,"value":726},"# Combine all tables\n",{"type":50,"tag":90,"props":728,"children":730},{"class":92,"line":729},13,[731],{"type":50,"tag":90,"props":732,"children":733},{},[734],{"type":56,"value":735},"if all_tables:\n",{"type":50,"tag":90,"props":737,"children":739},{"class":92,"line":738},14,[740],{"type":50,"tag":90,"props":741,"children":742},{},[743],{"type":56,"value":744},"    combined_df = pd.concat(all_tables, ignore_index=True)\n",{"type":50,"tag":90,"props":746,"children":748},{"class":92,"line":747},15,[749],{"type":50,"tag":90,"props":750,"children":751},{},[752],{"type":56,"value":753},"    combined_df.to_excel(\"extracted_tables.xlsx\", index=False)\n",{"type":50,"tag":188,"props":755,"children":757},{"id":756},"reportlab-create-pdfs",[758],{"type":56,"value":759},"reportlab - Create PDFs",{"type":50,"tag":195,"props":761,"children":763},{"id":762},"basic-pdf-creation",[764],{"type":56,"value":765},"Basic PDF Creation",{"type":50,"tag":78,"props":767,"children":769},{"className":80,"code":768,"language":82,"meta":83,"style":83},"from reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"hello.pdf\", pagesize=letter)\nwidth, height = letter\n\n# Add text\nc.drawString(100, height - 100, \"Hello World!\")\nc.drawString(100, height - 120, \"This is a PDF created with reportlab\")\n\n# Add a line\nc.line(100, height - 140, 400, height - 140)\n\n# Save\nc.save()\n",[770],{"type":50,"tag":86,"props":771,"children":772},{"__ignoreMap":83},[773,781,789,796,804,812,819,827,835,843,850,858,866,873,881],{"type":50,"tag":90,"props":774,"children":775},{"class":92,"line":93},[776],{"type":50,"tag":90,"props":777,"children":778},{},[779],{"type":56,"value":780},"from reportlab.lib.pagesizes import letter\n",{"type":50,"tag":90,"props":782,"children":783},{"class":92,"line":102},[784],{"type":50,"tag":90,"props":785,"children":786},{},[787],{"type":56,"value":788},"from reportlab.pdfgen import canvas\n",{"type":50,"tag":90,"props":790,"children":791},{"class":92,"line":112},[792],{"type":50,"tag":90,"props":793,"children":794},{"emptyLinePlaceholder":106},[795],{"type":56,"value":109},{"type":50,"tag":90,"props":797,"children":798},{"class":92,"line":121},[799],{"type":50,"tag":90,"props":800,"children":801},{},[802],{"type":56,"value":803},"c = canvas.Canvas(\"hello.pdf\", pagesize=letter)\n",{"type":50,"tag":90,"props":805,"children":806},{"class":92,"line":130},[807],{"type":50,"tag":90,"props":808,"children":809},{},[810],{"type":56,"value":811},"width, height = letter\n",{"type":50,"tag":90,"props":813,"children":814},{"class":92,"line":139},[815],{"type":50,"tag":90,"props":816,"children":817},{"emptyLinePlaceholder":106},[818],{"type":56,"value":109},{"type":50,"tag":90,"props":820,"children":821},{"class":92,"line":147},[822],{"type":50,"tag":90,"props":823,"children":824},{},[825],{"type":56,"value":826},"# Add text\n",{"type":50,"tag":90,"props":828,"children":829},{"class":92,"line":156},[830],{"type":50,"tag":90,"props":831,"children":832},{},[833],{"type":56,"value":834},"c.drawString(100, height - 100, \"Hello World!\")\n",{"type":50,"tag":90,"props":836,"children":837},{"class":92,"line":165},[838],{"type":50,"tag":90,"props":839,"children":840},{},[841],{"type":56,"value":842},"c.drawString(100, height - 120, \"This is a PDF created with reportlab\")\n",{"type":50,"tag":90,"props":844,"children":845},{"class":92,"line":174},[846],{"type":50,"tag":90,"props":847,"children":848},{"emptyLinePlaceholder":106},[849],{"type":56,"value":109},{"type":50,"tag":90,"props":851,"children":852},{"class":92,"line":712},[853],{"type":50,"tag":90,"props":854,"children":855},{},[856],{"type":56,"value":857},"# Add a line\n",{"type":50,"tag":90,"props":859,"children":860},{"class":92,"line":720},[861],{"type":50,"tag":90,"props":862,"children":863},{},[864],{"type":56,"value":865},"c.line(100, height - 140, 400, height - 140)\n",{"type":50,"tag":90,"props":867,"children":868},{"class":92,"line":729},[869],{"type":50,"tag":90,"props":870,"children":871},{"emptyLinePlaceholder":106},[872],{"type":56,"value":109},{"type":50,"tag":90,"props":874,"children":875},{"class":92,"line":738},[876],{"type":50,"tag":90,"props":877,"children":878},{},[879],{"type":56,"value":880},"# Save\n",{"type":50,"tag":90,"props":882,"children":883},{"class":92,"line":747},[884],{"type":50,"tag":90,"props":885,"children":886},{},[887],{"type":56,"value":888},"c.save()\n",{"type":50,"tag":195,"props":890,"children":892},{"id":891},"create-pdf-with-multiple-pages",[893],{"type":56,"value":894},"Create PDF with Multiple Pages",{"type":50,"tag":78,"props":896,"children":898},{"className":80,"code":897,"language":82,"meta":83,"style":83},"from reportlab.lib.pagesizes import letter\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak\nfrom reportlab.lib.styles import getSampleStyleSheet\n\ndoc = SimpleDocTemplate(\"report.pdf\", pagesize=letter)\nstyles = getSampleStyleSheet()\nstory = []\n\n# Add content\ntitle = Paragraph(\"Report Title\", styles['Title'])\nstory.append(title)\nstory.append(Spacer(1, 12))\n\nbody = Paragraph(\"This is the body of the report. \" * 20, styles['Normal'])\nstory.append(body)\nstory.append(PageBreak())\n\n# Page 2\nstory.append(Paragraph(\"Page 2\", styles['Heading1']))\nstory.append(Paragraph(\"Content for page 2\", styles['Normal']))\n\n# Build PDF\ndoc.build(story)\n",[899],{"type":50,"tag":86,"props":900,"children":901},{"__ignoreMap":83},[902,909,917,925,932,940,948,956,963,971,979,987,995,1002,1010,1018,1027,1035,1044,1053,1062,1070,1079],{"type":50,"tag":90,"props":903,"children":904},{"class":92,"line":93},[905],{"type":50,"tag":90,"props":906,"children":907},{},[908],{"type":56,"value":780},{"type":50,"tag":90,"props":910,"children":911},{"class":92,"line":102},[912],{"type":50,"tag":90,"props":913,"children":914},{},[915],{"type":56,"value":916},"from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak\n",{"type":50,"tag":90,"props":918,"children":919},{"class":92,"line":112},[920],{"type":50,"tag":90,"props":921,"children":922},{},[923],{"type":56,"value":924},"from reportlab.lib.styles import getSampleStyleSheet\n",{"type":50,"tag":90,"props":926,"children":927},{"class":92,"line":121},[928],{"type":50,"tag":90,"props":929,"children":930},{"emptyLinePlaceholder":106},[931],{"type":56,"value":109},{"type":50,"tag":90,"props":933,"children":934},{"class":92,"line":130},[935],{"type":50,"tag":90,"props":936,"children":937},{},[938],{"type":56,"value":939},"doc = SimpleDocTemplate(\"report.pdf\", pagesize=letter)\n",{"type":50,"tag":90,"props":941,"children":942},{"class":92,"line":139},[943],{"type":50,"tag":90,"props":944,"children":945},{},[946],{"type":56,"value":947},"styles = getSampleStyleSheet()\n",{"type":50,"tag":90,"props":949,"children":950},{"class":92,"line":147},[951],{"type":50,"tag":90,"props":952,"children":953},{},[954],{"type":56,"value":955},"story = []\n",{"type":50,"tag":90,"props":957,"children":958},{"class":92,"line":156},[959],{"type":50,"tag":90,"props":960,"children":961},{"emptyLinePlaceholder":106},[962],{"type":56,"value":109},{"type":50,"tag":90,"props":964,"children":965},{"class":92,"line":165},[966],{"type":50,"tag":90,"props":967,"children":968},{},[969],{"type":56,"value":970},"# Add content\n",{"type":50,"tag":90,"props":972,"children":973},{"class":92,"line":174},[974],{"type":50,"tag":90,"props":975,"children":976},{},[977],{"type":56,"value":978},"title = Paragraph(\"Report Title\", styles['Title'])\n",{"type":50,"tag":90,"props":980,"children":981},{"class":92,"line":712},[982],{"type":50,"tag":90,"props":983,"children":984},{},[985],{"type":56,"value":986},"story.append(title)\n",{"type":50,"tag":90,"props":988,"children":989},{"class":92,"line":720},[990],{"type":50,"tag":90,"props":991,"children":992},{},[993],{"type":56,"value":994},"story.append(Spacer(1, 12))\n",{"type":50,"tag":90,"props":996,"children":997},{"class":92,"line":729},[998],{"type":50,"tag":90,"props":999,"children":1000},{"emptyLinePlaceholder":106},[1001],{"type":56,"value":109},{"type":50,"tag":90,"props":1003,"children":1004},{"class":92,"line":738},[1005],{"type":50,"tag":90,"props":1006,"children":1007},{},[1008],{"type":56,"value":1009},"body = Paragraph(\"This is the body of the report. \" * 20, styles['Normal'])\n",{"type":50,"tag":90,"props":1011,"children":1012},{"class":92,"line":747},[1013],{"type":50,"tag":90,"props":1014,"children":1015},{},[1016],{"type":56,"value":1017},"story.append(body)\n",{"type":50,"tag":90,"props":1019,"children":1021},{"class":92,"line":1020},16,[1022],{"type":50,"tag":90,"props":1023,"children":1024},{},[1025],{"type":56,"value":1026},"story.append(PageBreak())\n",{"type":50,"tag":90,"props":1028,"children":1030},{"class":92,"line":1029},17,[1031],{"type":50,"tag":90,"props":1032,"children":1033},{"emptyLinePlaceholder":106},[1034],{"type":56,"value":109},{"type":50,"tag":90,"props":1036,"children":1038},{"class":92,"line":1037},18,[1039],{"type":50,"tag":90,"props":1040,"children":1041},{},[1042],{"type":56,"value":1043},"# Page 2\n",{"type":50,"tag":90,"props":1045,"children":1047},{"class":92,"line":1046},19,[1048],{"type":50,"tag":90,"props":1049,"children":1050},{},[1051],{"type":56,"value":1052},"story.append(Paragraph(\"Page 2\", styles['Heading1']))\n",{"type":50,"tag":90,"props":1054,"children":1056},{"class":92,"line":1055},20,[1057],{"type":50,"tag":90,"props":1058,"children":1059},{},[1060],{"type":56,"value":1061},"story.append(Paragraph(\"Content for page 2\", styles['Normal']))\n",{"type":50,"tag":90,"props":1063,"children":1065},{"class":92,"line":1064},21,[1066],{"type":50,"tag":90,"props":1067,"children":1068},{"emptyLinePlaceholder":106},[1069],{"type":56,"value":109},{"type":50,"tag":90,"props":1071,"children":1073},{"class":92,"line":1072},22,[1074],{"type":50,"tag":90,"props":1075,"children":1076},{},[1077],{"type":56,"value":1078},"# Build PDF\n",{"type":50,"tag":90,"props":1080,"children":1082},{"class":92,"line":1081},23,[1083],{"type":50,"tag":90,"props":1084,"children":1085},{},[1086],{"type":56,"value":1087},"doc.build(story)\n",{"type":50,"tag":195,"props":1089,"children":1091},{"id":1090},"subscripts-and-superscripts",[1092],{"type":56,"value":1093},"Subscripts and Superscripts",{"type":50,"tag":66,"props":1095,"children":1096},{},[1097,1103],{"type":50,"tag":1098,"props":1099,"children":1100},"strong",{},[1101],{"type":56,"value":1102},"IMPORTANT",{"type":56,"value":1104},": Never use Unicode subscript\u002Fsuperscript characters (₀₁₂₃₄₅₆₇₈₉, ⁰¹²³⁴⁵⁶⁷⁸⁹) in ReportLab PDFs. The built-in fonts do not include these glyphs, causing them to render as solid black boxes.",{"type":50,"tag":66,"props":1106,"children":1107},{},[1108],{"type":56,"value":1109},"Instead, use ReportLab's XML markup tags in Paragraph objects:",{"type":50,"tag":78,"props":1111,"children":1113},{"className":80,"code":1112,"language":82,"meta":83,"style":83},"from reportlab.platypus import Paragraph\nfrom reportlab.lib.styles import getSampleStyleSheet\n\nstyles = getSampleStyleSheet()\n\n# Subscripts: use \u003Csub> tag\nchemical = Paragraph(\"H\u003Csub>2\u003C\u002Fsub>O\", styles['Normal'])\n\n# Superscripts: use \u003Csuper> tag\nsquared = Paragraph(\"x\u003Csuper>2\u003C\u002Fsuper> + y\u003Csuper>2\u003C\u002Fsuper>\", styles['Normal'])\n",[1114],{"type":50,"tag":86,"props":1115,"children":1116},{"__ignoreMap":83},[1117,1125,1132,1139,1146,1153,1161,1169,1176,1184],{"type":50,"tag":90,"props":1118,"children":1119},{"class":92,"line":93},[1120],{"type":50,"tag":90,"props":1121,"children":1122},{},[1123],{"type":56,"value":1124},"from reportlab.platypus import Paragraph\n",{"type":50,"tag":90,"props":1126,"children":1127},{"class":92,"line":102},[1128],{"type":50,"tag":90,"props":1129,"children":1130},{},[1131],{"type":56,"value":924},{"type":50,"tag":90,"props":1133,"children":1134},{"class":92,"line":112},[1135],{"type":50,"tag":90,"props":1136,"children":1137},{"emptyLinePlaceholder":106},[1138],{"type":56,"value":109},{"type":50,"tag":90,"props":1140,"children":1141},{"class":92,"line":121},[1142],{"type":50,"tag":90,"props":1143,"children":1144},{},[1145],{"type":56,"value":947},{"type":50,"tag":90,"props":1147,"children":1148},{"class":92,"line":130},[1149],{"type":50,"tag":90,"props":1150,"children":1151},{"emptyLinePlaceholder":106},[1152],{"type":56,"value":109},{"type":50,"tag":90,"props":1154,"children":1155},{"class":92,"line":139},[1156],{"type":50,"tag":90,"props":1157,"children":1158},{},[1159],{"type":56,"value":1160},"# Subscripts: use \u003Csub> tag\n",{"type":50,"tag":90,"props":1162,"children":1163},{"class":92,"line":147},[1164],{"type":50,"tag":90,"props":1165,"children":1166},{},[1167],{"type":56,"value":1168},"chemical = Paragraph(\"H\u003Csub>2\u003C\u002Fsub>O\", styles['Normal'])\n",{"type":50,"tag":90,"props":1170,"children":1171},{"class":92,"line":156},[1172],{"type":50,"tag":90,"props":1173,"children":1174},{"emptyLinePlaceholder":106},[1175],{"type":56,"value":109},{"type":50,"tag":90,"props":1177,"children":1178},{"class":92,"line":165},[1179],{"type":50,"tag":90,"props":1180,"children":1181},{},[1182],{"type":56,"value":1183},"# Superscripts: use \u003Csuper> tag\n",{"type":50,"tag":90,"props":1185,"children":1186},{"class":92,"line":174},[1187],{"type":50,"tag":90,"props":1188,"children":1189},{},[1190],{"type":56,"value":1191},"squared = Paragraph(\"x\u003Csuper>2\u003C\u002Fsuper> + y\u003Csuper>2\u003C\u002Fsuper>\", styles['Normal'])\n",{"type":50,"tag":66,"props":1193,"children":1194},{},[1195],{"type":56,"value":1196},"For canvas-drawn text (not Paragraph objects), manually adjust font the size and position rather than using Unicode subscripts\u002Fsuperscripts.",{"type":50,"tag":59,"props":1198,"children":1200},{"id":1199},"command-line-tools",[1201],{"type":56,"value":1202},"Command-Line Tools",{"type":50,"tag":188,"props":1204,"children":1206},{"id":1205},"pdftotext-poppler-utils",[1207],{"type":56,"value":1208},"pdftotext (poppler-utils)",{"type":50,"tag":78,"props":1210,"children":1214},{"className":1211,"code":1212,"language":1213,"meta":83,"style":83},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Extract text\npdftotext input.pdf output.txt\n\n# Extract text preserving layout\npdftotext -layout input.pdf output.txt\n\n# Extract specific pages\npdftotext -f 1 -l 5 input.pdf output.txt  # Pages 1-5\n","bash",[1215],{"type":50,"tag":86,"props":1216,"children":1217},{"__ignoreMap":83},[1218,1226,1246,1253,1261,1281,1288,1296],{"type":50,"tag":90,"props":1219,"children":1220},{"class":92,"line":93},[1221],{"type":50,"tag":90,"props":1222,"children":1224},{"style":1223},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1225],{"type":56,"value":153},{"type":50,"tag":90,"props":1227,"children":1228},{"class":92,"line":102},[1229,1235,1241],{"type":50,"tag":90,"props":1230,"children":1232},{"style":1231},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1233],{"type":56,"value":1234},"pdftotext",{"type":50,"tag":90,"props":1236,"children":1238},{"style":1237},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1239],{"type":56,"value":1240}," input.pdf",{"type":50,"tag":90,"props":1242,"children":1243},{"style":1237},[1244],{"type":56,"value":1245}," output.txt\n",{"type":50,"tag":90,"props":1247,"children":1248},{"class":92,"line":112},[1249],{"type":50,"tag":90,"props":1250,"children":1251},{"emptyLinePlaceholder":106},[1252],{"type":56,"value":109},{"type":50,"tag":90,"props":1254,"children":1255},{"class":92,"line":121},[1256],{"type":50,"tag":90,"props":1257,"children":1258},{"style":1223},[1259],{"type":56,"value":1260},"# Extract text preserving layout\n",{"type":50,"tag":90,"props":1262,"children":1263},{"class":92,"line":130},[1264,1268,1273,1277],{"type":50,"tag":90,"props":1265,"children":1266},{"style":1231},[1267],{"type":56,"value":1234},{"type":50,"tag":90,"props":1269,"children":1270},{"style":1237},[1271],{"type":56,"value":1272}," -layout",{"type":50,"tag":90,"props":1274,"children":1275},{"style":1237},[1276],{"type":56,"value":1240},{"type":50,"tag":90,"props":1278,"children":1279},{"style":1237},[1280],{"type":56,"value":1245},{"type":50,"tag":90,"props":1282,"children":1283},{"class":92,"line":139},[1284],{"type":50,"tag":90,"props":1285,"children":1286},{"emptyLinePlaceholder":106},[1287],{"type":56,"value":109},{"type":50,"tag":90,"props":1289,"children":1290},{"class":92,"line":147},[1291],{"type":50,"tag":90,"props":1292,"children":1293},{"style":1223},[1294],{"type":56,"value":1295},"# Extract specific pages\n",{"type":50,"tag":90,"props":1297,"children":1298},{"class":92,"line":156},[1299,1303,1308,1314,1319,1324,1328,1333],{"type":50,"tag":90,"props":1300,"children":1301},{"style":1231},[1302],{"type":56,"value":1234},{"type":50,"tag":90,"props":1304,"children":1305},{"style":1237},[1306],{"type":56,"value":1307}," -f",{"type":50,"tag":90,"props":1309,"children":1311},{"style":1310},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1312],{"type":56,"value":1313}," 1",{"type":50,"tag":90,"props":1315,"children":1316},{"style":1237},[1317],{"type":56,"value":1318}," -l",{"type":50,"tag":90,"props":1320,"children":1321},{"style":1310},[1322],{"type":56,"value":1323}," 5",{"type":50,"tag":90,"props":1325,"children":1326},{"style":1237},[1327],{"type":56,"value":1240},{"type":50,"tag":90,"props":1329,"children":1330},{"style":1237},[1331],{"type":56,"value":1332}," output.txt",{"type":50,"tag":90,"props":1334,"children":1335},{"style":1223},[1336],{"type":56,"value":1337},"  # Pages 1-5\n",{"type":50,"tag":188,"props":1339,"children":1341},{"id":1340},"qpdf",[1342],{"type":56,"value":1340},{"type":50,"tag":78,"props":1344,"children":1346},{"className":1211,"code":1345,"language":1213,"meta":83,"style":83},"# Merge PDFs\nqpdf --empty --pages file1.pdf file2.pdf -- merged.pdf\n\n# Split pages\nqpdf input.pdf --pages . 1-5 -- pages1-5.pdf\nqpdf input.pdf --pages . 6-10 -- pages6-10.pdf\n\n# Rotate pages\nqpdf input.pdf output.pdf --rotate=+90:1  # Rotate page 1 by 90 degrees\n\n# Remove password\nqpdf --password=mypassword --decrypt encrypted.pdf decrypted.pdf\n",[1347],{"type":50,"tag":86,"props":1348,"children":1349},{"__ignoreMap":83},[1350,1358,1395,1402,1410,1444,1477,1484,1492,1518,1525,1533],{"type":50,"tag":90,"props":1351,"children":1352},{"class":92,"line":93},[1353],{"type":50,"tag":90,"props":1354,"children":1355},{"style":1223},[1356],{"type":56,"value":1357},"# Merge PDFs\n",{"type":50,"tag":90,"props":1359,"children":1360},{"class":92,"line":102},[1361,1365,1370,1375,1380,1385,1390],{"type":50,"tag":90,"props":1362,"children":1363},{"style":1231},[1364],{"type":56,"value":1340},{"type":50,"tag":90,"props":1366,"children":1367},{"style":1237},[1368],{"type":56,"value":1369}," --empty",{"type":50,"tag":90,"props":1371,"children":1372},{"style":1237},[1373],{"type":56,"value":1374}," --pages",{"type":50,"tag":90,"props":1376,"children":1377},{"style":1237},[1378],{"type":56,"value":1379}," file1.pdf",{"type":50,"tag":90,"props":1381,"children":1382},{"style":1237},[1383],{"type":56,"value":1384}," file2.pdf",{"type":50,"tag":90,"props":1386,"children":1387},{"style":1237},[1388],{"type":56,"value":1389}," --",{"type":50,"tag":90,"props":1391,"children":1392},{"style":1237},[1393],{"type":56,"value":1394}," merged.pdf\n",{"type":50,"tag":90,"props":1396,"children":1397},{"class":92,"line":112},[1398],{"type":50,"tag":90,"props":1399,"children":1400},{"emptyLinePlaceholder":106},[1401],{"type":56,"value":109},{"type":50,"tag":90,"props":1403,"children":1404},{"class":92,"line":121},[1405],{"type":50,"tag":90,"props":1406,"children":1407},{"style":1223},[1408],{"type":56,"value":1409},"# Split pages\n",{"type":50,"tag":90,"props":1411,"children":1412},{"class":92,"line":130},[1413,1417,1421,1425,1430,1435,1439],{"type":50,"tag":90,"props":1414,"children":1415},{"style":1231},[1416],{"type":56,"value":1340},{"type":50,"tag":90,"props":1418,"children":1419},{"style":1237},[1420],{"type":56,"value":1240},{"type":50,"tag":90,"props":1422,"children":1423},{"style":1237},[1424],{"type":56,"value":1374},{"type":50,"tag":90,"props":1426,"children":1427},{"style":1237},[1428],{"type":56,"value":1429}," .",{"type":50,"tag":90,"props":1431,"children":1432},{"style":1237},[1433],{"type":56,"value":1434}," 1-5",{"type":50,"tag":90,"props":1436,"children":1437},{"style":1237},[1438],{"type":56,"value":1389},{"type":50,"tag":90,"props":1440,"children":1441},{"style":1237},[1442],{"type":56,"value":1443}," pages1-5.pdf\n",{"type":50,"tag":90,"props":1445,"children":1446},{"class":92,"line":139},[1447,1451,1455,1459,1463,1468,1472],{"type":50,"tag":90,"props":1448,"children":1449},{"style":1231},[1450],{"type":56,"value":1340},{"type":50,"tag":90,"props":1452,"children":1453},{"style":1237},[1454],{"type":56,"value":1240},{"type":50,"tag":90,"props":1456,"children":1457},{"style":1237},[1458],{"type":56,"value":1374},{"type":50,"tag":90,"props":1460,"children":1461},{"style":1237},[1462],{"type":56,"value":1429},{"type":50,"tag":90,"props":1464,"children":1465},{"style":1237},[1466],{"type":56,"value":1467}," 6-10",{"type":50,"tag":90,"props":1469,"children":1470},{"style":1237},[1471],{"type":56,"value":1389},{"type":50,"tag":90,"props":1473,"children":1474},{"style":1237},[1475],{"type":56,"value":1476}," pages6-10.pdf\n",{"type":50,"tag":90,"props":1478,"children":1479},{"class":92,"line":147},[1480],{"type":50,"tag":90,"props":1481,"children":1482},{"emptyLinePlaceholder":106},[1483],{"type":56,"value":109},{"type":50,"tag":90,"props":1485,"children":1486},{"class":92,"line":156},[1487],{"type":50,"tag":90,"props":1488,"children":1489},{"style":1223},[1490],{"type":56,"value":1491},"# Rotate pages\n",{"type":50,"tag":90,"props":1493,"children":1494},{"class":92,"line":165},[1495,1499,1503,1508,1513],{"type":50,"tag":90,"props":1496,"children":1497},{"style":1231},[1498],{"type":56,"value":1340},{"type":50,"tag":90,"props":1500,"children":1501},{"style":1237},[1502],{"type":56,"value":1240},{"type":50,"tag":90,"props":1504,"children":1505},{"style":1237},[1506],{"type":56,"value":1507}," output.pdf",{"type":50,"tag":90,"props":1509,"children":1510},{"style":1237},[1511],{"type":56,"value":1512}," --rotate=+90:1",{"type":50,"tag":90,"props":1514,"children":1515},{"style":1223},[1516],{"type":56,"value":1517},"  # Rotate page 1 by 90 degrees\n",{"type":50,"tag":90,"props":1519,"children":1520},{"class":92,"line":174},[1521],{"type":50,"tag":90,"props":1522,"children":1523},{"emptyLinePlaceholder":106},[1524],{"type":56,"value":109},{"type":50,"tag":90,"props":1526,"children":1527},{"class":92,"line":712},[1528],{"type":50,"tag":90,"props":1529,"children":1530},{"style":1223},[1531],{"type":56,"value":1532},"# Remove password\n",{"type":50,"tag":90,"props":1534,"children":1535},{"class":92,"line":720},[1536,1540,1545,1550,1555],{"type":50,"tag":90,"props":1537,"children":1538},{"style":1231},[1539],{"type":56,"value":1340},{"type":50,"tag":90,"props":1541,"children":1542},{"style":1237},[1543],{"type":56,"value":1544}," --password=mypassword",{"type":50,"tag":90,"props":1546,"children":1547},{"style":1237},[1548],{"type":56,"value":1549}," --decrypt",{"type":50,"tag":90,"props":1551,"children":1552},{"style":1237},[1553],{"type":56,"value":1554}," encrypted.pdf",{"type":50,"tag":90,"props":1556,"children":1557},{"style":1237},[1558],{"type":56,"value":1559}," decrypted.pdf\n",{"type":50,"tag":188,"props":1561,"children":1563},{"id":1562},"pdftk-if-available",[1564],{"type":56,"value":1565},"pdftk (if available)",{"type":50,"tag":78,"props":1567,"children":1569},{"className":1211,"code":1568,"language":1213,"meta":83,"style":83},"# Merge\npdftk file1.pdf file2.pdf cat output merged.pdf\n\n# Split\npdftk input.pdf burst\n\n# Rotate\npdftk input.pdf rotate 1east output rotated.pdf\n",[1570],{"type":50,"tag":86,"props":1571,"children":1572},{"__ignoreMap":83},[1573,1581,1611,1618,1626,1642,1649,1657],{"type":50,"tag":90,"props":1574,"children":1575},{"class":92,"line":93},[1576],{"type":50,"tag":90,"props":1577,"children":1578},{"style":1223},[1579],{"type":56,"value":1580},"# Merge\n",{"type":50,"tag":90,"props":1582,"children":1583},{"class":92,"line":102},[1584,1589,1593,1597,1602,1607],{"type":50,"tag":90,"props":1585,"children":1586},{"style":1231},[1587],{"type":56,"value":1588},"pdftk",{"type":50,"tag":90,"props":1590,"children":1591},{"style":1237},[1592],{"type":56,"value":1379},{"type":50,"tag":90,"props":1594,"children":1595},{"style":1237},[1596],{"type":56,"value":1384},{"type":50,"tag":90,"props":1598,"children":1599},{"style":1237},[1600],{"type":56,"value":1601}," cat",{"type":50,"tag":90,"props":1603,"children":1604},{"style":1237},[1605],{"type":56,"value":1606}," output",{"type":50,"tag":90,"props":1608,"children":1609},{"style":1237},[1610],{"type":56,"value":1394},{"type":50,"tag":90,"props":1612,"children":1613},{"class":92,"line":112},[1614],{"type":50,"tag":90,"props":1615,"children":1616},{"emptyLinePlaceholder":106},[1617],{"type":56,"value":109},{"type":50,"tag":90,"props":1619,"children":1620},{"class":92,"line":121},[1621],{"type":50,"tag":90,"props":1622,"children":1623},{"style":1223},[1624],{"type":56,"value":1625},"# Split\n",{"type":50,"tag":90,"props":1627,"children":1628},{"class":92,"line":130},[1629,1633,1637],{"type":50,"tag":90,"props":1630,"children":1631},{"style":1231},[1632],{"type":56,"value":1588},{"type":50,"tag":90,"props":1634,"children":1635},{"style":1237},[1636],{"type":56,"value":1240},{"type":50,"tag":90,"props":1638,"children":1639},{"style":1237},[1640],{"type":56,"value":1641}," burst\n",{"type":50,"tag":90,"props":1643,"children":1644},{"class":92,"line":139},[1645],{"type":50,"tag":90,"props":1646,"children":1647},{"emptyLinePlaceholder":106},[1648],{"type":56,"value":109},{"type":50,"tag":90,"props":1650,"children":1651},{"class":92,"line":147},[1652],{"type":50,"tag":90,"props":1653,"children":1654},{"style":1223},[1655],{"type":56,"value":1656},"# Rotate\n",{"type":50,"tag":90,"props":1658,"children":1659},{"class":92,"line":156},[1660,1664,1668,1673,1678,1682],{"type":50,"tag":90,"props":1661,"children":1662},{"style":1231},[1663],{"type":56,"value":1588},{"type":50,"tag":90,"props":1665,"children":1666},{"style":1237},[1667],{"type":56,"value":1240},{"type":50,"tag":90,"props":1669,"children":1670},{"style":1237},[1671],{"type":56,"value":1672}," rotate",{"type":50,"tag":90,"props":1674,"children":1675},{"style":1237},[1676],{"type":56,"value":1677}," 1east",{"type":50,"tag":90,"props":1679,"children":1680},{"style":1237},[1681],{"type":56,"value":1606},{"type":50,"tag":90,"props":1683,"children":1684},{"style":1237},[1685],{"type":56,"value":1686}," rotated.pdf\n",{"type":50,"tag":59,"props":1688,"children":1690},{"id":1689},"common-tasks",[1691],{"type":56,"value":1692},"Common Tasks",{"type":50,"tag":188,"props":1694,"children":1696},{"id":1695},"extract-text-from-scanned-pdfs",[1697],{"type":56,"value":1698},"Extract Text from Scanned PDFs",{"type":50,"tag":78,"props":1700,"children":1702},{"className":80,"code":1701,"language":82,"meta":83,"style":83},"# Requires: pip install pytesseract pdf2image\nimport pytesseract\nfrom pdf2image import convert_from_path\n\n# Convert PDF to images\nimages = convert_from_path('scanned.pdf')\n\n# OCR each page\ntext = \"\"\nfor i, image in enumerate(images):\n    text += f\"Page {i+1}:\\n\"\n    text += pytesseract.image_to_string(image)\n    text += \"\\n\\n\"\n\nprint(text)\n",[1703],{"type":50,"tag":86,"props":1704,"children":1705},{"__ignoreMap":83},[1706,1714,1722,1730,1737,1745,1753,1760,1768,1775,1783,1791,1799,1807,1814],{"type":50,"tag":90,"props":1707,"children":1708},{"class":92,"line":93},[1709],{"type":50,"tag":90,"props":1710,"children":1711},{},[1712],{"type":56,"value":1713},"# Requires: pip install pytesseract pdf2image\n",{"type":50,"tag":90,"props":1715,"children":1716},{"class":92,"line":102},[1717],{"type":50,"tag":90,"props":1718,"children":1719},{},[1720],{"type":56,"value":1721},"import pytesseract\n",{"type":50,"tag":90,"props":1723,"children":1724},{"class":92,"line":112},[1725],{"type":50,"tag":90,"props":1726,"children":1727},{},[1728],{"type":56,"value":1729},"from pdf2image import convert_from_path\n",{"type":50,"tag":90,"props":1731,"children":1732},{"class":92,"line":121},[1733],{"type":50,"tag":90,"props":1734,"children":1735},{"emptyLinePlaceholder":106},[1736],{"type":56,"value":109},{"type":50,"tag":90,"props":1738,"children":1739},{"class":92,"line":130},[1740],{"type":50,"tag":90,"props":1741,"children":1742},{},[1743],{"type":56,"value":1744},"# Convert PDF to images\n",{"type":50,"tag":90,"props":1746,"children":1747},{"class":92,"line":139},[1748],{"type":50,"tag":90,"props":1749,"children":1750},{},[1751],{"type":56,"value":1752},"images = convert_from_path('scanned.pdf')\n",{"type":50,"tag":90,"props":1754,"children":1755},{"class":92,"line":147},[1756],{"type":50,"tag":90,"props":1757,"children":1758},{"emptyLinePlaceholder":106},[1759],{"type":56,"value":109},{"type":50,"tag":90,"props":1761,"children":1762},{"class":92,"line":156},[1763],{"type":50,"tag":90,"props":1764,"children":1765},{},[1766],{"type":56,"value":1767},"# OCR each page\n",{"type":50,"tag":90,"props":1769,"children":1770},{"class":92,"line":165},[1771],{"type":50,"tag":90,"props":1772,"children":1773},{},[1774],{"type":56,"value":162},{"type":50,"tag":90,"props":1776,"children":1777},{"class":92,"line":174},[1778],{"type":50,"tag":90,"props":1779,"children":1780},{},[1781],{"type":56,"value":1782},"for i, image in enumerate(images):\n",{"type":50,"tag":90,"props":1784,"children":1785},{"class":92,"line":712},[1786],{"type":50,"tag":90,"props":1787,"children":1788},{},[1789],{"type":56,"value":1790},"    text += f\"Page {i+1}:\\n\"\n",{"type":50,"tag":90,"props":1792,"children":1793},{"class":92,"line":720},[1794],{"type":50,"tag":90,"props":1795,"children":1796},{},[1797],{"type":56,"value":1798},"    text += pytesseract.image_to_string(image)\n",{"type":50,"tag":90,"props":1800,"children":1801},{"class":92,"line":729},[1802],{"type":50,"tag":90,"props":1803,"children":1804},{},[1805],{"type":56,"value":1806},"    text += \"\\n\\n\"\n",{"type":50,"tag":90,"props":1808,"children":1809},{"class":92,"line":738},[1810],{"type":50,"tag":90,"props":1811,"children":1812},{"emptyLinePlaceholder":106},[1813],{"type":56,"value":109},{"type":50,"tag":90,"props":1815,"children":1816},{"class":92,"line":747},[1817],{"type":50,"tag":90,"props":1818,"children":1819},{},[1820],{"type":56,"value":1821},"print(text)\n",{"type":50,"tag":188,"props":1823,"children":1825},{"id":1824},"add-watermark",[1826],{"type":56,"value":1827},"Add Watermark",{"type":50,"tag":78,"props":1829,"children":1831},{"className":80,"code":1830,"language":82,"meta":83,"style":83},"from pypdf import PdfReader, PdfWriter\n\n# Create watermark (or load existing)\nwatermark = PdfReader(\"watermark.pdf\").pages[0]\n\n# Apply to all pages\nreader = PdfReader(\"document.pdf\")\nwriter = PdfWriter()\n\nfor page in reader.pages:\n    page.merge_page(watermark)\n    writer.add_page(page)\n\nwith open(\"watermarked.pdf\", \"wb\") as output:\n    writer.write(output)\n",[1832],{"type":50,"tag":86,"props":1833,"children":1834},{"__ignoreMap":83},[1835,1842,1849,1857,1865,1872,1880,1887,1894,1901,1908,1916,1923,1930,1938],{"type":50,"tag":90,"props":1836,"children":1837},{"class":92,"line":93},[1838],{"type":50,"tag":90,"props":1839,"children":1840},{},[1841],{"type":56,"value":99},{"type":50,"tag":90,"props":1843,"children":1844},{"class":92,"line":102},[1845],{"type":50,"tag":90,"props":1846,"children":1847},{"emptyLinePlaceholder":106},[1848],{"type":56,"value":109},{"type":50,"tag":90,"props":1850,"children":1851},{"class":92,"line":112},[1852],{"type":50,"tag":90,"props":1853,"children":1854},{},[1855],{"type":56,"value":1856},"# Create watermark (or load existing)\n",{"type":50,"tag":90,"props":1858,"children":1859},{"class":92,"line":121},[1860],{"type":50,"tag":90,"props":1861,"children":1862},{},[1863],{"type":56,"value":1864},"watermark = PdfReader(\"watermark.pdf\").pages[0]\n",{"type":50,"tag":90,"props":1866,"children":1867},{"class":92,"line":130},[1868],{"type":50,"tag":90,"props":1869,"children":1870},{"emptyLinePlaceholder":106},[1871],{"type":56,"value":109},{"type":50,"tag":90,"props":1873,"children":1874},{"class":92,"line":139},[1875],{"type":50,"tag":90,"props":1876,"children":1877},{},[1878],{"type":56,"value":1879},"# Apply to all pages\n",{"type":50,"tag":90,"props":1881,"children":1882},{"class":92,"line":147},[1883],{"type":50,"tag":90,"props":1884,"children":1885},{},[1886],{"type":56,"value":127},{"type":50,"tag":90,"props":1888,"children":1889},{"class":92,"line":156},[1890],{"type":50,"tag":90,"props":1891,"children":1892},{},[1893],{"type":56,"value":230},{"type":50,"tag":90,"props":1895,"children":1896},{"class":92,"line":165},[1897],{"type":50,"tag":90,"props":1898,"children":1899},{"emptyLinePlaceholder":106},[1900],{"type":56,"value":109},{"type":50,"tag":90,"props":1902,"children":1903},{"class":92,"line":174},[1904],{"type":50,"tag":90,"props":1905,"children":1906},{},[1907],{"type":56,"value":171},{"type":50,"tag":90,"props":1909,"children":1910},{"class":92,"line":712},[1911],{"type":50,"tag":90,"props":1912,"children":1913},{},[1914],{"type":56,"value":1915},"    page.merge_page(watermark)\n",{"type":50,"tag":90,"props":1917,"children":1918},{"class":92,"line":720},[1919],{"type":50,"tag":90,"props":1920,"children":1921},{},[1922],{"type":56,"value":330},{"type":50,"tag":90,"props":1924,"children":1925},{"class":92,"line":729},[1926],{"type":50,"tag":90,"props":1927,"children":1928},{"emptyLinePlaceholder":106},[1929],{"type":56,"value":109},{"type":50,"tag":90,"props":1931,"children":1932},{"class":92,"line":738},[1933],{"type":50,"tag":90,"props":1934,"children":1935},{},[1936],{"type":56,"value":1937},"with open(\"watermarked.pdf\", \"wb\") as output:\n",{"type":50,"tag":90,"props":1939,"children":1940},{"class":92,"line":747},[1941],{"type":50,"tag":90,"props":1942,"children":1943},{},[1944],{"type":56,"value":285},{"type":50,"tag":188,"props":1946,"children":1948},{"id":1947},"extract-images",[1949],{"type":56,"value":1950},"Extract Images",{"type":50,"tag":78,"props":1952,"children":1954},{"className":1211,"code":1953,"language":1213,"meta":83,"style":83},"# Using pdfimages (poppler-utils)\npdfimages -j input.pdf output_prefix\n\n# This extracts all images as output_prefix-000.jpg, output_prefix-001.jpg, etc.\n",[1955],{"type":50,"tag":86,"props":1956,"children":1957},{"__ignoreMap":83},[1958,1966,1988,1995],{"type":50,"tag":90,"props":1959,"children":1960},{"class":92,"line":93},[1961],{"type":50,"tag":90,"props":1962,"children":1963},{"style":1223},[1964],{"type":56,"value":1965},"# Using pdfimages (poppler-utils)\n",{"type":50,"tag":90,"props":1967,"children":1968},{"class":92,"line":102},[1969,1974,1979,1983],{"type":50,"tag":90,"props":1970,"children":1971},{"style":1231},[1972],{"type":56,"value":1973},"pdfimages",{"type":50,"tag":90,"props":1975,"children":1976},{"style":1237},[1977],{"type":56,"value":1978}," -j",{"type":50,"tag":90,"props":1980,"children":1981},{"style":1237},[1982],{"type":56,"value":1240},{"type":50,"tag":90,"props":1984,"children":1985},{"style":1237},[1986],{"type":56,"value":1987}," output_prefix\n",{"type":50,"tag":90,"props":1989,"children":1990},{"class":92,"line":112},[1991],{"type":50,"tag":90,"props":1992,"children":1993},{"emptyLinePlaceholder":106},[1994],{"type":56,"value":109},{"type":50,"tag":90,"props":1996,"children":1997},{"class":92,"line":121},[1998],{"type":50,"tag":90,"props":1999,"children":2000},{"style":1223},[2001],{"type":56,"value":2002},"# This extracts all images as output_prefix-000.jpg, output_prefix-001.jpg, etc.\n",{"type":50,"tag":188,"props":2004,"children":2006},{"id":2005},"password-protection",[2007],{"type":56,"value":2008},"Password Protection",{"type":50,"tag":78,"props":2010,"children":2012},{"className":80,"code":2011,"language":82,"meta":83,"style":83},"from pypdf import PdfReader, PdfWriter\n\nreader = PdfReader(\"input.pdf\")\nwriter = PdfWriter()\n\nfor page in reader.pages:\n    writer.add_page(page)\n\n# Add password\nwriter.encrypt(\"userpassword\", \"ownerpassword\")\n\nwith open(\"encrypted.pdf\", \"wb\") as output:\n    writer.write(output)\n",[2013],{"type":50,"tag":86,"props":2014,"children":2015},{"__ignoreMap":83},[2016,2023,2030,2037,2044,2051,2058,2065,2072,2080,2088,2095,2103],{"type":50,"tag":90,"props":2017,"children":2018},{"class":92,"line":93},[2019],{"type":50,"tag":90,"props":2020,"children":2021},{},[2022],{"type":56,"value":99},{"type":50,"tag":90,"props":2024,"children":2025},{"class":92,"line":102},[2026],{"type":50,"tag":90,"props":2027,"children":2028},{"emptyLinePlaceholder":106},[2029],{"type":56,"value":109},{"type":50,"tag":90,"props":2031,"children":2032},{"class":92,"line":112},[2033],{"type":50,"tag":90,"props":2034,"children":2035},{},[2036],{"type":56,"value":306},{"type":50,"tag":90,"props":2038,"children":2039},{"class":92,"line":121},[2040],{"type":50,"tag":90,"props":2041,"children":2042},{},[2043],{"type":56,"value":230},{"type":50,"tag":90,"props":2045,"children":2046},{"class":92,"line":130},[2047],{"type":50,"tag":90,"props":2048,"children":2049},{"emptyLinePlaceholder":106},[2050],{"type":56,"value":109},{"type":50,"tag":90,"props":2052,"children":2053},{"class":92,"line":139},[2054],{"type":50,"tag":90,"props":2055,"children":2056},{},[2057],{"type":56,"value":171},{"type":50,"tag":90,"props":2059,"children":2060},{"class":92,"line":147},[2061],{"type":50,"tag":90,"props":2062,"children":2063},{},[2064],{"type":56,"value":330},{"type":50,"tag":90,"props":2066,"children":2067},{"class":92,"line":156},[2068],{"type":50,"tag":90,"props":2069,"children":2070},{"emptyLinePlaceholder":106},[2071],{"type":56,"value":109},{"type":50,"tag":90,"props":2073,"children":2074},{"class":92,"line":165},[2075],{"type":50,"tag":90,"props":2076,"children":2077},{},[2078],{"type":56,"value":2079},"# Add password\n",{"type":50,"tag":90,"props":2081,"children":2082},{"class":92,"line":174},[2083],{"type":50,"tag":90,"props":2084,"children":2085},{},[2086],{"type":56,"value":2087},"writer.encrypt(\"userpassword\", \"ownerpassword\")\n",{"type":50,"tag":90,"props":2089,"children":2090},{"class":92,"line":712},[2091],{"type":50,"tag":90,"props":2092,"children":2093},{"emptyLinePlaceholder":106},[2094],{"type":56,"value":109},{"type":50,"tag":90,"props":2096,"children":2097},{"class":92,"line":720},[2098],{"type":50,"tag":90,"props":2099,"children":2100},{},[2101],{"type":56,"value":2102},"with open(\"encrypted.pdf\", \"wb\") as output:\n",{"type":50,"tag":90,"props":2104,"children":2105},{"class":92,"line":729},[2106],{"type":50,"tag":90,"props":2107,"children":2108},{},[2109],{"type":56,"value":285},{"type":50,"tag":59,"props":2111,"children":2113},{"id":2112},"quick-reference",[2114],{"type":56,"value":2115},"Quick Reference",{"type":50,"tag":2117,"props":2118,"children":2119},"table",{},[2120,2144],{"type":50,"tag":2121,"props":2122,"children":2123},"thead",{},[2124],{"type":50,"tag":2125,"props":2126,"children":2127},"tr",{},[2128,2134,2139],{"type":50,"tag":2129,"props":2130,"children":2131},"th",{},[2132],{"type":56,"value":2133},"Task",{"type":50,"tag":2129,"props":2135,"children":2136},{},[2137],{"type":56,"value":2138},"Best Tool",{"type":50,"tag":2129,"props":2140,"children":2141},{},[2142],{"type":56,"value":2143},"Command\u002FCode",{"type":50,"tag":2145,"props":2146,"children":2147},"tbody",{},[2148,2170,2187,2209,2230,2248,2269,2287],{"type":50,"tag":2125,"props":2149,"children":2150},{},[2151,2156,2161],{"type":50,"tag":2152,"props":2153,"children":2154},"td",{},[2155],{"type":56,"value":200},{"type":50,"tag":2152,"props":2157,"children":2158},{},[2159],{"type":56,"value":2160},"pypdf",{"type":50,"tag":2152,"props":2162,"children":2163},{},[2164],{"type":50,"tag":86,"props":2165,"children":2167},{"className":2166},[],[2168],{"type":56,"value":2169},"writer.add_page(page)",{"type":50,"tag":2125,"props":2171,"children":2172},{},[2173,2178,2182],{"type":50,"tag":2152,"props":2174,"children":2175},{},[2176],{"type":56,"value":2177},"Split PDFs",{"type":50,"tag":2152,"props":2179,"children":2180},{},[2181],{"type":56,"value":2160},{"type":50,"tag":2152,"props":2183,"children":2184},{},[2185],{"type":56,"value":2186},"One page per file",{"type":50,"tag":2125,"props":2188,"children":2189},{},[2190,2195,2200],{"type":50,"tag":2152,"props":2191,"children":2192},{},[2193],{"type":56,"value":2194},"Extract text",{"type":50,"tag":2152,"props":2196,"children":2197},{},[2198],{"type":56,"value":2199},"pdfplumber",{"type":50,"tag":2152,"props":2201,"children":2202},{},[2203],{"type":50,"tag":86,"props":2204,"children":2206},{"className":2205},[],[2207],{"type":56,"value":2208},"page.extract_text()",{"type":50,"tag":2125,"props":2210,"children":2211},{},[2212,2217,2221],{"type":50,"tag":2152,"props":2213,"children":2214},{},[2215],{"type":56,"value":2216},"Extract tables",{"type":50,"tag":2152,"props":2218,"children":2219},{},[2220],{"type":56,"value":2199},{"type":50,"tag":2152,"props":2222,"children":2223},{},[2224],{"type":50,"tag":86,"props":2225,"children":2227},{"className":2226},[],[2228],{"type":56,"value":2229},"page.extract_tables()",{"type":50,"tag":2125,"props":2231,"children":2232},{},[2233,2238,2243],{"type":50,"tag":2152,"props":2234,"children":2235},{},[2236],{"type":56,"value":2237},"Create PDFs",{"type":50,"tag":2152,"props":2239,"children":2240},{},[2241],{"type":56,"value":2242},"reportlab",{"type":50,"tag":2152,"props":2244,"children":2245},{},[2246],{"type":56,"value":2247},"Canvas or Platypus",{"type":50,"tag":2125,"props":2249,"children":2250},{},[2251,2256,2260],{"type":50,"tag":2152,"props":2252,"children":2253},{},[2254],{"type":56,"value":2255},"Command line merge",{"type":50,"tag":2152,"props":2257,"children":2258},{},[2259],{"type":56,"value":1340},{"type":50,"tag":2152,"props":2261,"children":2262},{},[2263],{"type":50,"tag":86,"props":2264,"children":2266},{"className":2265},[],[2267],{"type":56,"value":2268},"qpdf --empty --pages ...",{"type":50,"tag":2125,"props":2270,"children":2271},{},[2272,2277,2282],{"type":50,"tag":2152,"props":2273,"children":2274},{},[2275],{"type":56,"value":2276},"OCR scanned PDFs",{"type":50,"tag":2152,"props":2278,"children":2279},{},[2280],{"type":56,"value":2281},"pytesseract",{"type":50,"tag":2152,"props":2283,"children":2284},{},[2285],{"type":56,"value":2286},"Convert to image first",{"type":50,"tag":2125,"props":2288,"children":2289},{},[2290,2295,2300],{"type":50,"tag":2152,"props":2291,"children":2292},{},[2293],{"type":56,"value":2294},"Fill PDF forms",{"type":50,"tag":2152,"props":2296,"children":2297},{},[2298],{"type":56,"value":2299},"pdf-lib or pypdf (see FORMS.md)",{"type":50,"tag":2152,"props":2301,"children":2302},{},[2303],{"type":56,"value":2304},"See FORMS.md",{"type":50,"tag":59,"props":2306,"children":2308},{"id":2307},"next-steps",[2309],{"type":56,"value":2310},"Next Steps",{"type":50,"tag":2312,"props":2313,"children":2314},"ul",{},[2315,2321,2326,2331],{"type":50,"tag":2316,"props":2317,"children":2318},"li",{},[2319],{"type":56,"value":2320},"For advanced pypdfium2 usage, see REFERENCE.md",{"type":50,"tag":2316,"props":2322,"children":2323},{},[2324],{"type":56,"value":2325},"For JavaScript libraries (pdf-lib), see REFERENCE.md",{"type":50,"tag":2316,"props":2327,"children":2328},{},[2329],{"type":56,"value":2330},"If you need to fill out a PDF form, follow the instructions in FORMS.md",{"type":50,"tag":2316,"props":2332,"children":2333},{},[2334],{"type":56,"value":2335},"For troubleshooting guides, see REFERENCE.md",{"type":50,"tag":2337,"props":2338,"children":2339},"style",{},[2340],{"type":56,"value":2341},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2343,"total":2512},[2344,2365,2386,2396,2409,2422,2432,2442,2461,2476,2491,2497],{"slug":2345,"name":2345,"fn":2346,"description":2347,"org":2348,"tags":2349,"stars":2362,"repoUrl":2363,"updatedAt":2364},"agentcore-investigation","investigate Bedrock AgentCore runtime sessions","Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session\u002Ftrace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2350,2353,2356,2359],{"name":2351,"slug":2352,"type":15},"AWS","aws",{"name":2354,"slug":2355,"type":15},"Debugging","debugging",{"name":2357,"slug":2358,"type":15},"Logs","logs",{"name":2360,"slug":2361,"type":15},"Observability","observability",9427,"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fmcp","2026-07-12T08:37:22.601527",{"slug":2366,"name":2367,"fn":2368,"description":2369,"org":2370,"tags":2371,"stars":2362,"repoUrl":2363,"updatedAt":2385},"amazon-aurora-dsql","amazon aurora dsql","build applications with Aurora DSQL","Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, FK replacement code generation, OCC retry patterns, ORM migration (Django\u002FHibernate\u002FRails), DDL operations, query plan explainability, SQL compatibility validation, and bulk data loading. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow, DSQL foreign key, DSQL OCC retry, DSQL multi-region, load into DSQL, load CSV into DSQL, bulk load DSQL, aurora-dsql-loader.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2372,2375,2376,2379,2382],{"name":2373,"slug":2374,"type":15},"Aurora","aurora",{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},"Database","database",{"name":2380,"slug":2381,"type":15},"Serverless","serverless",{"name":2383,"slug":2384,"type":15},"SQL","sql","2026-07-12T08:36:45.053393",{"slug":2387,"name":2388,"fn":2368,"description":2369,"org":2389,"tags":2390,"stars":2362,"repoUrl":2363,"updatedAt":2395},"aurora-dsql","aurora dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2391,2392,2393,2394],{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},{"name":2380,"slug":2381,"type":15},{"name":2383,"slug":2384,"type":15},"2026-07-12T08:36:42.694299",{"slug":2397,"name":2398,"fn":2368,"description":2369,"org":2399,"tags":2400,"stars":2362,"repoUrl":2363,"updatedAt":2408},"aws-dsql","aws dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2401,2402,2403,2406,2407],{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},{"name":2404,"slug":2405,"type":15},"Migration","migration",{"name":2380,"slug":2381,"type":15},{"name":2383,"slug":2384,"type":15},"2026-07-12T08:36:38.584057",{"slug":2410,"name":2411,"fn":2368,"description":2369,"org":2412,"tags":2413,"stars":2362,"repoUrl":2363,"updatedAt":2421},"distributed-postgres","distributed postgres",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2414,2415,2416,2419,2420],{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},{"name":2417,"slug":2418,"type":15},"PostgreSQL","postgresql",{"name":2380,"slug":2381,"type":15},{"name":2383,"slug":2384,"type":15},"2026-07-12T08:36:46.530743",{"slug":2423,"name":2424,"fn":2368,"description":2369,"org":2425,"tags":2426,"stars":2362,"repoUrl":2363,"updatedAt":2431},"distributed-sql","distributed sql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2427,2428,2429,2430],{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},{"name":2380,"slug":2381,"type":15},{"name":2383,"slug":2384,"type":15},"2026-07-12T08:36:48.104182",{"slug":2433,"name":2433,"fn":2368,"description":2369,"org":2434,"tags":2435,"stars":2362,"repoUrl":2363,"updatedAt":2441},"dsql",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2436,2437,2438,2439,2440],{"name":2351,"slug":2352,"type":15},{"name":2377,"slug":2378,"type":15},{"name":2404,"slug":2405,"type":15},{"name":2380,"slug":2381,"type":15},{"name":2383,"slug":2384,"type":15},"2026-07-12T08:36:36.374512",{"slug":2443,"name":2443,"fn":2444,"description":2445,"org":2446,"tags":2447,"stars":22,"repoUrl":23,"updatedAt":2460},"cost-efficiency-analyzer","analyze cost efficiency and expenses","Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for \"are we spending too much\", \"cost breakdown\", \"expense analysis\", or \"how efficient are our operations\". NOT for revenue or top-line analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2448,2451,2454,2457],{"name":2449,"slug":2450,"type":15},"Accounting","accounting",{"name":2452,"slug":2453,"type":15},"Analytics","analytics",{"name":2455,"slug":2456,"type":15},"Cost Optimization","cost-optimization",{"name":2458,"slug":2459,"type":15},"Finance","finance","2026-07-12T08:40:03.29555",{"slug":2462,"name":2462,"fn":2463,"description":2464,"org":2465,"tags":2466,"stars":22,"repoUrl":23,"updatedAt":2475},"executive-financial-briefing","generate executive financial briefings","Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or \"how is the business doing\". Covers the full P&L picture in one page. Also use for \"give me the highlights\", \"what do I need to know\", or \"quick financial update\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2467,2468,2469,2472],{"name":2351,"slug":2352,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2470,"slug":2471,"type":15},"Management","management",{"name":2473,"slug":2474,"type":15},"Reporting","reporting","2026-07-12T08:40:02.066471",{"slug":2477,"name":2477,"fn":2478,"description":2479,"org":2480,"tags":2481,"stars":22,"repoUrl":23,"updatedAt":2490},"multi-quarter-trend-analysis","analyze multi-quarter financial trends","Analyzes financial trends across multiple quarters by comparing P&L metrics over time. Use when the user wants to see trends, patterns, trajectories, or directional movement across 3 or more quarters. Also use for \"how are we trending\", \"show me the trend\", \"track performance over time\", \"quarter over quarter comparison across all quarters\", or any multi-period longitudinal analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2482,2483,2484,2487],{"name":2452,"slug":2453,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2485,"slug":2486,"type":15},"Financial Statements","financial-statements",{"name":2488,"slug":2489,"type":15},"Variance Analysis","variance-analysis","2026-07-12T08:40:00.79141",{"slug":4,"name":4,"fn":5,"description":6,"org":2492,"tags":2493,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2494,2495,2496],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":14,"slug":4,"type":15},{"slug":2498,"name":2498,"fn":2499,"description":2500,"org":2501,"tags":2502,"stars":22,"repoUrl":23,"updatedAt":2511},"quarterly-kpi-calculator","calculate quarterly financial KPIs","Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ. Also use for quarterly performance review, P&L analysis, or interpreting financial ratios against benchmarks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2503,2504,2507,2508],{"name":2449,"slug":2450,"type":15},{"name":2505,"slug":2506,"type":15},"Data Analysis","data-analysis",{"name":2458,"slug":2459,"type":15},{"name":2509,"slug":2510,"type":15},"KPI","kpi","2026-07-12T08:39:59.54971",150,{"items":2514,"total":139},[2515,2522,2529,2536,2542,2549],{"slug":2443,"name":2443,"fn":2444,"description":2445,"org":2516,"tags":2517,"stars":22,"repoUrl":23,"updatedAt":2460},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2518,2519,2520,2521],{"name":2449,"slug":2450,"type":15},{"name":2452,"slug":2453,"type":15},{"name":2455,"slug":2456,"type":15},{"name":2458,"slug":2459,"type":15},{"slug":2462,"name":2462,"fn":2463,"description":2464,"org":2523,"tags":2524,"stars":22,"repoUrl":23,"updatedAt":2475},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2525,2526,2527,2528],{"name":2351,"slug":2352,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2470,"slug":2471,"type":15},{"name":2473,"slug":2474,"type":15},{"slug":2477,"name":2477,"fn":2478,"description":2479,"org":2530,"tags":2531,"stars":22,"repoUrl":23,"updatedAt":2490},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2532,2533,2534,2535],{"name":2452,"slug":2453,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2485,"slug":2486,"type":15},{"name":2488,"slug":2489,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":2537,"tags":2538,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2539,2540,2541],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":14,"slug":4,"type":15},{"slug":2498,"name":2498,"fn":2499,"description":2500,"org":2543,"tags":2544,"stars":22,"repoUrl":23,"updatedAt":2511},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2545,2546,2547,2548],{"name":2449,"slug":2450,"type":15},{"name":2505,"slug":2506,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2509,"slug":2510,"type":15},{"slug":2550,"name":2550,"fn":2551,"description":2552,"org":2553,"tags":2554,"stars":22,"repoUrl":23,"updatedAt":2561},"revenue-growth-analyst","analyze revenue growth patterns","Deep-dives into revenue growth patterns, growth rates, and growth quality. Use when the user asks specifically about revenue growth, top-line performance, sales growth, revenue acceleration or deceleration, growth trajectory, or wants to understand what is driving revenue changes. NOT for cost or margin analysis — this skill is revenue-focused only.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2555,2556,2557,2558],{"name":2452,"slug":2453,"type":15},{"name":2458,"slug":2459,"type":15},{"name":2473,"slug":2474,"type":15},{"name":2559,"slug":2560,"type":15},"Sales","sales","2026-07-12T08:39:58.217661"]