Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Secured Files + PDF generation


Go to End


747 Views

Avatar
mishell

Community Member, 19 Posts

1 November 2011 at 6:55am

Hello

First of all I would like to thank for awesome module secure files. Works like a charm, except of PDF generation. I understand that files are put thru controller and displayed in page.

How could I get the file normal way? only in one case, when I want to use those files in my PDF file?

What want to achieve is

 public function generatePDF() { disable_secure_files(); generate_pdf(); (here some pdf library can't get image couse of secure files) enable_secure_files_one_more_time();

Please any kind of help would be much appreciated.