Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Doxia Book Renderer
-
Labels:None
-
Number of attachments :1
Description
We've decided to use Maven Doxia back in 2008.
2,5 years have passed but generated PDFs/RTFs still look unacceptably ugly.
Please see attached project.
PDFs/RTFs built from content
<p>No formatting.</p> <p>font size 1: <font size="1">this</font></p> <p>font size 20: <font size="20">this</font></p> <p>font size=small: <font size="small">small</font> </p> <p> small: <small>this</small> </p> <p> font color red: <font color="red">this</font> </p> <p> strike: <s>strike</s> </p> <p><source> code line XXX </source> </p>
have totally no formatting while xhtml looks fine.
Frankly speaking I just can't believe Doxia Books plugin is so lame - could there be a misconfiguration in my sample project?
At least is there a workaround to make source code formatting differ from main text in PDF (e.g. have smaller size)? We need this badly.
-
Hide
- ugly_pdf_in_doxia.zip
- 17/Jan/11 10:16 AM
- 102 kB
- Lazy Coder
-
- target/.../doxia-example-book.pdf 1 kB
- target/.../doxia-example-book.xml 3 kB
- target/.../doxia-example-book.rtf 2 kB
- target/.../doxia-example-book.xml 3 kB
- target/generated-site/.../id1.xml 1 kB
- target/generated-site/.../index.xml 0.9 kB
- target/generated-site/.../section1.xml 1 kB
- target/.../doxia-example-book.xhtml 0.8 kB
- target/site/css/maven-base.css 2 kB
- target/site/css/maven-theme.css 3 kB
- target/site/css/print.css 0.2 kB
- target/site/css/site.css 3 kB
- target/site/doxia-example-book/id1.html 3 kB
- target/site/.../index.html 3 kB
- target/site/.../section1.html 0.0 kB
- target/site/.../apache-maven-project.png 31 kB
- target/site/images/apache.png 5 kB
- target/site/images/collapsed.gif 0.1 kB
- target/site/images/expanded.gif 0.1 kB
- target/site/images/external.png 0.2 kB
- target/site/images/icon_error_sml.gif 1.0 kB
- target/site/images/icon_info_sml.gif 0.6 kB
- target/site/images/icon_success_sml.gif 1.0 kB
- target/site/images/icon_warning_sml.gif 0.6 kB
- target/site/.../build-by-maven-black.png 2 kB
- target/site/.../build-by-maven-white.png 2 kB
- target/site/.../logos/maven-feather.png 3 kB
- target/site/images/newwindow.png 0.2 kB
- target/site/section1.html 2 kB
- pom.xml 1 kB
Activity
Hide
Lazy Coder
added a comment -
Thanks for the response!
It's really a pity as for Doxia Books, but thanks for maven-pdf-plugin.
As for rtf output I have
<format> <id>rtf</id> </format>
in my pom.xml so I assume I already use doxia RTF module.
Its output looks quite the same as PDF.
Show
Lazy Coder
added a comment - Thanks for the response!
It's really a pity as for Doxia Books, but thanks for maven-pdf-plugin.
As for rtf output I have
<format>
<id> rtf </id>
</format>
in my pom.xml so I assume I already use doxia RTF module.
Its output looks quite the same as PDF.
The book code is indeed unmaintained and in bad shape, we will probably deprecate it.
For pdf you should be happier with the maven-pdf-plugin [1], for rtf output, you might try the corresponding doxia module [2], but I am not sure how that works.
[1] http://maven.apache.org/plugins/maven-pdf-plugin/
[2] http://maven.apache.org/doxia/references/index.html