Пример #1
0
def cdr_loader(appdata, filename, translate=True, cnf={}, **kw):
    if kw: cnf.update(kw)
    doc = CDR_Presenter(appdata, cnf)
    doc.load(filename)
    if translate:
        pdxf_doc = PDXF_Presenter(appdata, cnf)
        pdxf_doc.doc_file = filename
        doc.traslate_to_pdxf(pdxf_doc)
        doc.close()
        doc = pdxf_doc
    return doc
Пример #2
0
def cdr_loader(appdata, filename, translate=True, cnf={}, **kw):
	if kw: cnf.update(kw)
	doc = CDR_Presenter(appdata, cnf)
	doc.load(filename)
	if translate:
		pdxf_doc = PDXF_Presenter(appdata, cnf)
		pdxf_doc.doc_file = filename
		doc.traslate_to_pdxf(pdxf_doc)
		doc.close()
		doc = pdxf_doc
	return doc
Пример #3
0
def cdrz_loader(appdata, filename, translate=True, cnf=None, **kw):
    cnf = merge_cnf(cnf, kw)
    doc = CDRZ_Presenter(appdata, cnf)
    doc.load(filename)
    if translate:
        pdxf_doc = PDXF_Presenter(appdata, cnf)
        pdxf_doc.doc_file = filename
        doc.traslate_to_pdxf(pdxf_doc)
        doc.close()
        doc = pdxf_doc
    return doc
Пример #4
0
def wmf_loader(appdata, filename, translate=True, cnf={}, **kw):
	if kw: cnf.update(kw)
	doc = SK1_Presenter(appdata, cnf)
	sk1_loader = doc.loader
	doc.loader = WMF_Loader()
	doc.load(filename)
	doc.loader = sk1_loader
	if translate:
		pdxf_doc = PDXF_Presenter(appdata, cnf)
		pdxf_doc.doc_file = filename
		doc.traslate_to_pdxf(pdxf_doc)
		doc.close()
		doc = pdxf_doc
	return doc
Пример #5
0
def wmf_loader(appdata, filename, translate=True, cnf={}, **kw):
    if kw: cnf.update(kw)
    doc = SK1_Presenter(appdata, cnf)
    sk1_loader = doc.loader
    doc.loader = WMF_Loader()
    doc.load(filename)
    doc.loader = sk1_loader
    if translate:
        pdxf_doc = PDXF_Presenter(appdata, cnf)
        pdxf_doc.doc_file = filename
        doc.traslate_to_pdxf(pdxf_doc)
        doc.close()
        doc = pdxf_doc
    return doc