I couldn't manage to find the documentation on the website. Is it possible to produce a PDF from a content article and automatically save to the server at a predetermined location?
Thanks
Paul
Save pdf to server
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save pdf to server
Hi, no there is no such option for Phoca PDF.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 24 Sep 2010, 14:07
Re: Save pdf to server
Jan thanks for the reply. Is this possible with some custom development using your component. What I need is a button to create PDF from the article but rather than displaying the PDF in a new browser window it is saved locally.
regards
Paul
regards
Paul
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save pdf to server
Hi, then this needs to be modified in the code, so instead of sending the output to the browser, you should save this output on your disc, e.g. with help of JFile methods.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 24 Sep 2010, 14:07
Re: Save pdf to server
Hello Jan, To clarify will this require a change to your code or is this a function of our code? if we need to change the extension code are we free to do this or can you do this for a fee?
regards
Paul
regards
Paul
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save pdf to server
Hi, you need to change the code (it is under GPL, so you need to follow the GPL license - in fact there are no restrictions in part changing the code, you only need to follow the copyright rules, etc.). I am not able to do such modifications yet because of time issues
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 21 Jul 2015, 15:52
Re: Save pdf to server
Hello Jan
Could be that since 2010 you had the time to make this change?
It is really important to me.
Thanks!
dccp
Could be that since 2010 you had the time to make this change?
It is really important to me.
Thanks!
dccp
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save pdf to server
Hi, yes, unfortunately I still didn't find time to take a look at it. This is not easy change as the function is completely different - it is still about creating the PDF, but the way is other - in Phoca PDF online PDF is created - in fact the data will be sent to users browser which displays the PDF.
The way you need is a way where it is not exactly set how it should work - when the document should be saved to server - who will call its creating - the visitor of the site, administrator, or some automatic script on server (e.g. cron). There are many different options, this feature can have and i really don't know how to do it so it will fit common usage. I think, this should be more customized directly for the server (because of server performance, server disk space, memory, etc.). Next feature will be - what will happen with the saved documents - will they be served to users automatically or manually, etc.
Really there are different way, this feature can be done and unfortunately there is really limit with time
The way you need is a way where it is not exactly set how it should work - when the document should be saved to server - who will call its creating - the visitor of the site, administrator, or some automatic script on server (e.g. cron). There are many different options, this feature can have and i really don't know how to do it so it will fit common usage. I think, this should be more customized directly for the server (because of server performance, server disk space, memory, etc.). Next feature will be - what will happen with the saved documents - will they be served to users automatically or manually, etc.
Really there are different way, this feature can be done and unfortunately there is really limit with time
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 21 Jul 2015, 15:52
Re: Save pdf to server
I specifically need to send it by email from the server...
You have any ideas?
Thanks in advance
You have any ideas?
Thanks in advance
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save pdf to server
Hi, I have an idea but unfortunately programming is time demanding work, so any idea is translated to working code very hard.
The idea:
- Depends on who should start the processing, e.g. user in backend clicks on button over article which will create PDF from the article, it will save it to some specific folder on the server, e.g. with article name. Such then will be checked - if exists, etc. and if yes, it will be sent per email as attachment.
All functions are ready in Joomla! and Phoca PDF but they need to be customized (Phoca PDF to produce PDF and save on server. JFile methods to check the files, Email methods to add the files as attachment)
Jan
The idea:
- Depends on who should start the processing, e.g. user in backend clicks on button over article which will create PDF from the article, it will save it to some specific folder on the server, e.g. with article name. Such then will be checked - if exists, etc. and if yes, it will be sent per email as attachment.
All functions are ready in Joomla! and Phoca PDF but they need to be customized (Phoca PDF to produce PDF and save on server. JFile methods to check the files, Email methods to add the files as attachment)
Jan
If you find Phoca extensions useful, please support the project