more docstrings.
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@150 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
b0c6068da1
commit
827c606f82
|
@ -19,7 +19,7 @@ Python PDF parser and analyzer
|
||||||
|
|
||||||
<div align=right class=lastmod>
|
<div align=right class=lastmod>
|
||||||
<!-- hhmts start -->
|
<!-- hhmts start -->
|
||||||
Last Modified: Sat Oct 31 12:03:49 JST 2009
|
Last Modified: Wed Nov 4 18:47:49 JST 2009
|
||||||
<!-- hhmts end -->
|
<!-- hhmts end -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ no stream header is displayed for the ease of saving it to a file.
|
||||||
<hr noshade>
|
<hr noshade>
|
||||||
<h2>Changes</h2>
|
<h2>Changes</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li> 2009/10/xx: Password encryption bug fixed. Thanks to Yannick Gingras.
|
<li> 2009/11/xx: Password encryption bug fixed. Thanks to Yannick Gingras.
|
||||||
<li> 2009/10/24: Charspace bug fixed. Adjusted for 4-space indentation.
|
<li> 2009/10/24: Charspace bug fixed. Adjusted for 4-space indentation.
|
||||||
<li> 2009/10/04: Another matrix operation bug fixed. Thanks to Vitaly Sedelnik.
|
<li> 2009/10/04: Another matrix operation bug fixed. Thanks to Vitaly Sedelnik.
|
||||||
<li> 2009/09/12: Fixed rectangle handling. Able to extract image boundaries.
|
<li> 2009/09/12: Fixed rectangle handling. Able to extract image boundaries.
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
|
||||||
# Arcfour implementation in Python
|
|
||||||
# * public domain *
|
|
||||||
#
|
|
||||||
|
|
||||||
|
""" Python implementation of Arcfour encryption algorithm.
|
||||||
|
|
||||||
|
This code is in the public domain.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
## Arcfour
|
## Arcfour
|
||||||
##
|
##
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
# -*- python -*-
|
#!/usr/bin/env python
|
||||||
#
|
|
||||||
# fontmetrics.py - font metrics for the Adobe core 14 fonts.
|
""" Font metrics for the Adobe core 14 fonts.
|
||||||
#
|
|
||||||
# The following data were extracted from the AFM files:
|
Font metrics are used to compute the boundary of each character
|
||||||
# http://www.ctan.org/tex-archive/fonts/adobe/afm/
|
written with a proportional font.
|
||||||
#
|
|
||||||
|
The following data were extracted from the AFM files:
|
||||||
|
|
||||||
|
http://www.ctan.org/tex-archive/fonts/adobe/afm/
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
### BEGIN Verbatim copy of the license part
|
### BEGIN Verbatim copy of the license part
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
# -*- python -*-
|
#!/usr/bin/env python
|
||||||
#
|
|
||||||
# glyphlist.py - mappings from Adobe glyph name to unicode.
|
""" Mappings from Adobe glyph names to Unicode characters.
|
||||||
#
|
|
||||||
# The following data was taken from
|
In some CMap tables, Adobe glyph names are used for specifying
|
||||||
# http://www.adobe.com/devnet/opentype/archives/glyphlist.txt
|
Unicode characters instead of using decimal/hex character code.
|
||||||
#
|
|
||||||
|
The following data was taken from
|
||||||
|
|
||||||
|
http://www.adobe.com/devnet/opentype/archives/glyphlist.txt
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
### BEGIN Verbatim copy of the license part
|
### BEGIN Verbatim copy of the license part
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
# latin2ascii.py
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
""" Mappings from Latin-1 characters to ASCII.
|
||||||
|
|
||||||
|
This is an in-house mapping table for some Latin-1 characters
|
||||||
|
(acutes, umlauts, etc.) to ASCII strings.
|
||||||
|
|
||||||
|
This file is *not* used currently.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
LATIN2ASCII = {
|
LATIN2ASCII = {
|
||||||
# iso-8859-1
|
# iso-8859-1
|
||||||
0x00c0: 'A`',
|
0x00c0: 'A`',
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
# latin_enc.py
|
#!/usr/bin/env python
|
||||||
# Extracted from PDF Reference Manual 1.6, pp.925
|
|
||||||
# "D.1 Latin Character Set and Encodings"
|
""" Standard encoding tables used in PDF.
|
||||||
|
|
||||||
|
This table is extracted from PDF Reference Manual 1.6, pp.925
|
||||||
|
"D.1 Latin Character Set and Encodings"
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
ENCODING = [
|
ENCODING = [
|
||||||
# (name, std, mac, win, pdf)
|
# (name, std, mac, win, pdf)
|
||||||
('A', 65, 65, 65, 65),
|
('A', 65, 65, 65, 65),
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
|
||||||
# pycdb.py - Python implementation of cdb and tcdb
|
""" pycdb - Python implementation of cdb and tcdb
|
||||||
#
|
|
||||||
# by Yusuke Shinyama
|
This code is in the public domain.
|
||||||
# * public domain *
|
|
||||||
#
|
cdb is a static data structure that was developed by
|
||||||
|
D. J. Bernstein. It is suitable for storing a large number
|
||||||
|
of items in a disk with efficient seeking.
|
||||||
|
|
||||||
|
tcdb is an extention of cdb that support hierarchical lookup.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
##
|
|
||||||
## rijndael.py
|
""" Python implementation of Rijndael encryption algorithm.
|
||||||
## * public domain *
|
|
||||||
##
|
This code is in the public domain.
|
||||||
## Based on a public domain C implementation by Philip J. Erdelsky
|
|
||||||
## http://www.efgh.com/software/rijndael.htm
|
This code is based on a public domain C implementation
|
||||||
##
|
by Philip J. Erdelsky:
|
||||||
|
http://www.efgh.com/software/rijndael.htm
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from struct import pack, unpack
|
from struct import pack, unpack
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue