-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V0.1.5 Adding initial document rendering
- Loading branch information
John Hawkins
authored and
John Hawkins
committed
Apr 27, 2021
1 parent
cf4b368
commit 1d47045
Showing
7 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
rm -r projit.egg-info | ||
rm -r .pytest_cache | ||
rm -r projit/__pycache__/ | ||
rm -r tests/__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from fpdf import FPDF | ||
|
||
class PDF(FPDF): | ||
|
||
def setup(self): | ||
self.add_page() | ||
|
||
def add_title(self, title): | ||
self.set_xy(0.0,0.0) | ||
self.set_font('Arial', 'B', 16) | ||
self.set_text_color(50, 50, 50) | ||
self.cell(w=210.0, h=40.0, align='C', txt=title, border=0) | ||
|
||
def add_description(self, description): | ||
self.set_xy(10.0,40.0) | ||
self.set_text_color(32.0, 32.0, 32.0) | ||
self.set_font('Arial', '', 12) | ||
self.multi_cell(0,10,description) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
pyYaml | ||
numpy | ||
pyyaml | ||
pandas | ||
fpdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters