AnsweredAssumed Answered

Create a file with the content of two other files

Question asked by lbm on Jan 23, 2009
Latest reply on Jan 23, 2009 by pjcaracuel
Hi,

I'd like to know if it's possible to create a pdf file with the content of two other existing pdf files with webscripts.
I've tried the following:

var contenido = dos.properties["cm:content"] + uno.properties["cm:content"];
documento.properties["cm:content"].write(contenido);

But I get the following error:

Can't find method org.alfresco.repo.jscript.ScriptNode$ScriptContentData.write(number).

However, if I just add one of the contents, it works:

var contenido = dos.properties["cm:content"];
documento.properties["cm:content"].write(contenido);

I've tried a lot of combinations (document.properties.content, document.content … ) but I can't guess how to create a pdf with the content of two other files (pdf, too).

Any ideas?
Thank you.

Outcomes