create a js script to extract file content

cancel
Showing results for 
Search instead for 
Did you mean: 
andrea65
Member II

create a js script to extract file content

I need to create a js script to extract files contained in a p7m file (. From shell I can do it easily with the following instruction :

for i in `ls *.pdf.p7m`; do openssl smime -decrypt -verify -inform DER -in $i -noverify -out $i.pdf;done

but i can't do it by creating a script.
The goal is to make sure that when you upload a p7m file in an alfresco folder, the pdf file contained and stored in the same folder is extracted

 

1 Reply
cristinamr
Intermediate II

Re: create a js script to extract file content

It's not simple. Please check this thread.

--
Check our products: AQuA : https://aqua.venzia.es | Seidoc : https://seidoc.es