Ralph Dittrich created FOP-2220:
-----------------------------------

             Summary: fop does ignore the savepath for the pdf file
                 Key: FOP-2220
                 URL: https://issues.apache.org/jira/browse/FOP-2220
             Project: Fop
          Issue Type: Bug
          Components: pdf
    Affects Versions: 1.1
         Environment: Kubuntu 12.0.4 (Kernel 3.2.0-37-generic); Apache2; FOP 
1.1; PHP; XML; XSL
            Reporter: Ralph Dittrich
            Priority: Minor


Hi,

I'm using php to generate the xml, xsl and trigger the fop to generate the pdf 
file. Actually fop saves the file within my web folder (/var/www/project/web/) 
but I want to save the files to the folder '/var/www/project/web/pdf/'.
So my command looks (like I read on some tutorials) like this: echo 
shell_exec('fop -xml books.xml -xsl books.xsl -pdf ' . 
'/var/www/<project>/web/pdf/' . $rechnungsnummer . '.pdf');

The Content is right and the name of the file is right but the save path is 
wrong. I also tried to use "/web/pdf/" and only "/pdf/" instead of the full 
path but everytime it saves the files to the web folder. And it throws no 
failure exception.

Do you have any Idea why this could happen? Is this my fault or a bug in the 
fop? I couldn't figure it out.

At least: My folders project/ web/ and pdf/ got owner: www-data:www-data and 
mod 777 for my tests. So the rights can't be the problem, right?

Best regards

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to