Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2220

fop does ignore the savepath for the pdf file

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: renderer/pdf
    • Environment:
      Kubuntu 12.0.4 (Kernel 3.2.0-37-generic); Apache2; FOP 1.1; PHP; XML; XSL

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dev0 Ralph Dittrich
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: