Im doing something wrong, there is an error "Job 1 is in the aborted state". It is stuck on External Node, I found "The system cannot find the path specified" in stderr.log
when trying to execute script manualy I have this:
PS C:\Xerox\FreeFlow\Core\00000000-0000-0000-0000-000000000000\Data\Scripts> python save_as_eps_from_acrobat_pro_dc.py
Traceback (most recent call last):
File "save_as_eps_from_acrobat_pro_dc.py", line 3, in <module>
ModuleNotFoundError: No module named 'winerror'
Im trying to install it by "pip install winerror" but it says that there is no version
Here is another way saving to EPS from Acrobat Pro DC using Python. The attached script is based on this:
but modfied to save to EPS and to be used in an External Process node in FreeFlow Core.
Create a workflow with a Save node that saves to C:\Out using $FFwfJob.jobName$
Place an External Process node after the Save node. Use save_as_eps_from_acrobat_pro_dc.py.bat as script using the parameters: "$FFin$" "$FFout$" "$FFwfJob.jobName$"
The Python script will then use sys.argv which is the "$FFwfJob.jobName$" and create an EPS using com.adobe.acrobat.eps and save that EPS to C:\Out.
Try flattening the PDF before trying to export to EPS using one of the methods earlier described - Ghostscript, Xpdf or printing to EPS from Acrobat.
My happiness did not last long, after further testing, it turns out that the saved EPS file does not keep information about the layers.
I have to have a EPS just like Adobe Acrobat "Save as" to EPS do.
I found something like this:
All work prefectly, I have been made it as You told outside Core and pass it to Save location.
Only have to solve how to delete ".pdf" from filename of saved EPS and erverything will work as I wanted.
Thanks a lot again. You saved me a week of time each year :)
I had some issue launching Acrobat with a script from within FFCore so I did this outside FFCore instead. You could give it a try, but then you need to create a batch file that calls the PowerShell script and passes the argument %1 for the incoming file to be run with Acrobat from the batch file to the Powershell script $args to $FFin$ in an External process. You also need to disable the file system watcher ($fsw) in the PowerShell script as this can/should only be run once to keep watching the folder as long as PowerShell runs the script.
As you already have this setup outside of FFCore, the simplest way is to place a Save component in a FFCore workflow and save the pdf to C:\in\.
It is working ! great thank You very much ! :)
As i can see, You have commented one line and added 2 delays?
How I can now integrate it with Core? By External node? $FFin$ as "in" folder and $FFout$ as "out" folder?