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

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

‎main.py

Lines changed: 7 additions & 2 deletions
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)

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