OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Embed a PDF document into DocBook book?


John Brown and Jirka Kosek both had good suggestions to split the case 
study into individual pages using pdftk and then use mediaobject.

This approach seems to work pretty well, although the generated index 
entries don't seem to point to the same page where the image is rendered 
(pretty close, though).

Here's what I came up with...
   <chapter>
         <title>Case Study</title>
         <mediaobject>
 
<objectinfo><indexterm><primary>TEST</primary></indexterm></objectinfo>
             <imageobject>
                 <imagedata fileref="casestudy_001.pdf" scalefit="1" 
width="100%" contentdepth="100%" format="PDF"/>
             </imageobject>
         </mediaobject>
         <para/>
         <mediaobject>
 
<objectinfo><indexterm><primary>TEST2</primary></indexterm></objectinfo>
             <imageobject>
                 <imagedata fileref="casestudy_002.pdf" scalefit="1" 
width="100%" contentdepth="100%" format="PDF"/>
             </imageobject>
         </mediaobject>
         <para/>
         <mediaobject>
 
<objectinfo><indexterm><primary>TEST3</primary></indexterm></objectinfo>
             <imageobject>
                 <imagedata fileref="casestudy_003.pdf" scalefit="1" 
width="100%" contentdepth="100%" format="PDF"/>
             </imageobject>
         </mediaobject>
         <para/>
         <mediaobject>
 
<objectinfo><indexterm><primary>TEST</primary></indexterm></objectinfo>
             <imageobject>
                 <imagedata fileref="casestudy_004.pdf" scalefit="1" 
width="100%" contentdepth="100%" format="PDF"/>
             </imageobject>
         </mediaobject>
     </chapter>

The biggest problem I'm having now is that the image doesn't appear to 
scale the entire width of the page. I'm using XEP, but FOP 0.95 does the 
same (or worse).

What am I missing? I've tried width="100%" but that also errors. I've 
also tried setting the default.image.width param, but that doesn't seem 
to work either.

Any ideas?

Thanks and best regards,

--Scott


Keith Fahlgren wrote:
> On Mon, Sep 29, 2008 at 8:37 AM, Scott Hudson
> <scott.hudson@flatironssolutions.com> wrote:
>> Folks,
>>
>> I have a situation where I need to include a set of preformatted PDF in my
>> DocBook book (e.g., a case study). What is the best method to integrate
>> this? I tried the mediaobject route, but that only gives me the first page.
> 
> What processor? I think you'd have to do this in an extension, but
> looking at the AntennaHouse manual seems to indicate they've got a
> workaround (PDF Output, PDF Embedding section)....
> 
> HTH,
> Keith
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]