forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject Re: Cocoon 2.1M2 works! but pdf images does not.
Date Tue, 27 May 2003 01:06:39 GMT
Jeff,

I found the problem

1) when I was testing the pdf_with_images revision, that tag was left on 
my local copy for the lib/core directory.  i had to remove the lib/core 
directory to fix it. So then all the java errors were gone!

2) The images on the pdf for the sdocbook still does not display on the 
pdf output.


This is the previous xml now on doc-v11 as displayed for the localhost
<document>
<header>
<title>test page for pdf under sdocbook format</title>
<authors/>
</header>
<body>
<section id="Section+test+">
<title>Section test </title>
<p>This test should display a forrest logo below</p>
<table>
<tr>
<td>Forrest Logo </td>
</tr>
<title>Forrest Logo </title>
<mediaobject>
<imageobject>
<tr>
<td>
<img alt="" src="images/forrest-credit-logo.png"/>
</td>
</tr>
</imageobject>
</mediaobject>
</table>
</section>
</body>
</document>

<mediaobject> and <imageobject> are not valid doc-v11 documents!!

The problem is that docbook spec is diferent:

<graphic fileref="images/forrest-credit-logo.png"/>


Than in sdocbook:
<figure>
   <title>Forrest Logo </title>
   <mediaobject>
     <imageobject>
       <imagedata fileref="images/forrest-credit-logo.png" />
     </imageobject>
   </mediaobject>
</figure>


I fixed this for the sdocbook but breaks the docbook format:

Index: docbook2document.xsl
===================================================================
RCS file: 
/home/cvspublic/xml-forrest/src/resources/stylesheets/docbook2document.xsl,v
retrieving revision 1.7
diff -r1.7 docbook2document.xsl
62a63
 >                          <xsl:apply-templates select="title"/>
449c450
<                   <xsl:apply-templates/>
---
 >                   <xsl:apply-templates 
select="mediaobject/imageobject/imagedata"/>


Can we copy docbook2document.xsl to sdocbook2document.xsl apply this fix 
and change the xmap?


Index: forrest.xmap
===================================================================
RCS file: /home/cvspublic/xml-forrest/src/resources/conf/forrest.xmap,v
retrieving revision 1.15
diff -r1.15 forrest.xmap
128c128
<             <map:transform 
src="resources/stylesheets/docbook2document.xsl" />
---
 >             <map:transform 
src="resources/stylesheets/sdocbook2document.xsl" />


I can remove the non-sdocbook elements from this new file if you want.

Thank you,

Cheche


Jeff Turner wrote:
> Juan Jose Pablos wrote:
> 
>> Jeff,
>> I am sorry to ruin your announced..
>>
>>> To get images in PDFs, just copy jimi.jar to lib/core and rebuild.  That
>>> should be all that's necessary.
>>
>>
>> That was the first thing I did, but with not luck, I did some test 
>> today, and the display of images display when you use a 
>> document-v11.dtd format works fine.
>>
>> Now the problem I got is the I use the sdocbook format. This is the 
>> file I use for the test
> 
> ...
> 
>> and this is the error I got:
>>
>>
>> 15:19:49.534 WARN!! Error for /testpdf2.pdf
>> java.lang.NoSuchMethodError: 
>> org.apache.fop.apps.Driver.setLogger(Lorg/apache/avalon/framework/logger/Logger;)V

> 
> 
> ...
> 
>> 16:14:12.301 WARN!! Error for /testpdf2.pdf
>> java.lang.NoClassDefFoundError: org/apache/fop/messaging/MessageHandler
> 
> ...
> 
> It looks very much like you're missing the fop-0.20.4.jar file, which 
> contains this class. Have you tried to upgrade to CVS FOP recently? Are 
> you sure the doc-v11 PDF images work in the same Forrest installation 
> that sdocbook breaks in?  If so, what does the doc-v11 generated from 
> the sdocbook look like?  Eg., if 'index.html' is rendered from sdocbook, 
> request http://localhost:8888/index.xml, which will return doc-v11).
> 
> 
> --Jeff
> 
>> PLease let me know if you want me to test something else, no problem.
>>
>> Cheers
>>
>> Cheche
>>
>>
> 



Mime
View raw message