Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.1
    • Labels:
      None
    • Environment:
      Maven 1.0 with xdoc plugin 1.9
    • Number of attachments :
      0

      Description

      My XDOC XML file contains a style tag to define an image style:
      <style type="text/css">
      img.screenshot

      { padding: 10px; }

      </style>
      <img class="screenshot" src="images/logos/MYLOGO.gif"/>

      The pdf plugin prints correctly my image but prints over the image:
      img.screenshot

      { padding: 10px; }

        Activity

        Hide
        fabrizio giustina added a comment -

        <style> tags are not allowed in html body, but only in head (also if internet explorer allow it).
        I don't think the PDF plugin should handle this: put an inline style or define your css rule in your project.css.

        Show
        fabrizio giustina added a comment - <style> tags are not allowed in html body, but only in head (also if internet explorer allow it). I don't think the PDF plugin should handle this: put an inline style or define your css rule in your project.css.
        Hide
        Vincent Siveton added a comment -

        Ok for this requirements.
        But Apache use it in Maven site....
        http://cvs.apache.org/viewcvs.cgi/maven/xdocs/reference/developers/ide/eclipse/index.xml?view=markup
        Whos wrong?

        Show
        Vincent Siveton added a comment - Ok for this requirements. But Apache use it in Maven site.... http://cvs.apache.org/viewcvs.cgi/maven/xdocs/reference/developers/ide/eclipse/index.xml?view=markup Whos wrong?
        Hide
        Arnaud Heritier added a comment -

        Yes but images in this page aren't in the pdf, because of a problem with relative paths.
        So there's perhaps the bug, but it is not shown.

        Show
        Arnaud Heritier added a comment - Yes but images in this page aren't in the pdf, because of a problem with relative paths. So there's perhaps the bug, but it is not shown.
        Hide
        Vincent Siveton added a comment -

        Maybe I dont understand exactly what Arnaud said.
        In my xdoc file, I have:
        <section name="My blabla">
        <p>
        <style type="text/css">
        img.screenshot

        { padding: 10px; }


        </style>

        <img class="screenshot" src="images/logos/myImage.gif"/>
        OR
        <img class="screenshot" src="myImage.gif"/>
        OR
        <img class="screenshot" src="http://blabla/myContext/images/logos/myImage.gif"/>
        </p>
        </section>

        In the generated PDF, the images are correctly printed with the text
        img.screenshot

        { padding: 10px; }


        over the images.
        The pdf contains my images.

        Show
        Vincent Siveton added a comment - Maybe I dont understand exactly what Arnaud said. In my xdoc file, I have: <section name="My blabla"> <p> <style type="text/css"> img.screenshot { padding: 10px; } </style> <img class="screenshot" src="images/logos/myImage.gif"/> OR <img class="screenshot" src="myImage.gif"/> OR <img class="screenshot" src="http://blabla/myContext/images/logos/myImage.gif"/> </p> </section> In the generated PDF, the images are correctly printed with the text img.screenshot { padding: 10px; } over the images. The pdf contains my images.
        Hide
        Arnaud Heritier added a comment -

        you can download it with this command :

        maven plugin:download
        -Dmaven.repo.remote=http://cvs.apache.org/repository
        -DgroupId=maven
        -DartifactId=maven-pdf-plugin
        -Dversion=SNAPSHOT

        Show
        Arnaud Heritier added a comment - you can download it with this command : maven plugin:download -Dmaven.repo.remote= http://cvs.apache.org/repository -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=SNAPSHOT
        Hide
        Arnaud Heritier added a comment -

        reopen to change fix version

        Show
        Arnaud Heritier added a comment - reopen to change fix version
        Hide
        Arnaud Heritier added a comment -

        Fixed in 2.2.1

        Show
        Arnaud Heritier added a comment - Fixed in 2.2.1

          People

          • Assignee:
            Arnaud Heritier
            Reporter:
            Vincent Siveton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: