cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic PDF generation

smcardle
Champ in-the-making
Champ in-the-making
Hi.

Using actions can I perform the following use case:

Create 2 spaces for the same directory.
Space 1 = read/write - This is the space that users will created and modify documents in, for example word and open office. These are versioned with extraction of metadata etc.
Space 2 = read only - this points to Space 1 but is read only for the latest version of documents only.

1. User creates or updates a document in Space 1 which is then submits for appoval
2. Document is appoved.
3. External users see only Space 2 (the read only latest versions) and can download from here.

The twist is that I want the users of Space 2 to see the documents as PDF files. I don't want to create and store PDF's from the documents in Space 1, I want the read only Space 2 just to show the latest documents as PDF files.

Regards

Steven McArdle
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
This is possible. But you are going to have to write a bit of java code. Creating the PDFs before is the best option. Otherwise they'll have to be generated on the fly as users of space 2 request to download them. This will have a performance issue, depending on the number of users and the size of the documents.

smcardle
Champ in-the-making
Champ in-the-making
Hi Zaizi.

Actually, this should not cause a performance problem at all. The PDF files should be generated when the first user tries to download it and then it would be cached for dowload by space 2 users. The PDF files do NOT require to be generated for every user and will only be generated the first time they are downloaded….

So guys, any ideas on how I do this with Alfresco?

Regards

Steve

smcardle
Champ in-the-making
Champ in-the-making
Bump

Surely somebody must know the best way to do this?

Steve