Skip to content

Commit

Permalink
Use css for table (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
vb64 authored Oct 28, 2024
1 parent 0a39761 commit 5411450
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ valid-metaclass-classmethod-first-arg=mcs

# Maximum number of arguments for function / method
max-args=15
max-positional-arguments=10

# Maximum number of attributes for a class (see R0902).
max-attributes=15
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ text = """# Section with Table
|ListCell|<ul><li>FirstBullet</li><li>SecondBullet</li></ul>|
"""

pdf.add_section(Section(text))
css = "table, th, td {border: 1px solid black;}"

pdf.add_section(Section(text), user_css=css)
```

Set the properties of the pdf document.
Expand Down
4 changes: 3 additions & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ text = """# Section with Table
|ListCell|<ul><li>FirstBullet</li><li>SecondBullet</li></ul>|
"""

pdf.add_section(Section(text))
css = "table, th, td {border: 1px solid black;}"

pdf.add_section(Section(text), user_css=css)
```

Устанавливаем свойства pdf документа.
Expand Down

0 comments on commit 5411450

Please sign in to comment.