Building Agentic Document Intelligence Pipelines: Creating Scientific Figures with AutoFigure
heading(“4. Creating a custom reference figure”) reference_dir = OUTPUT_ROOT / “01_custom_references” reference_dir.mkdir(parents=True, exist_ok=True) reference_path = reference_dir / “reference_architecture_style.png” W, H = 1333, 750 img = Image.new(“RGB”, (W, H), “white”) draw = ImageDraw.Draw(img) try: title_font = ImageFont.truetype(“DejaVuSans-Bold.ttf”, 36) box_font = ImageFont.truetype(“DejaVuSans-Bold.ttf”, 24) small_font = ImageFont.truetype(“DejaVuSans.ttf”, 18) except Exception: title_font = None box_font = None small_font =…
