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
from pdfminer.pdfparser import PDFParser | |
from pdfminer.pdfdocument import PDFDocument | |
from pdfminer.pdftypes import PDFObjectNotFound | |
pages = [] | |
def extract(objid, obj): | |
global pages | |
if isinstance(obj, dict): | |
# 'Type' is PDFObjRef type |
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
" add this to your vimrc or, if using [Project Addin](http://www.vim.org/scripts/script.php?script_id=69) | |
" you can use this file as in.vim | |
set makeprg=waf\ --notests | |
set shellpipe=2>&1\|tee | |
set errorformat= | |
"set errorformat+=%f(%l)\ :\ %t%*\\D%n:\ %m | |
"set errorformat+=%*[^\"]\"%f\"%*\\D%l:\ %m | |
"set errorformat+=%f(%l)\ :\ %m | |
"set errorformat+=%*[^\ ]\ %f\ %l:\ %m |
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
"""A Jinja Handler and tool. This code is in the public domain. | |
Adjusted for CherryPy 3.2 | |
Usage: | |
@cherrypy.expose | |
@cherrypy.tools.jinja(template='index.html') | |
def controller(**kwargs): | |
return { | |
} # This dict is the template context |
NewerOlder