bwghughes / gerbil Goto Github PK
View Code? Open in Web Editor NEWGerbil is a tool to simply watermark the bottom of existing PDF pages with a personalised text message
Home Page: http://gerbil.readthedocs.org/en/latest/
License: MIT License
Gerbil is a tool to simply watermark the bottom of existing PDF pages with a personalised text message
Home Page: http://gerbil.readthedocs.org/en/latest/
License: MIT License
I'm getting this: > gerbil -i scrum-book.pdf -o david-scrum-book.pdf -t "davidSbochenski.co.uk"
~/[email protected]
Traceback (most recent call last):
File "/Users/david/.pyenv/versions/2.7.5/bin/gerbil", line 9, in
load_entry_point('gerbil==0.7', 'console_scripts', 'gerbil')()
File "/Users/david/.pyenv/versions/2.7.5/lib/python2.7/site-packages/gerbil/init.py", line 37, in main
pdfmetrics.registerFont(TTFont(*create_font_args(options)))
File "/Users/david/.pyenv/versions/2.7.5/lib/python2.7/site-packages/gerbil/init.py", line 10, in create_font_args
if isfile(options.font):
File "/Users/david/.pyenv/versions/2.7.5/lib/python2.7/genericpath.py", line 29, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
[14:59] david: when trying to use gerbil. Any suggestions @bwghughes
[14:59] david: ?
[14:59] david: sorted it - was missing the font
[15:00] david: I know I said this before - but it's a bloody good utility that Mr Hughes; well played
Move to click.pocoo.org.
There's an issue with the default font color value:
$ gerbil -i in.pdf -o out.pdf -t "Foo Bar" -f /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
Traceback (most recent call last):
File "/home/tw/w/watermark-env/bin/gerbil", line 9, in <module>
load_entry_point('gerbil==1.5.5', 'console_scripts', 'gerbil')()
File "/home/tw/w/watermark-env/local/lib/python2.7/site-packages/gerbil/__init__.py", line 65, in main
f, err = create_footer(options)
File "/home/tw/w/watermark-env/local/lib/python2.7/site-packages/gerbil/gerbil.py", line 76, in create_footer
color = colors.HexColor(options.font_color)
File "/home/tw/w/watermark-env/local/lib/python2.7/site-packages/reportlab/lib/colors.py", line 385, in HexColor
return Color(((val>>16)&0xFF)/255.0,((val>>8)&0xFF)/255.0,(val&0xFF)/255.0)
TypeError: unsupported operand type(s) for >>: 'instance' and 'int'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.