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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • renderer/pdf
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: