Maven 1.x PDF Plugin

PDF Generates content for <script>

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.5.1
  • Fix Version/s: 2.5.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When generating PDF it will include content from my xdoc with <script> tags. I have some analytics tags which I obviously don't want appearing in the PDF but I can't figure out a way of "tricking" the plugin to ignore text. Font and color changes are ignore (as mentioned in a previous JIRA issue).

Its interesting to note though that when the content does appear in the PDF it isn't formatted to the same font etc as the rest of the document.

Thanks

Activity

Hide
Lukas Theussl added a comment -

If you just want to ignore any <script> tags, insert the following in fo-body.xslt:

<xsl:template match="script"/>

otherwise be more specific about your input and expected/actual output.

Show
Lukas Theussl added a comment - If you just want to ignore any <script> tags, insert the following in fo-body.xslt:
<xsl:template match="script"/>
otherwise be more specific about your input and expected/actual output.
Hide
Toby Weston added a comment -

That works great, thanks. Yep, its all script I want to exclude, do you think this is worth putting in the xslt for everyone?

Show
Toby Weston added a comment - That works great, thanks. Yep, its all script I want to exclude, do you think this is worth putting in the xslt for everyone?
Hide
Lukas Theussl added a comment -

I have committed it to svn and deployed a snapshot (2.5.2-SNAPSHOT, which also includes MPPDF-56). I just don't know if there will ever be an m1 release again...

Show
Lukas Theussl added a comment - I have committed it to svn and deployed a snapshot (2.5.2-SNAPSHOT, which also includes MPPDF-56). I just don't know if there will ever be an m1 release again...

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: