Skip to content

Commit

Permalink
Correct comments on the clipart frame code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnEnglishmanInNorway committed Jan 5, 2025
1 parent 3637177 commit 8b654fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cewe2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -1119,8 +1118,9 @@ def processElements(additional_fonts, fotobook, imagedir,
# Clip-Art
# In the clipartarea there are two similar elements, the <designElementIDs> and the <clipart>.
# We are using the <clipart> 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
Expand Down

0 comments on commit 8b654fa

Please sign in to comment.