Ben and Tyson:

Callouts on images are very different than image maps. To get image
callouts to work with docbook you have to use either Saxon or Xalan as they
need extension packages written for the specific processors (the
functionality does not work with XSLT 1.0 stylesheets)

These packages come as part of the stylesheet distribution under the
extension directory. Pick the one that matches the processor you are using
(I strongly suggest Saxon) and make sure that it is in your Java classpath.
You can find more and better instructions in Bob's book:
http://sagehill.net/docbookxsl/AnnotateListing.html#CalloutsGraphics

Carlos

On Mon, May 7, 2012 at 7:55 AM, ben.guillon <ben.guil...@gmail.com> wrote:

> FYI, dblatex supports callouts on images (see http://dblatex.sourceforge.*
> *net/example/dblatex/example.**pdf<http://dblatex.sourceforge.net/example/dblatex/example.pdf>,
> section 5.1).
>
> The only constraint to have relevant coordinates.
>
> Regards,
> BG
>
>
> On Mon, 07 May 2012 16:29:16 +0200, Tyson Marchuk <tmarc...@cdlsystems.com>
> wrote:
>
>  Hi Bob,
>>
>> Thank you. I guess I'll have to do something else then if hotspots on
>> graphics are not supported in PDFs. I did some more searching and
>> apparently PDFs do support this (http://www.authorst.com/hot_**
>> graphics_in_pdf_file.php<http://www.authorst.com/hot_graphics_in_pdf_file.php>)
>> so I guess it is a limitation of the DocBook XSL to PDF conversion (which I
>> guess is what you're saying below although I don't quite understand the
>> concept of extensions in this context.)
>>
>> Thank you for your time,
>> -Tyson
>>
>> On 2012/05/06 1:00 AM, Bob Stayton wrote:
>>
>>> Hi Tyson,
>>> That message you referred to did not cover imagemaps.  It was referring
>>> to using callout icons in a programlisting.  In that case, an extension
>>> function is needed to preprocess the text in the programlisting to place
>>> the callout images in with the text, and that mix is then processed by
>>> DocBook XSL into PDF output.  There is no equivalent extension for mixing
>>> callouts or other hot spots with images, as far as I know.  I hope someone
>>> proves me wrong.
>>>
>>> Bob Stayton
>>> Sagehill Enterprises
>>> b...@sagehill.net
>>>
>>>
>>> ----- Original Message ----- From: "Tyson Marchuk" <
>>> tmarc...@cdlsystems.com>
>>> To: <docbook-apps@lists.oasis-**open.org<docbook-apps@lists.oasis-open.org>
>>> >
>>> Sent: Friday, May 04, 2012 4:09 PM
>>> Subject: [docbook-apps] Image maps in PDF output
>>>
>>>
>>>  Hello,
>>>>
>>>> I'm new to Docbook and I'm trying to create an image map (click-able
>>>> image where clicking different sections of the image results in going to
>>>> different locations in the document) in a PDF document. I've run across
>>>> this reference 
>>>> (http://www.sagehill.net/**docbookxsl/Imagemaps.html<http://www.sagehill.net/docbookxsl/Imagemaps.html>)
>>>> which seems to suggest this can't be done in PDFs with Docbook but it was
>>>> published in 2007 and I saw a post on this mailing list from 2012 (
>>>> http://lists.oasis-open.org/**archives/docbook-apps/201202/**
>>>> msg00010.html<http://lists.oasis-open.org/archives/docbook-apps/201202/msg00010.html>)
>>>> which seems to suggest it should work in PDFs. I've used the example code
>>>> from the first link with slight modifications (copied below) on one of my
>>>> graphics and changed the stylesheet to only use numbers and while the
>>>> output does have the numbers and text below the graphic there does not
>>>> appear to be any linking going on in the document between the graphic and
>>>> callouts.
>>>>
>>>> Is this a limitation of PDFs or Docbook or am I doing something wrong?
>>>>
>>>> Thank you for your time and help,
>>>> Tyson Marchuk
>>>>
>>>> <mediaobjectco>
>>>> <imageobjectco>
>>>> <areaspec id="map1" units="calspair">
>>>> <area linkends="callout1" coords="0,0 5000,10000" id="area1"/>
>>>> <area linkends="callout2" coords="5000,0 10000,10000" id="area2"/>
>>>> </areaspec>
>>>> <imageobject>
>>>> <imagedata fileref="images/myImage.png" />
>>>> </imageobject>
>>>> <calloutlist>
>>>> <callout arearefs="area1" id="callout1">
>>>> <para>My only callout1</para>
>>>> </callout>
>>>> <callout arearefs="area2" id="callout2">
>>>> <para>My only callout2</para>
>>>> </callout>
>>>> </calloutlist>
>>>> </imageobjectco>
>>>> </mediaobjectco>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------**------------------------------**
>>>> ---------
>>>> To unsubscribe, e-mail: 
>>>> docbook-apps-unsubscribe@**lists.oasis-open.org<docbook-apps-unsubscr...@lists.oasis-open.org>
>>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-**
>>>> open.org <docbook-apps-h...@lists.oasis-open.org>
>>>>
>>>>
>>>>
>>>>
>>>
>>> ------------------------------**------------------------------**
>>> ---------
>>> To unsubscribe, e-mail: 
>>> docbook-apps-unsubscribe@**lists.oasis-open.org<docbook-apps-unsubscr...@lists.oasis-open.org>
>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-**
>>> open.org <docbook-apps-h...@lists.oasis-open.org>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: 
>> docbook-apps-unsubscribe@**lists.oasis-open.org<docbook-apps-unsubscr...@lists.oasis-open.org>
>> For additional commands, e-mail: 
>> docbook-apps-help@lists.oasis-**open.org<docbook-apps-h...@lists.oasis-open.org>
>>
>>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> docbook-apps-unsubscribe@**lists.oasis-open.org<docbook-apps-unsubscr...@lists.oasis-open.org>
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-**open.org<docbook-apps-h...@lists.oasis-open.org>
>
>

Reply via email to