-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.9.1 better font initialize + Utils class
- Loading branch information
Showing
6 changed files
with
127 additions
and
18 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 |
---|---|---|
@@ -1,15 +1,24 @@ | ||
# wfpdf | ||
convenience wrapper for fpdf with unicode support | ||
|
||
## Requires | ||
fpdf | ||
|
||
## Status: Beta | ||
0.9.1 improved initialization of fpdf fonts; Utils class added | ||
0.9.0 published | ||
|
||
## Usage: | ||
``` | ||
form wfpdf import PDF | ||
from wfpdf import PDF | ||
with PDF('output.pdf') as pdf: # or ..PDF('output.pdf', ffamily [, fstyle, fsize, ffname]).. | ||
pdf.write(8, u"unicode text") # ffname: name of .ttf file, it is recommended save fonts into fpdf/font/ | ||
# you can download unicode fonts from pyfpdf.googlecode.com/files/fpdf_unicode_font_pack.zip | ||
pdf.write(8, u"unicode text") # ffname: name of .ttf file, it is recommended save fonts into fpdf/font/ | ||
# you can download unicode fonts from pyfpdf.googlecode.com/files/fpdf_unicode_font_pack.zip | ||
# or from backup in this package in fpdf/font/ | ||
``` | ||
|
||
This was designed with fpdf 1.7.2 and it could be useful: | ||
for the calling with with.. syntax, | ||
for help with installation of unicode fonts as long as these fonts aren't included directly inside the fpdf module | ||
""" | ||
- for the calling with with.. syntax, | ||
- for help with installation of unicode fonts as long as these fonts aren't included directly inside the fpdf module | ||
|
||
In addition you can use some helpers from Utils class (pdf.utils). See Utils doc. |
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,3 @@ | ||
Unicode fonts from pyfpdf.googlecode.com/files/fpdf_unicode_font_pack.zip | ||
|
||
See README in the font/ folder. |
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,3 @@ | ||
Unicode fonts from pyfpdf.googlecode.com/files/fpdf_unicode_font_pack.zip | ||
|
||
Unpack this to the installed fpdf package into fpdf/font/ folder. |
Binary file not shown.
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 |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
setup( | ||
name = 'wfpdf', | ||
py_modules = ['wfpdf'], | ||
version = '0.9.0', | ||
version = '0.9.1', | ||
description = 'convenience wrapper for fpdf with unicode support', | ||
install_requires = ['fpdf'], | ||
author = 'Mirek Zvolsky', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/zvolsky/wfpdf', | ||
download_url = 'https://github.com/zvolsky/wfpdf/tarball/0.9.0', | ||
download_url = 'https://github.com/zvolsky/wfpdf/tarball/0.9.1', | ||
keywords = ['fpdf', 'pyfpdf', 'pdf'], | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
|
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