Page 1 of 1

Can't generate PDF via PDF-icon

Posted: 22 Dec 2009, 17:45
by Clemens-x
Hi!
I have installed Phoca-PDF on my fresh installed Joomla 1.5.15, because of the superior quality of PDF-generation. For generating SEF-urls, I have installed sH404SEF with .htaccess / rewrite. Right from the beginning, I have had the problem, that the URL for the PDFs are not generated correctly. But the website had to go live with all that content and as a workaround, I have disabled all PDF-icons.
But now it is time, to correct this issue.

I have found the thread:
viewtopic.php?f=37&t=6650
here in the forum and I have tried the trick by inserting the two lines in the .htaccess-file:

Code: Select all

RewriteCond %{QUERY_STRING} ^(([^&]*&)*)format=pdf(&.*)?$ 
RewriteRule ^ %{REQUEST_URI}?%1format=phocapdf%3 [L,R=301]
but no effort even if I put it there at different positions.
I have tried to switch the way of generation of the extension in Phoca PDF plugin, and of course I have cleared the cache and deleted all the SEF-URLs concerning the links to generate PDFs when experimenting and so on.
But with no effort!

I always see the following urls:
1.) I call this webpage http://www.gessso.de/orga/datenschutz.html

2.) The link which is connected with the PDF-icon is:
http://www.gessso.de/pdf/orga/datenschutz.pdf

3.) When I click on it, the url will be redirected to the home page and the homepage appears in a separate browser window.

Strange thing: According to the PDF-link on your Phoca-PDF demo site, I have used this url:
http://www.gessso.de/orga/datenschutz.h ... t=phocapdf
And immediately the PDF has been generated correctly. So I see that Phoca is able to work. But the URLs on the icons are wrong.

This behaviour will keep constant regardless of the settings in the Phoca-PDF-plugin or the additional lines in .htaccess or purging SEF URLs in sH404SEF.
BTW: I have disabled the SEF-URL generation in sH404SEF for Phoca-PDF, but also without success.

How can I find out, what is going wrong here and correct it?
Kind regards
Clemens

Re: Can't generate PDF via PDF-icon

Posted: 28 Dec 2009, 00:41
by Jan
Hi, yes, this is a problem, because there is no option to change the link to pdf in article. So Phoca PDF plugin tries to find it and tries to replace it with correct link. The problem is, if there is no standard link but some created by some SEF extension. It is not possible to create correct link as the Phoca PDF doesn't know the method to create the URL :-( so only chance to correct it is modify it to some URL which will work with the specific SEF extension :-( or disable the URL creating for this case of this SEF extension :-( :( As I have no experiences with SEF extensions, for now I don't have any clue how to do it :( :( Maybe there is some information on some SEF sites about this problem :idea:

Jan