PDF Generator

Read and generate PDF files. Use this skill when you need to extract text from PDFs or create new PDF documents from text or markdown content.

zhaoxuanZzz Updated

File contents

PDF Generator & Reader

This skill provides tools to read text from PDF files and generate new PDFs from text content.

Dependencies

  • python3
  • reportlab
  • pdfplumber

Usage

Reading PDFs

To extract text from a PDF file:

python3 scripts/read_pdf.py <path_to_pdf>

Generating PDFs

To generate a PDF from a text file:

python3 scripts/generate_pdf.py <input_text_file> <output_pdf_file>

Scripts

  • scripts/read_pdf.py: Extracts text from a PDF file.
  • scripts/generate_pdf.py: Converts a text file to a PDF file.

zhaoxuanZzz/skills/tree/main/skills/pdf-generator commit b17fa4c7d1

Frequently asked questions

npx skillmds@latest add zhaoxuanzzz/pdf-generator