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 4dd7eff

Browse files
AzzyAzzy
Azzy
authored and
Azzy
committed
update 2
1 parent 1cdebc2 commit 4dd7eff

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

‎.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"cSpell.words": [
3+
"Arref",
34
"Arsalan",
4-
"fpdf"
5+
"fpdf",
6+
"prettytable"
57
]
68
}

‎main.py

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
from fpdf import FPDF
2+
from prettytable import PrettyTable
23

4+
article = PrettyTable(["Pros", "Cons"])
35
pdf = FPDF()
4-
my_pdf = FPDF(orientation="p", format="A4")
6+
pdf = FPDF(orientation="p", format="A4")
57

68
# adds page to document
7-
my_pdf=pdf.add_page()
9+
pdf.add_page()
810

9-
image1 = pdf.image("shadow-of-war.png", x=85, y=10, w=40, h=40, link="https://www.shadowofwar.com/purchase/")
11+
# 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="")
15+
16+
pdf.set_font("Arial", size=17)
17+
pdf.cell(5, 10, txt="Why you should play Shadow of war in 2022!")
18+
19+
pdf.set_font("Arial", size=10)
20+
pdf.text(5, 18, txt="By Arsalan Arref")
1021

11-
# name document and add its path
12-
my_pdf = pdf.output("project.pdf")
1322

1423

24+
pdf.cell(w=0, h=5, txt="Test", border=1, align="C", ln=1)
25+
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)
27+
28+
# name document and add its path
29+
pdf.output("project.pdf")

‎notes.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
https://pyfpdf.github.io/fpdf2/Images.html
22

3-
https://pyfpdf.readthedocs.io/en/latest/search.html?q=grid
3+
https://pyfpdf.readthedocs.io/en/latest/search.html?q=grid
4+
5+
6+
Youtube
7+
https://www.youtube.com/watch?v=qB44PreHWow
8+
https://www.youtube.com/watch?v=KxTStrfYZ_E
9+

‎project.pdf

628 KB
Binary file not shown.

‎shadow-of-war2.png

463 KB
Loading[フレーム]

‎shadow-of-war3.png

244 KB
Loading[フレーム]

0 commit comments

Comments
(0)

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