Jeremias Maerki:
> Looking at the PDF spec, I think that should be possible. In PDF
> Reference 1.4, see 8.4 Annotations and 8.5.2 Trigger Events. You can
> probably control the hidden attribute of an annotation using a
> mouse-over trigger event using a "hide action".
> 
> > any ideas whether this would be hard to implement?
> 
> The part in PDF is probably not all that hard. A few minor improvements
> to the PDF library should get you there. The harder part is to write a
> Batik extension that works with the PDF transcoder to generate the right
> elements in PDF. Since I've never written an extension in Batik, I don't
> know how much work that would be. Better ask on the Batik users list for
> ideas on that.

The Batik extension side of it isn’t too hard, either.  You’ll just
need to:

  ▪ Create org.apache.fop.svg.PDFTitleElementBridge and
    PDFDescElementBridge classes, that have a
    
      public void handleElement(BridgeContext ctx, Element e)

    method that will be called when the title/desc element is noticed.

  ▪ Change PDFBridgeContext’s registerSVGBridges to register these
    bridge classes:

      putBridge(new PDFTitleElementBridge());
      putBridge(new PDFDescElementBridge());

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to