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

[PATCH] basic-link to embedded file breaks with encryption

    XMLWordPrintableJSON

    Details

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

      Description

      When processing a document with encryption and using with tag:

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

      The output pdf link doesn't work. 

      The same input, without encryption works as expected.

      About the Patch:

      • This is related to FOP-916, applied the same fix but to PDFJavaScriptLaunchAction instead of PDFUri and extracted the common method into the parent class PDFAction.
      • The extracted method implementation, is still very similar to 'encodeString' from PDFObject, just adds a 'getDocument() != null' condition (wich seems to be required for PDFActions)

        Attachments

        1. link-embedded-fix.patch
          5 kB
          Juan
        2. test-case.fo
          1 kB
          Juan

          Activity

            People

            • Assignee:
              ssteiner simon steiner
              Reporter:
              juani15151 Juan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: