def parseTextOrders_cmd(where=None, limit=None): """Command that runs process to extract data from a text based order using Poppler.""" docformat = st.DOCFORMAT_ORDER query = queries.idOnly('T', docformat, where, limit) process = parseTextOrders() bulkProcess(process, query, abortOnError=False)
def parseTextOrders_cmd(where=None, limit=None): """Command that runs process to extract data from a text based order using Poppler.""" docformat = st.DOCFORMAT_ORDER query = queries.idOnly("T", docformat, where, limit) process = parseTextOrders() bulkProcess(process, query, abortOnError=False)
def markCommonFromLocalText_cmd(where=None, limit=None): """Command that runs process to identify common document types and formats from text based PDFs.""" # TODO set to None docformat = st.DOCFORMAT_CONTRACT query = queries.idOnly('T', docformat, where, limit) process = markCommonFromLocalText() bulkProcess(process, query, abortOnError=True)
def markCommonFromLocalText_cmd(where=None, limit=None): """Command that runs process to identify common document types and formats from text based PDFs.""" # TODO set to None docformat = st.DOCFORMAT_CONTRACT query = queries.idOnly("T", docformat, where, limit) process = markCommonFromLocalText() bulkProcess(process, query, abortOnError=True)
def printParallelParams_cmd(resolution, targetfield, where=None, limit=None): """Command that runs process to print parameters needed to extract a PDF with GNU Parallel.""" if targetfield in ['invoice', 'invoice_uncropped']: docformat = st.DOCFORMAT_INVOICE tf = fs.targetfields[targetfield] query = queries.standard('N', docformat, where, limit) process = printParallelParams(resolution, tf) bulkProcess(process, query, abortOnError=True)
def printParallelParams_cmd(resolution, targetfield, where=None, limit=None): """Command that runs process to print parameters needed to extract a PDF with GNU Parallel.""" if targetfield in ["invoice", "invoice_uncropped"]: docformat = st.DOCFORMAT_INVOICE tf = fs.targetfields[targetfield] query = queries.standard("N", docformat, where, limit) process = printParallelParams(resolution, tf) bulkProcess(process, query, abortOnError=True)