jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 1.x PDF Plugin
  • Maven 1.x PDF Plugin
  • MPPDF-21

PDF print style tag content

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
fabrizio giustina added a comment - 26/Oct/04 8:02 AM

<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 - 26/Oct/04 8:02 AM <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
Permalink
Vincent Siveton added a comment - 26/Oct/04 8:10 AM

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 - 26/Oct/04 8:10 AM 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
Permalink
Arnaud Heritier added a comment - 26/Oct/04 12:12 PM

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 - 26/Oct/04 12:12 PM 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
Permalink
Vincent Siveton added a comment - 26/Oct/04 2:17 PM

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 - 26/Oct/04 2:17 PM 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
Permalink
Arnaud Heritier added a comment - 26/Oct/04 5:10 PM

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 - 26/Oct/04 5:10 PM 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
Permalink
Arnaud Heritier added a comment - 23/Mar/05 5:22 PM

reopen to change fix version

Show
Arnaud Heritier added a comment - 23/Mar/05 5:22 PM reopen to change fix version
Hide
Permalink
Arnaud Heritier added a comment - 23/Mar/05 5:22 PM

Fixed in 2.2.1

Show
Arnaud Heritier added a comment - 23/Mar/05 5:22 PM Fixed in 2.2.1

People

  • Assignee:
    Arnaud Heritier
    Reporter:
    Vincent Siveton
Vote (0)
Watch (0)

Dates

  • Created:
    26/Oct/04 7:11 AM
    Updated:
    23/Mar/05 5:22 PM
    Resolved:
    23/Mar/05 5:22 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.