Skip to content

Commit 46e1a6b

Browse files
AzzyAzzy
Azzy
authored and
Azzy
committed
update 1
1 parent 2e52606 commit 46e1a6b

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"Arsalan",
34
"fpdf"
45
]
56
}

main.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
from fpdf import FPDF
22

3+
pdf = FPDF()
34
my_pdf = FPDF(orientation="p", format="A4")
45

56
# adds page to document
6-
my_pdf.add_page()
7+
my_pdf = pdf.add_page()
8+
9+
image1 = pdf.image("shadow-of-war.png", x=85, y=10, w=40, h=40, link="https://www.shadowofwar.com/purchase/")
710

811
# name document and add its path
9-
my_pdf.output("project.pdf")
12+
my_pdf = pdf.output("project.pdf")
13+
14+

project.pdf

344 KB
Binary file not shown.

shadow-of-war.png

371 KB
Loading

0 commit comments

Comments
 (0)