PDF Creation

373 views
Skip to first unread message

somesh.m...@gmail.com

unread,
Aug 23, 2013, 3:59:25 PM8/23/13
to suppor...@runmyprocess.com, somesh. mukherjee, s.sury...@ieee.org
Hi,

We have referred to the tutorial here to successfully create a PDF document:

https://sites.google.com/a/runmyprocess.com/user-guide-runmyprocess/3---developer-guide/processes/faq/pdf-creation

Details we could not find in the tutorial:

- How can we control the location of the created PDF file (which by default gets created under RMP -> Files and any attempt to generate a new pdf keeps adding and thus cluttering the RMP -> Files folder)?

- If there is no way to specify the output location, we would need a clean mechanism to refer to the created file (is it by generating the link using the file id)?

Thanks!

thoshino

unread,
Aug 23, 2013, 4:56:20 PM8/23/13
to suppor...@runmyprocess.com, somesh. mukherjee, s.sury...@ieee.org, somesh.m...@gmail.com
Hi Somesh,

Currently RMP Files space does not have folder structure, it is 1 folder you can store various types of files, for everyone in your account.
Files dealt within process are all saved to Files space by default, your PDF script also the same.
The script should output P_result.id, this is the file id of your PDF.

As you say, you can generate a URL link from the file id. You can create a Collection to store generated pdf file information, and 1 of the columns can hold the URL link.
Or, you can use external cloud storage services. You can send files to their file upload API via Connectors.

Best regards,

Taka


somesh.m...@gmail.com

unread,
Aug 23, 2013, 5:03:43 PM8/23/13
to suppor...@runmyprocess.com, somesh. mukherjee, s.sury...@ieee.org, somesh.m...@gmail.com
Thanks Taka!

So to clean up, we need to delete the generated PDF file using a RMP connector? Otherwise the RMP Files area would get cluttered with PDF files created corresponding to every request unless there is some other way?

thoshino

unread,
Aug 23, 2013, 6:21:08 PM8/23/13
to suppor...@runmyprocess.com, somesh. mukherjee, s.sury...@ieee.org, somesh.m...@gmail.com
Hi Somesh,

To delete files, you have 2 options.
1. As you mentioned you can use Connector to do it (Connector Library > RunMyProcess Secured Connection > Delete a file downloaded on RunMyProcess server.).
2. You can use Freemarker function (delete_file(fileId), see https://sites.google.com/a/runmyprocess.com/user-guide-runmyprocess/HOWTO-USE-FREEMARKER)

This will erase your generated PDF, so do this only after you send it outside of RMP (email, cloud storage, FTP server, etc).

BTW, normally, users will not access the FLEX IDE (the design environment), so they won't see the Files menu or the contents listed there.
They will need a URL link attached to their web interface to be able to download (and see) the PDF, and this works fine in most cases.

So, Files space will be flat, no structure, and everyone in your account can access these if they login to FLEX IDE, but you can control access rights via web interfaces.

Best regards,

Taka
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages