def __init__(self, additional_entrys=None, stream_filter_name="FlateDecode"): super(IndirectObject_Stream, self).__init__([ pdfex.Entry_Function("Filter", lambda: self.stream_filter.get_name()), pdfex.Entry_Function("Length", lambda: len(self.get_encoded_data())) ] + cact.default_list(additional_entrys)) self.stream_filter = pdfex.fetch_stream_filter(stream_filter_name)
def __init__(self, sub_type, additional_entrys=None, stream_filter_name="FlateDecode"): super(IndirectObject_Stream_XObject, self).__init__([ pdfex.Entry_Constant("Type", pdfex.Name("XObject")), pdfex.Entry_Constant("Subtype", pdfex.Name(sub_type)) ] + cact.default_list(additional_entrys), stream_filter_name) self.name = XOBJECT_NAME_GENERATOR.generate()
def __init__(self, add_expressions=None, subtract_expressions=None): super(Expression_Additive, self).__init__() self.add_expressions = cact.default_list(add_expressions) self.subtract_expressions = cact.default_list(subtract_expressions)
def __init__(self, statements=None): super(Statement_Compound, self).__init__() self.statements = cact.default_list(statements)
def __init__(self, xobjects): super(IndirectObject_Resources_Manual, self).__init__() self.xobjects = cact.default_list(xobjects)
def __init__(self, component_definition_tokens=None): self.component_definition_tokens = cact.default_list( component_definition_tokens) self.multi_pattern = None
def __init__(self, statements=None): super(Statement_GraphicsStateBlock, self).__init__() self.statements = cact.default_list(statements)
def __init__(self, equations=None): self.equations = cact.default_list(equations)
def __init__(self, multiply_expressions=None, divide_expressions=None): super(PartialOperation_Multiplicative, self).__init__() self.multiply_expressions = cact.default_list(multiply_expressions) self.divide_expressions = cact.default_list(divide_expressions)
def __init__(self, statements=None): super(IndirectObject_Stream_Content, self).__init__(stream_filter_name="None") self.statements = cact.default_list(statements)