fix: handle LOGO element type in Direct track PDF generation

Add ElementType.LOGO to the list of visual element types in
pdf_generator_service.py so that logo images are properly
rendered in Direct track PDF output.

Root cause: edit2.pdf logo element (type="logo") was not being
categorized as an image element, so it was skipped during PDF
rendering.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
egg
2025-11-26 12:32:55 +08:00
parent 79cffe6da0
commit 5c561f4203

View File

@@ -728,7 +728,7 @@ class PDFGeneratorService:
regions_to_avoid.append(element) # Tables are exclusion regions
elif element.is_visual or element.type in [
ElementType.IMAGE, ElementType.FIGURE,
ElementType.CHART, ElementType.DIAGRAM
ElementType.CHART, ElementType.DIAGRAM, ElementType.LOGO
]:
image_elements.append(element)
regions_to_avoid.append(element) # Images are exclusion regions