visiyo / AutoStoreWorkflows

Open Source Repo for Sample AutoStore CFGs, Scripts, and Questions
MIT License
8 stars 5 forks source link

Load two files with same name, but different extention. #9

Open Victorioux opened 5 years ago

Victorioux commented 5 years ago

Hello @njcaruso

I have a workflow that loads a XML file, read the xml's nodes and creates me a TXT with the extracted values. At the end, it load it to Docushare.

Those files are Invoices, but here in Mexico there ar two files, the XML and the PDF. So, I want to load both files at the same time, do OCR to the PDF, and the normal nodes extraction to the XML. But the condition to load both files at the same time, is that both must have the same name.

Example:

Loads both files and do the process. Invoice001.xml Invoice001.pdf

It doesn't load the files because it must be a PDF and XML with the same name. Invoice001.xml Invoice.pdf

I already did it only with the XML, but i have no idea how can I do it with the PDF.

Here's the CFG. CFDIs a Docushare.zip