留言板
Calling a script from Liferay and obtaining the results
J G,修改在7 年前。
Calling a script from Liferay and obtaining the results
Junior Member 帖子: 53 加入日期: 16-1-21 最近的帖子
Hi,
I want to offer to registered users the possibility to download watermarked pdfs.
The PDF is written in LaTex.
What I want to achieve is the following:
1. If the user decides to download the PDF, the email address of the user is passed to a script
2. this script builds the watermarked pdf (with the user's email address as a watermark).
3. the script returns the watermarked pdf (or a reference to a location on the filesystem)
My questions are:
1. How can I call a script, eg from a purchasing module, and return the url to the document in some way?
2. How can I restrict the user the be able to download only his personalised pdf?
Best,
-- JG
I want to offer to registered users the possibility to download watermarked pdfs.
The PDF is written in LaTex.
What I want to achieve is the following:
1. If the user decides to download the PDF, the email address of the user is passed to a script
2. this script builds the watermarked pdf (with the user's email address as a watermark).
3. the script returns the watermarked pdf (or a reference to a location on the filesystem)
My questions are:
1. How can I call a script, eg from a purchasing module, and return the url to the document in some way?
2. How can I restrict the user the be able to download only his personalised pdf?
Best,
-- JG
David H Nebinger,修改在7 年前。
RE: Calling a script from Liferay and obtaining the results
Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
How would you do it in a servlet environment? There's nothing special about this from a Liferay perspective, you can either do it or you can't.