/usr/share/pyshared/pdfrw/objects/pdfname.py is in python-pdfrw 0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # A part of pdfrw (pdfrw.googlecode.com)
# Copyright (C) 2006-2012 Patrick Maupin, Austin, Texas
# MIT license -- See LICENSE.txt for details
from pdfrw.objects.pdfobject import PdfObject
class PdfName(object):
''' PdfName is a simple way to get a PDF name from a string:
PdfName.FooBar == PdfObject('/FooBar')
'''
def __getattr__(self, name):
return self(name)
def __call__(self, name, PdfObject=PdfObject):
return PdfObject('/' + name)
PdfName = PdfName()
|