Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
source: A list of P objects.

src/p/y/pyth-0.5.6/examples/writing/pdf.py   pyth(Download)
from pyth.plugins.pdf.writer import PDFWriter
 
doc = Rtf15Reader.read(open("../reading/sample.rtf"))
 
 

src/p/y/pyth-0.5.6/examples/reading/rtf15.py   pyth(Download)
    filename = "sample.rtf"
 
doc = Rtf15Reader.read(open(filename, "rb"))
 
print XHTMLWriter.write(doc, pretty=True).read()

src/p/y/pyth-HEAD/examples/writing/pdf.py   pyth(Download)
from pyth.plugins.pdf.writer import PDFWriter
 
doc = Rtf15Reader.read(open("../reading/sample.rtf"))
 
 

src/p/y/pyth-HEAD/examples/reading/rtf15.py   pyth(Download)
    filename = "sample.rtf"
 
doc = Rtf15Reader.read(open(filename, "rb"))
 
print XHTMLWriter.write(doc, pretty=True).read()

src/o/p/Open-Knesset-HEAD/simple/management/commands/parse_remote.py   Open-Knesset(Download)
    temp.seek(0)
    try:
        doc = Rtf15Reader.read(temp, errors='ignore')
        xhtml = XHTMLWriter.write(doc, pretty=True).read()
    except:

src/o/p/Open-Knesset-HEAD/simple/management/commands/syncdata.py   Open-Knesset(Download)
            logger.error("can't open url %s. tried %d times" % (url, count))
        try:
            doc = Rtf15Reader.read(file_str)
        except Exception:
            return ''
        file_str = StringIO()
        file_str.write(urllib2.urlopen(url).read())
        doc = Rtf15Reader.read(file_str)
        content_list = []
        is_bold = False

src/v/i/VisTrails-HEAD/vistrails/packages/spreadsheet/widgets/richtext/richtext.py   VisTrails(Download)
                    from pyth.plugins.rtf15.reader import Rtf15Reader
                    from pyth.plugins.xhtml.writer import XHTMLWriter
                    doc = Rtf15Reader.read(fp)
                    html = XHTMLWriter.write(doc).read() # gets bytes
            else:

src/r/o/rosetta-0.2.5/rosetta/text/converters.py   rosetta(Download)
        file_name = os.path.split(file_path)[1]
    file_dst = os.path.join(dst_dir, re.sub(r'\.rtf$', '.txt', file_name))
    doc = Rtf15Reader.read(open(file_path))
    txt = PlaintextWriter.write(doc).getvalue()
    txt = unidecode(txt)

src/r/o/rosetta-HEAD/rosetta/text/converters.py   rosetta(Download)
        file_name = os.path.split(file_path)[1]
    file_dst = os.path.join(dst_dir, re.sub(r'\.rtf$', '.txt', file_name))
    doc = Rtf15Reader.read(open(file_path))
    txt = PlaintextWriter.write(doc).getvalue()
    txt = unidecode(txt)

src/e/d/eden-HEAD/models/tasks.py   eden(Download)
                    data = data + ",".join(values) + "\n"
        elif extension == "rtf":
            doct = Rtf15Reader.read(open(filename))
            data = PlaintextWriter.write(doct).getvalue()
        else:

  1 | 2  Next