Page 1 of 1

Save pdf to server

Posted: 24 Sep 2010, 14:10
by toomanylogins
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

Re: Save pdf to server

Posted: 24 Sep 2010, 19:37
by Jan
Hi, no there is no such option for Phoca PDF.

Jan

Re: Save pdf to server

Posted: 28 Sep 2010, 14:31
by toomanylogins
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

Re: Save pdf to server

Posted: 02 Oct 2010, 12:37
by Jan
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

Re: Save pdf to server

Posted: 05 Oct 2010, 11:53
by toomanylogins
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

Re: Save pdf to server

Posted: 06 Oct 2010, 13:45
by Jan
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

Re: Save pdf to server

Posted: 21 Feb 2016, 20:22
by dccp
Hello Jan
Could be that since 2010 you had the time to make this change?
It is really important to me.

Thanks!
dccp

Re: Save pdf to server

Posted: 22 Feb 2016, 02:19
by Jan
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 :-( :-(

Re: Save pdf to server

Posted: 22 Feb 2016, 16:38
by dccp
I specifically need to send it by email from the server...
You have any ideas?
Thanks in advance

Re: Save pdf to server

Posted: 28 Feb 2016, 14:05
by Jan
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)

:idea:

Jan