12
12
# adding images to document (with hyperlink)
13
13
pdf.image("", x=175, y=5, w=30, h=30, link="")
14
14
pdf.image("", x=175, y=37, w=30, h=30, link="")
15
- pdf.image("", x=175, y=70, w=30, h=30, link="")
15
+
16
16
"""
17
17
18
18
pdf .set_font ("Arial" , size = 17 )
33
33
34
34
pdf .set_xy (x = 10 , y = 55 )
35
35
pdf .set_font ("Arial" , style = "B" , size = 10 )
36
- pdf .cell (w = 0 , h = 5 , txt = "What can you do with Python?" )
36
+ pdf .cell (w = 0 , h = 5 , txt = "What can you do with Python?" , ln = 1 )
37
+
38
+ pdf .set_font ("Arial" , size = 10 )
39
+ pdf .multi_cell (w = 0 , h = 5 , txt = "The things you can do with Python are endless! you can create softwares, " +
40
+ " websites, automation, data visualization, games, and so much more. " +
41
+ " In this article, I will give examples of 5 real-world applications, used by Python." )
42
+
43
+ # 1. healthcare
44
+ pdf .set_xy (x = 10 , y = 75 )
45
+ pdf .set_font ("Arial" , style = "B" , size = 10 )
46
+ pdf .cell (w = 0 , h = 5 , txt = " 1. Healthcare" , ln = 1 )
47
+
48
+ pdf .set_font ("Arial" , size = 10 )
49
+ pdf .multi_cell (w = 0 , h = 5 , txt = "The medical industries are able to make better decisions with accurate predictions " +
50
+ "by using Python-powered applications, " +
51
+ "for example, using Python for image diagnostics or detecting and classifying tumors. " +
52
+ "Check out this link for more information: " +
53
+ "https://www.datacamp.com/blog/python-in-healthcare-ai-applications-in-hospitals" )
54
+
55
+ # healthcare image
56
+ pdf .image ("healthcare.jpg" , x = 10 , y = 100 , w = 75 , h = 45 )
57
+
58
+ pdf .set_xy (x = 90 , y = 100 )
59
+ pdf .multi_cell (w = 0 , h = 5 , txt = "Examples of Python applications used in Healthcare:\n " +
60
+ "* Parkinson's disease detection\n " +
61
+ "* Heart disease detection\n " +
62
+ "* Diabetes prediction\n " +
63
+ "* Breast cancer detection" )
64
+
65
+
66
+ pdf .set_xy (x = 10 , y = 150 )
67
+ pdf .set_font ("Arial" , style = "B" , size = 10 )
68
+ pdf .cell (w = 0 , h = 5 , txt = " 2. Data visualization" , ln = 1 )
69
+
70
+ pdf .set_font ("Arial" , size = 10 )
71
+ pdf .multi_cell (w = 0 , h = 5 , txt = "Data visualization " +
72
+ "" +
73
+ "" +
74
+ "" +
75
+ "" )
76
+
77
+
37
78
38
- pdf .cell (w = 0 , h = 5 , txt = "Temp" , border = 1 , ln = 1 )
39
79
40
80
# name document and add its path
41
81
pdf .output ("project.pdf" )
0 commit comments