Skip to main content
1-Visitor
April 27, 2010
Question

external hyperlinks in pdf

  • April 27, 2010
  • 11 replies
  • 2136 views

How do you activate external links when generating pdf . eg. links to other pdfs

    11 replies

    1-Visitor
    April 27, 2010
    See "help 2120".
    aleslie1-VisitorAuthor
    1-Visitor
    April 28, 2010

    Thanks Dave,

    How is this coded within the FOSI ?

    Rgds,

    Andy

    1-Visitor
    April 29, 2010
    Well, in our schema we have an element for URL links, "linkURL" that passes the URL in an "address" attribute. Here's the FOSI code:

    <e-i-c gi="linkURL">
    <charlist>

    <indent inherit="1">
    <quadding inherit="1">
    <highlt inherit="1" fontclr="blue">
    </charlist>
    <att logic="and">
    <fillval attname="id" fillcat="link" fillchar="address">
    </att>
    </e-i-c>

    You also need an entry in your DCF file identifying the link element and the attribute containing the URL (uri). Here's ours:

    <link element="linkURL" uri="address"/">

    So, for PDF links between PDFs, build the URL as described in the Arbortext help and use a similar link element.

    Dave
    aleslie1-VisitorAuthor
    1-Visitor
    April 30, 2010

    Hi Dave,

    Thanks for this - all working now.

    Didn't mention any of this within Arbortext Help.

    Regards,

    Andy

    1-Visitor
    April 30, 2010
    Yes, as I recall there used to be a Samples book from Arbortext that had lots of very valuable examples of how to do things. I don't know whatever happened to that book. Maybe someone else on this list (or from Arbortext) knows where it is.

    Dave
    18-Opal
    April 30, 2010
    In many cases, the best way to figure out how to do something is to look
    at Arbortext's own code. For example, to see how hyperlinks work, you
    could look at the files supporting axdocbook to see how their styler
    sheets and DCF are configured for link elements to make hyperlinks.



    Also, all the pieces of this really are there in the help, but they can
    be hard to find if you don't know where to look, and it can be difficult
    to put the pieces together when you're first getting up to speed with
    Arbortext customization. This is where it is especially useful to look
    at the way Arbortext configures its default doctypes. For example, if
    you grep for "ulink" in the axdocbook doctype directory, you'll see
    where it's defined as a link element in the DCF, and where it's styled
    in the Styler stylesheet. From there you can consult the help for more
    details on <link> in the DCF file, and on the "Link" style in Styler, if
    necessary.



    I don't remember seeing a Samples book, but there is a samples directory
    in the Arbortext installation tree that also contains many good,
    well-commented examples of various kinds of customizations.



    And there's always Adepters for when all else fails. 🙂



    --Clay


    1-Visitor
    April 30, 2010
    About 15 years ago, there was a booklet with FOSI techniques, but it became mostly obsolete with the Adept 8 release, which supported a later version of the OutSpec DTD.

    Suzanne Napoleon
    www.FOSIexpert.com
    "WYSIWYG is last-century technology!"


    1-Visitor
    April 30, 2010
    Well, we first started using FOSIs and Adept 5.1 around 1990, so it’s no wonder I remember there being such a book!
    1-Visitor
    May 1, 2010
    At 11:44 AM 4/30/2010, you wrote:
    >I don't remember seeing a Samples book, but there is a samples
    >directory in the Arbortext installation tree that also contains many
    >good, well-commented examples of various kinds of customizations.

    I have an old "handout" that was created for one of the first User
    Group meetings. I keep it locked in a vault as it is invaluable when
    it comes to giving a good description of what is going on and why
    things are done the way they are. yeah you can hack code and try to
    find all the "connected" parts but there is nothing that substitutes
    for good documentation.

    ..dan
    ---------------------------------------------------------------------------
    Danny Vint

    Panoramic Photography
    1-Visitor
    May 3, 2010
    So, Dan,

    Any chance you could find a way to share that handout? Scan or whatever? Some of us have never had the opportunity to attend one of those, much less that particular one.

    But now we know who to call, huh? 🙂
    Steve Thompson
    +1(316)977-0515