Did I find the right examples for you? yes no

All Samples(524)  |  Call(520)  |  Derive(0)  |  Import(4)

            def u_(s):
        return unicode(s, 'unicode_escape')
        


src/p/d/PDF-1.0/PDF/generic.py   PDF(Download)
import re
from utils import readNonWhitespace, RC4_encrypt
from utils import b_, u_, chr_, ord_
from utils import PdfStreamError
import filters
def decode_pdfdocencoding(byte_array):
    retval = u_('')
    for b in byte_array:
        c = _pdfDocEncoding[ord_(b)]
        if c == u_('\u0000'):
 
_pdfDocEncoding = (
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),

src/p/y/PyPDF2-1.21/PyPDF2/generic.py   PyPDF2(Download)
import re
from .utils import readNonWhitespace, RC4_encrypt
from .utils import b_, u_, chr_, ord_
from .utils import PdfStreamError
import warnings
def decode_pdfdocencoding(byte_array):
    retval = u_('')
    for b in byte_array:
        c = _pdfDocEncoding[ord_(b)]
        if c == u_('\u0000'):
 
_pdfDocEncoding = (
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),
  u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'), u_('\u0000'),

src/p/y/PyPDF2-1.21/PyPDF2/pdf.py   PyPDF2(Download)
from .generic import *
from .utils import readNonWhitespace, readUntilWhitespace, ConvertFunctionsToVirtualList
from .utils import Str, b_, u_, ord_, chr_, str_, string_type, formatWarning
 
if version_info < ( 2, 4 ):
    def extractText(self):
        text = u_("")
        content = self["/Contents"].getObject()
        if not isinstance(content, ContentStream):
            content = ContentStream(content, self.pdf)

src/p/y/PyPDF2-1.21/PyPDF2/xmp.py   PyPDF2(Download)
from xml.dom import getDOMImplementation
from xml.dom.minidom import parseString
from .utils import u_
 
RDF_NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                while True:
                    # see documentation about PDFX_NAMESPACE earlier in file
                    idx = key.find(u_("\u2182"))
                    if idx == -1:
                        break