Comments (1)
@SkyEngine-OSP Your script has some problems, that I have just fixed and I am sharing here for reference:
var watermark_action = actions.create("pdf-watermark");
watermark_action.parameters["inplace"] = true;
watermark_action.parameters["destination-folder"] = document.parent;
watermark_action.parameters["watermark-type"] = "text";
watermark_action.parameters["watermark-text"] = "Lorem Ipsum";
// wrong parameter
//watermark_action.parameters["watermark-pages"] = "all";
watermark_action.parameters["page"] = "all";
watermark_action.parameters["watermark-depth"] = "over";
// missing parameters
watermark_action.parameters["watermark-font"] = "Courier";
watermark_action.parameters["watermark-size"] = "10";
// END missing parameters
watermark_action.parameters["position"] = "center";
watermark_action.execute(document);
And as this is not an issue with the addon, I am closing it.
from alfresco-pdf-toolkit.
Related Issues (20)
- PDF Toolkit ships with SLF4J API, Jetty, JUnit and Spring test JARs
- Problem with rules "sign pdf" on version Alfresco Community 2017
- "File name too long" Exception
- Bouncycastle class error using Alfresco CE 5.2 HOT 1
- PDF Toolkit watermarking HOT 1
- can I use this for PDF editing on alfresco HOT 5
- how to define destination folder HOT 4
- unable to watermark documents with text.
- Can't get it running on Alfresco Community 6.0 HOT 1
- Error SEVERE: Exception starting filter X509AuthFilter HOT 7
- Error on Alfresco 6.0 HOT 8
- Please help to advise me for install this add-on HOT 7
- Option to add document in destination folder picker HOT 1
- Not able to append encrypted PDFs
- Library depency conflit
- Alfresco PDF Took kit - version 6.1 Alfresco HOT 1
- Transform .doc our .docx to pdf action HOT 4
- Extract pages from pdf HOT 3
- The insert operation failed HOT 2
- Alfresco Community 7.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfresco-pdf-toolkit.