Did I find the right examples for you? yes no

All Samples(34)  |  Call(17)  |  Derive(0)  |  Import(17)

        def newTempfile(suffix=''):
    return tempfile.mktemp(suffix=suffix)
        


src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/prince.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile, execution_shell
from logger import LOG
 
def html2pdf(html_filename, output_filename=None, **options):
    """ Convert a HTML file to PDF using FOP"""
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/pdfreactor.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile, execution_shell
from logger import LOG
 
def html2pdf(html_filename, output_filename=None, **options):
    """ Convert a HTML file to PDF using FOP"""
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/pisa_bin.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile, execution_shell
from logger import LOG
 
def html2pdf(html_filename, output_filename=None, **options):
    """ Convert a HTML file to PDF using FOP"""
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/pisa.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile, execution_shell
from logger import LOG
 
def html2pdf(html_filename, output_filename=None, **options):
    """ Convert a HTML file to PDF using FOP"""
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/fop.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile, execution_shell
from logger import LOG
from exceptions import ConversionError
def fo2pdf(fo_filename, output_filename=None):
    """ Convert a FO file to PDF using FOP"""
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/xinc.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile
from logger import LOG
 
def fo2pdf(fo_filename, output_filename=None):
    """ Convert a FO file to PDF using XINC """
 
    if not output_filename:
        output_filename = newTempfile(suffix='.pdf')

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/calibre.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile
from logger import LOG
from exceptions import ConversionError
 
    if not output_filename:
        output_filename = newTempfile(suffix='.epub')
 
    if not calibre_available:

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/fo.py   zopyx.convert2(Download)
from config import java
from tidy import tidyhtml
from util import newTempfile, runcmd, which, win32, checkEnvironment, execution_shell
from logger import LOG
from exceptions import ConversionError
            fo_filename = output_filename
        else:
            fo_filename = newTempfile(suffix='.fo')
 
        csstoxslfo = os.path.abspath(os.path.join(dirname, 'lib', 'csstoxslfo', 'css2xslfo.jar'))

src/z/o/zopyx.convert2-2.4.5/src/zopyx/convert2/xfc.py   zopyx.convert2(Download)
 
from convert import BaseConverter
from util import runcmd, which, win32, checkEnvironment, newTempfile
from logger import LOG
from exceptions import ConversionError
 
    if not output_filename:
        output_filename = newTempfile(suffix='.%s' % format)
 
    if sys.platform == 'win32':

src/z/o/zopyx.convert-1.1.11/src/zopyx/convert/html2fo.py   zopyx.convert(Download)
 
from config import java
from util import newTempfile, runcmd
from elementtree.ElementTree import parse, tostring, SubElement        
from htmlentitydefs import name2codepoint
    html = entity_reg.sub(handler, html)
 
    filename = newTempfile()
    open(filename, 'wb').write(str(html))
    return filename
            filename = tidyhtml(filename, encoding)
 
        fo_filename = newTempfile(suffix='.fo')
        csstoxslfo = os.path.abspath(os.path.join(dirname, 'lib', 'csstoxslfo', 'css2xslfo.jar'))
        if not os.path.exists(csstoxslfo):

  1 | 2  Next