cancel
Showing results for
Did you mean:
Valued Member

## Re: Save/Export to EPS

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

edit:

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>
import winerror
ModuleNotFoundError: No module named 'winerror'

Im trying to install it by "pip install winerror" but it says that there is no version

FreeFlow User

## Re: Save/Export to EPS

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[3] which is the "$FFwfJob.jobName$" and create an EPS using com.adobe.acrobat.eps and save that EPS to C:\Out.

Stefan

Valued Member

## Re: Save/Export to EPS

I think I tried it. Im waiting for response from Summa.

FreeFlow User

## Re: Save/Export to EPS

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.

Valued Member

## Re: Save/Export to EPS

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:

https://www.pdfscripting.com/public/How-to-Save-a-PDF-2.cfm#DiffFormat

Valued Member

## Re: Save/Export to EPS

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 :)

FreeFlow User

## Re: Save/Export to EPS

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[0] 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\.

Stefan

Valued Member

## Re: Save/Export to EPS

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?

FreeFlow User