This commit is contained in:
dfuhrmann3 2026-07-03 15:20:25 +02:00
parent 26293f1e1e
commit 91fd15621c
1 changed files with 1 additions and 4 deletions

View File

@ -8,8 +8,6 @@ from datetime import datetime, timedelta
from decimal import Decimal, ROUND_HALF_UP
import fitz
import requests
import tempfile
from facturx import generate_from_file
from pydantic import BaseModel, Field
# ==========================================
@ -792,8 +790,7 @@ with col2:
</x:xmpmeta>
<?xpacket end="w"?>"""
# 🔥 FIX: Benutze doc.set_metadata mit dem xmp-Keyword anstelle von set_xmp_metadata
doc.set_metadata(doc.metadata, xmp=xmp_xml)
doc.set_xml_metadata(xmp_xml)
zugferd_pdf_bytes = doc.tobytes()
doc.close()