Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
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)
Exemplo n.º 6
0
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)