1

is there a possibility to include images into a docbook manual compiled by phpDocumentor?

I tried both:

<mediaobject>
 <imageobject>
  <imagedata fileref="payment_flowchart.png" format="png"/> 
 </imageobject>
</mediaobject>

and:

<figure><title>foo</title>
 <graphic fileref="payment_flowchart.png"/>
</figure>

Then again the image paths I tried might not have been what phpDocumentor expected, but I don't know where to put them anyway really.

Maybe someone has tried it before and had more success?

UPDATE

Current non-working approach:

<refentry id="{@id}">
 <refnamediv>
  <refname>Company_Payment</refname>
 </refnamediv>
 <refsynopsisdiv>
  <author>
   Company
   <authorblurb>
    {@link mailto:my@mail.com André Hoffmann}
   </authorblurb>
  </author>
 </refsynopsisdiv>
 {@toc}
 <refsect1 id="{@id about}">
  <title>About</title>
  <para>
   text
   <imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/> 
  </para>
  <imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/> 
<mediaobject>
    <imageobject>
    <imagedata fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png" format="PNG"/> 
    </imageobject>
</mediaobject>
    <figure><title>foo</title>
        <graphic srccredit="Norman Walsh, 1998" fileref="/Users/andre/Zend/workspaces/DefaultWorkspace7/payment/doc/tutorials/company/payment_flowchart.png"/>
    </figure>
 </refsect1>
...
4

2 回答 2

0

我取得了一些成功,但只是在我删除了 srccredit 属性之后。用 a 包裹标签并没有什么不同。

简单地:

<graphic fileref="/images/logo.png" />
于 2009-12-04T09:56:04.933 回答
0

我认为他们使用标签在1.3.0中修复了这个问题。<graphic/>你运行的是什么版本?

于 2009-09-09T20:02:42.040 回答