generate_flashcards_pdf
Turn JSON card data into PDF flashcards with customizable layout, title, and output path. Supports single-card or A4 multi-card formats.
Instructions
Generate PDF flashcards from JSON card data.
Args: cards: List of flashcard data with 'front', 'back', and optional 'tags' title: Title for the flashcard set description: Description of the flashcard set layout: Layout type ('single' or 'a4_8') output_path: Directory path to save the PDF file show_deck_name: Whether to show the title on the PDF show_card_index: Whether to show the card index on the PDF
Returns: Success message with file path and size information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | ||
| title | No | My Flashcard Set | |
| layout | No | a4_8 | |
| description | No | PDF format flashcards | |
| output_path | No | ||
| show_deck_name | No | ||
| show_card_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |