This tool will parse a PDF document to identify the fundamental elements used in the analyzed file. It will not render a PDF document. The code of the parser is quick-and-dirty, I'm not recommending this as text book case for PDF parsers, but it gets the job done.
13 lines
541 B
Python
13 lines
541 B
Python
$NetBSD: patch-pdf-parser.py,v 1.1.1.1 2012/01/23 23:34:37 wiz Exp $
|
|
|
|
Do not enforce version restriction; let pkgsrc framework deal with it.
|
|
|
|
--- pdf-parser.py.orig 2010-01-09 23:56:08.000000000 +0000
|
|
+++ pdf-parser.py
|
|
@@ -894,5 +894,5 @@ def TestPythonVersion(enforceMaximumVers
|
|
print 'Should you encounter problems, please use Python version %d.%d.%d' % __maximum_python_version__
|
|
|
|
if __name__ == '__main__':
|
|
- TestPythonVersion(enforceMaximumVersion=True)
|
|
+ TestPythonVersion(enforceMaximumVersion=False)
|
|
Main()
|