Open GoogleCodeExporter opened 9 years ago
I also tested the variant
var watermarkAction = actions.create("pdf-watermark");
but the error is the same.
Original comment by pe...@loftux.se
on 30 Oct 2013 at 1:53
I've now tested to runt the example js code attached to the issue using action
execute. I did this by saving the script in Data Dictionary/Scripts and then
executed the script in Alfresco Explorer as an action.
In this case it works.
The issue remains using Javascript console and using javascript behaviour. I'll
get back in that, but it looks like it is not a pdftoolkit issue.
Original comment by pe...@loftux.se
on 30 Oct 2013 at 2:18
I was missing the serviceRegistry property in the bean
See below. With that, the issue can be closed. Not sure how to fix the
javascript console, I have an older version installed, it might be fixed there.
<bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour">
<property name="notificationFrequency">
<value>TRANSACTION_COMMIT</value>
</property>
<property name="location">
<bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
<constructor-arg>
<value>alfresco/module/client/context/scripts/examplepath.js</value>
</constructor-arg>
</bean>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
</bean>
Original comment by pe...@loftux.se
on 30 Oct 2013 at 2:29
Original issue reported on code.google.com by
pe...@loftux.se
on 30 Oct 2013 at 1:11Attachments: