From 8b654fa91b70bd38fee3117e8618f34efff5a869 Mon Sep 17 00:00:00 2001 From: Peter John Story Date: Sun, 5 Jan 2025 10:17:33 +0100 Subject: [PATCH] Correct comments on the clipart frame code --- cewe2pdf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cewe2pdf.py b/cewe2pdf.py index fbcb0d0..39f2024 100755 --- a/cewe2pdf.py +++ b/cewe2pdf.py @@ -1010,7 +1010,6 @@ def getClipConfig(Element): def processAreaClipartTag(clipartElement, areaHeight, areaRot, areaWidth, pdf, transx, transy, clipArtDecoration): clipartID = int(clipartElement.get('designElementId')) - # print("Warning: clip-art elements are not supported. (designElementId = {})".format(clipartID)) # designElementId 0 seems to be a special empty placeholder if clipartID == 0: @@ -1119,8 +1118,9 @@ def processElements(additional_fonts, fotobook, imagedir, # Clip-Art # In the clipartarea there are two similar elements, the and the . # We are using the element here - if area.get('areatype') == 'clipartarea': # only look for alpha and clipart within clipartarea tags - decoration = area.find('decoration') # decoration tag + if area.get('areatype') == 'clipartarea': + # within clipartarea tags we need the decoration for alpha and border information + decoration = area.find('decoration') for clipartElement in area.findall('clipart'): processAreaClipartTag(clipartElement, areaHeight, areaRot, areaWidth, pdf, transx, transy, decoration) return