Skip to content

Commit

Permalink
Add crop marks to the front page below the images
Browse files Browse the repository at this point in the history
  • Loading branch information
pablerass committed Nov 19, 2023
1 parent 382c53b commit feff5b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cartuli/sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ def create_pdf(self, path: Path | str = None) -> None:
c = canvas.Canvas(str(path), pagesize=tuple(self.size))
for page in range(1, self.pages + 1):
# Front
for line in self.crop_marks:
c.setLineWidth(0.5)
c.line(*list(line))

for i, card in enumerate(self.page_cards(page)):
num_card = i + 1
card_image = card.front.image
Expand Down

0 comments on commit feff5b2

Please sign in to comment.