Hi,
I am having a hard time wrapping my head around this issue. cfpdf merge requires the absolute path of the files to be set in the tag, comma delimited. For example, see the following code:
I need to get newsletters assigned to a logged in customer from the database (table: clientid_to_newsletter), merge any files that they have rights to see and present them with a link to the newly created merged file.
How can I loop across the assigned files, get the file name and append/concatenate the absolute path to the file name?
i.e. I know the absolute path is: E:\webs\XXXX\YYYY\ZZZZ\newsletters\
However, the file names are dynamic and change from client to client.
Let me know if I am not clear and I would greatly appreciate any help.
I am having a hard time wrapping my head around this issue. cfpdf merge requires the absolute path of the files to be set in the tag, comma delimited. For example, see the following code:
Code:
<cfpdf action="merge"
source="
E:\webs\XXXX\YYYY\ZZZZ\newsletters\Wheat167.pdf,
E:\webs\XXXX\YYYY\ZZZZ\newsletters\SP-500 e-mini220.pdf,
E:\webs\XXXX\YYYY\ZZZZ\newsletters\Soybeans200.pdf"
destination="combsample.pdf"
overwrite="yes">
I need to get newsletters assigned to a logged in customer from the database (table: clientid_to_newsletter), merge any files that they have rights to see and present them with a link to the newly created merged file.
How can I loop across the assigned files, get the file name and append/concatenate the absolute path to the file name?
i.e. I know the absolute path is: E:\webs\XXXX\YYYY\ZZZZ\newsletters\
However, the file names are dynamic and change from client to client.
Let me know if I am not clear and I would greatly appreciate any help.