📅 2023-12-29 — Session: Developed Markdown to PDF conversion workflow

🕒 00:00–03:00
🏷️ Labels: Markdown, Pdf Conversion, CSS, Pandoc, Wkhtmltopdf
📂 Project: Dev
⭐ Priority: MEDIUM

Session Goal

The session aimed to develop a comprehensive workflow for converting Markdown documents to PDF, focusing on styling and error handling.

Key Activities

  • Markdown Book Design: Created templates for book cover and copyright pages in Markdown, ensuring proper structure and legal compliance.
  • Legislative Contextualization: Explored legislative changes in Argentina by Javier Milei for inclusion in a book preface.
  • File Management: Implemented a Python script to check for the existence of Markdown files before processing.
  • PDF Conversion Techniques: Utilized Pandoc and CSS for converting Markdown to PDF, addressing styling and encoding issues.
  • Error Handling: Developed solutions for common errors in PDF conversion using Pandoc and wkhtmltopdf, including CSS and encoding problems.
  • Styling Enhancements: Provided CSS examples for styling Markdown documents and handling vertical spacing in HTML.

Achievements

  • Established a robust workflow for converting Markdown to PDF using Pandoc and CSS.
  • Successfully addressed common errors in PDF conversion processes.
  • Developed templates for book design in Markdown.

Pending Tasks

  • Further testing of the conversion workflow with different Markdown documents to ensure robustness.
  • Exploration of additional styling options for enhanced PDF aesthetics.