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

[PATCH] basic-link to a file or an embedded file breaks if filename contains a parenthesis

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: renderer/pdf
    • Labels:
      None
    • Flags:
      Patch

      Description

      The following FO snippet

      <fo:basic-link external-destination="embedded-file:some(paren.pdf">The link to some file</fo:basic-link>

      produces the following PDF snippet

      <<
      /S /JavaScript
      /JS (this.exportDataObject({cName:"some(paren.pdf", nLaunch:2});)
      >>

      This PDF action is broken because the parenthesis are not escaped.

      The correct output should be

      <<
      /S /JavaScript
      /JS (this.exportDataObject\({cName:"some\(paren.pdf", nLaunch:2}\);)
      >>

       

        Attachments

        1. test-case.fo
          1 kB
          Eric Lim
        2. paren3.patch
          2 kB
          Eric Lim

          Issue Links

            Activity

              People

              • Assignee:
                matthias8283 Matthias Reischenbacher
                Reporter:
                esclim Eric Lim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: