Skip to content

Commit

Permalink
Merge pull request #3536 from mikhailprivalov/fix_formatPage
Browse files Browse the repository at this point in the history
80mm: page_format
  • Loading branch information
urchinpro authored Feb 21, 2024
2 parents 87d671c + ec02289 commit 1d31e28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions directions/forms/forms580.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def form_01(request_data):
pdfmetrics.registerFont(TTFont('Symbola', os.path.join(FONTS_FOLDER, 'Symbola.ttf')))

buffer = BytesIO()
pagesize = (80 * mm, 210 * mm)
doc = SimpleDocTemplate(buffer, pagesize=pagesize, leftMargin=2 * mm, rightMargin=2 * mm, topMargin=1 * mm, bottomMargin=1 * mm, allowSplitting=1, title="Форма {}".format("80 мм"))
pagesize = (80 * mm, 250 * mm)
doc = SimpleDocTemplate(buffer, pagesize=pagesize, leftMargin=2 * mm, rightMargin=5 * mm, topMargin=1 * mm, bottomMargin=1 * mm, allowSplitting=1, title="Форма {}".format("80 мм"))
styleSheet = getSampleStyleSheet()
style = styleSheet["Normal"]
style.fontName = "PTAstraSerifReg"
Expand Down Expand Up @@ -227,7 +227,7 @@ def form_01(request_data):
tmp.append(Paragraph('', style))
opinion.append(tmp)

tbl = Table(opinion, colWidths=(37 * mm, 37 * mm))
tbl = Table(opinion, colWidths=(35 * mm, 35 * mm))
tbl.setStyle(
TableStyle(
[
Expand Down

0 comments on commit 1d31e28

Please sign in to comment.