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:
@@ -728,7 +728,7 @@ class PDFGeneratorService:
|
|||||||
regions_to_avoid.append(element) # Tables are exclusion regions
|
regions_to_avoid.append(element) # Tables are exclusion regions
|
||||||
elif element.is_visual or element.type in [
|
elif element.is_visual or element.type in [
|
||||||
ElementType.IMAGE, ElementType.FIGURE,
|
ElementType.IMAGE, ElementType.FIGURE,
|
||||||
ElementType.CHART, ElementType.DIAGRAM
|
ElementType.CHART, ElementType.DIAGRAM, ElementType.LOGO
|
||||||
]:
|
]:
|
||||||
image_elements.append(element)
|
image_elements.append(element)
|
||||||
regions_to_avoid.append(element) # Images are exclusion regions
|
regions_to_avoid.append(element) # Images are exclusion regions
|
||||||
|
|||||||
Reference in New Issue
Block a user