https://bugs.documentfoundation.org/show_bug.cgi?id=171022

--- Comment #4 from MikeB <[email protected]> ---
> Do you have any example how to use the SD entry ?

Oh, yes - many! One is attached (this shows the RoleMapNS use too by the way,
from issues 168057)

The change is actually very simple - where you currently write a *destination*
like this:

[<page> /XYZ 56 773 0]a

You need to replace this with an *action* like this:

<< /Type /Action /S /GoTo /D [<page> /XYZ 56 773 0] /SD [<element> /XYZ 56 773
0] >>

where <page> is a reference to the page object and <element> is a reference to
the "StructElem" element you're linking to.

This applies wherever you'd using a Dest: in the outlines, in link annotations
on the page, in any initial action run when the PDF is opened to set the page
zoom - and if LibreOffice generates named actions, in there too. 

I'm calling out named actions specially because they're a little different - if
you create these (using either a /Dests key in the catalog or a /Dests key in
the document name dictionary) then it's as described above except the
/Type/Action and /S/GoTo aren't required - although they won't break anything
if you leave them in.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to