Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fbba0a3

Browse files
AzzyAzzy
Azzy
authored and
Azzy
committed
update 3
1 parent 4dd7eff commit fbba0a3

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

‎main.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,34 @@
88
# adds page to document
99
pdf.add_page()
1010

11+
"""
1112
# adding images to document (with hyperlink)
12-
pdf.image("shadow-of-war.png", x=175, y=5, w=30, h=30, link="https://www.shadowofwar.com/purchase/")
13-
pdf.image("shadow-of-war2.png", x=175, y=35, w=30, h=30, link="")
14-
pdf.image("shadow-of-war3.png", x=175, y=65, w=30, h=30, link="")
13+
pdf.image("", x=175, y=5, w=30, h=30, link="")
14+
pdf.image("", x=175, y=37, w=30, h=30, link="")
15+
pdf.image("", x=175, y=70, w=30, h=30, link="")
16+
"""
1517

1618
pdf.set_font("Arial", size=17)
17-
pdf.cell(5, 10, txt="Why you should play Shadow of war in 2022!")
19+
pdf.cell(w=0, h=5, txt="Why should you learn Python in 2022?", ln=1)
1820

1921
pdf.set_font("Arial", size=10)
20-
pdf.text(5, 18, txt="By Arsalan Arref")
22+
pdf.cell(w=0, h=10, txt="By Arsalan Arref", ln=1)
2123

24+
# set position
25+
pdf.set_xy(x=10, y=30)
26+
pdf.set_font("Arial", style="B", size=10)
27+
pdf.cell(w=0, h=5, txt="Temp", ln=1)
2228

29+
pdf.set_font("Arial", size=10)
30+
pdf.multi_cell(w=0, h=5, txt="Python is the easiest programming language to learn,"+
31+
" it is simple, easy to read, and it features english syntax. Therefore,"+
32+
" If you are new to programming, then Python is your goto!")
2333

24-
pdf.cell(w=0, h=5, txt="Test", border=1, align="C", ln=1)
34+
pdf.set_xy(x=10, y=55)
35+
pdf.set_font("Arial", style="B", size=10)
36+
pdf.cell(w=0, h=5, txt="What can you do with Python?")
2537

26-
pdf.multi_cell(w=0, h=5, txt="In this article, I will be sharing my opinion on why I think that this game still rocks, \neven though its over 5 years old.", border=1)
38+
pdf.cell(w=0, h=5, txt="Temp", border=1, ln=1)
2739

2840
# name document and add its path
2941
pdf.output("project.pdf")

‎project.pdf

-972 KB
Binary file not shown.

‎shadow-of-war.png

-371 KB
Binary file not shown.

‎shadow-of-war2.png

-463 KB
Binary file not shown.

‎shadow-of-war3.png

-244 KB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /