diff options
| author | 2023-12-15 18:40:31 +0800 | |
|---|---|---|
| committer | 2023-12-15 18:40:31 +0800 | |
| commit | 02b019a663aff80cd9e51ec91dccab81a15a14d8 (patch) | |
| tree | f815694823f993971fe2a609825e8354af3ac94a /tests/reportlab | |
| parent | 57e09bc268cde8f73d1fc828f0ae80e16c9337d4 (diff) | |
| download | infini-02b019a663aff80cd9e51ec91dccab81a15a14d8.tar.gz infini-02b019a663aff80cd9e51ec91dccab81a15a14d8.zip | |
chore(tests): test generate `RulePackage`
Diffstat (limited to 'tests/reportlab')
| -rw-r--r-- | tests/reportlab/1.1.py | 32 | ||||
| -rw-r--r-- | tests/reportlab/card.pdf | bin | 50964 -> 0 bytes | |||
| -rw-r--r-- | tests/reportlab/card.png | bin | 1945 -> 0 bytes |
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/reportlab/1.1.py b/tests/reportlab/1.1.py deleted file mode 100644 index 0cd4ee8d..00000000 --- a/tests/reportlab/1.1.py +++ /dev/null @@ -1,32 +0,0 @@ -from reportlab.lib import colors -from reportlab.graphics.shapes import (Drawing, Rect, String, Line, Group) -from reportlab.pdfbase.pdfmetrics import registerFont -from reportlab.pdfbase.ttfonts import TTFont - -# font -registerFont(TTFont("Times", "C:\Windows\Fonts\Times.ttf")) - -drawing = Drawing(400, 200) -# beige rectangle -r1 = Rect(0, 0, 400, 200, 0, 0) -r1.fillColor = colors.beige -drawing.add(r1) - -# logo -wave = Group( - Line(10, -5, 10, 10), - Line(20, -15, 20, 20), - Line(30, -5, 30, 10), - Line(40, -15, 40, 20), - Line(50, -5, 50, 10), - Line(60, -15, 60, 20), - Line(70, -5, 70, 10), - Line(80, -15, 80, 20), - Line(90, -5, 90, 10), - String(25, -25, "Wave Audio", fontName='Times') -) -wave.translate(10, 170) -drawing.add(wave) - -# save -drawing.save(formats=['pdf', 'png'], outDir=".", fnRoot="card")
\ No newline at end of file diff --git a/tests/reportlab/card.pdf b/tests/reportlab/card.pdf Binary files differdeleted file mode 100644 index 4cb0b58a..00000000 --- a/tests/reportlab/card.pdf +++ /dev/null diff --git a/tests/reportlab/card.png b/tests/reportlab/card.png Binary files differdeleted file mode 100644 index 5c1cd4a5..00000000 --- a/tests/reportlab/card.png +++ /dev/null |
