A collection of scripts for PDF operations including content extraction, form filling, and image conversion. Use this skill to process PDF documents, extract text/tables, or automate PDF form handling.From its SKILL.md
npx -y skills add valkryhx/google_adk_agent --skill pdfAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.5 KB, 806 tokens by cl100k_base, as published. Nobody here has run it
PDF Skill
Overview
This skill provides a comprehensive set of tools for working with PDF files. It supports extracting text and tables, converting pages to images, and filling out both fillable and non-fillable PDF forms.
Usage
1. Extract PDF Content
Extracts text and tables from a PDF and outputs a formatted Markdown file.
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/extract_pdf_content.py [input_pdf] [output_md]
# Unix/macOS
python skills/pdf/scripts/extract_pdf_content.py [input_pdf] [output_md]
2. Convert PDF to Images
Converts each page of a PDF into a PNG image. Useful for visual analysis or OCR.
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/convert_pdf_to_images.py [input_pdf] [output_directory]
# Unix/macOS
python skills/pdf/scripts/convert_pdf_to_images.py [input_pdf] [output_directory]
3. Handle PDF Forms
Extract Form Field Info
Identifies fillable fields in a PDF and saves their metadata to JSON.
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/extract_form_field_info.py [input_pdf] [output_json]
# Unix/macOS
python skills/pdf/scripts/extract_form_field_info.py [input_pdf] [output_json]
Fill Fillable Fields
Fills standard PDF form fields using values from a JSON file.
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/fill_fillable_fields.py [input_pdf] [field_values_json] [output_pdf]
# Unix/macOS
python skills/pdf/scripts/fill_fillable_fields.py [input_pdf] [field_values_json] [output_pdf]
Fill with Annotations
Fills non-fillable PDFs by adding text annotations at specific coordinates.
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/fill_pdf_form_with_annotations.py [input_pdf] [fields_json] [output_pdf]
# Unix/macOS
python skills/pdf/scripts/fill_pdf_form_with_annotations.py [input_pdf] [fields_json] [output_pdf]
Examples
User: "Extract the text from 'report.pdf' and save it to 'report.md'." Action:
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/extract_pdf_content.py "report.pdf" "report.md"
# Unix/macOS
python skills/pdf/scripts/extract_pdf_content.py "report.pdf" "report.md"
User: "Convert 'presentation.pdf' to images in the 'slides' folder." Action:
# Windows (Recommended)
cmd /c set PYTHONIOENCODING=utf-8 && python skills/pdf/scripts/convert_pdf_to_images.py "presentation.pdf" "slides"
# Unix/macOS
python skills/pdf/scripts/convert_pdf_to_images.py "presentation.pdf" "slides"
Scripts Reference
| Script | Description |
|---|---|
extract_pdf_content.py | Extracts text/tables to Markdown. |
convert_pdf_to_images.py | Converts PDF pages to PNG. |
extract_form_field_info.py | Gets fillable field metadata. |
fill_fillable_fields.py | Fills standard PDF forms. |
fill_pdf_form_with_annotations.py | Fills forms via annotations. |
check_bounding_boxes.py | Validates field coordinates. |
What ships with it: 13 files
60.3 KB alongside SKILL.md, 9 of them executable
scripts/
- check_bounding_boxes.pyruns3.1 KB
- check_bounding_boxes_test.pyruns8.6 KB
- check_fillable_fields.pyruns362 B
- convert_pdf_to_images.pyruns1.1 KB
- create_validation_image.pyruns1.6 KB
- extract_form_field_info.pyruns6.0 KB
- extract_pdf_content.pyruns4.3 KB
- fill_fillable_fields.pyruns4.7 KB
- fill_pdf_form_with_annotations.pyruns3.5 KB
- forms.md9.2 KB
- LICENSE.txt1.4 KB
- reference.md16.3 KB
- requirements.txt37 B