cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to code FOSI for mailto:

ptc-953926
1-Visitor

How to code FOSI for mailto:

Adepters:

We've got an email element that contains an address attribute. For example:

<email address="abc@def.com&lt;&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="mailto:abc@def.com">>DEF">mailto:abc@def.com>>DEF Company</email>

Does anyone know how I can code the FOSI to make this active in a PDF? We're using PE 5.3, direct-to-PDF.

I've tried FOSI coding similar to what we use for a URL link, but this doesn't work (even if I include mailto: or
<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>

Dave Hintz
8 REPLIES 8

Funny, I just stumbled on this myself. I have it working if I treat it like
an http link if the target is

This is not a DLM thing. According to some of what I have seen on the
web, this may depend on how you opened the PDF. A PDF opened in a
browser will do the mailto because the browser knows what to do. But a
PDF opened directly may not work. Apparently a PDF quirk, not on our
side.



John Dreystadt
Software Development Director
Arbortext - PTC
734-352-2835
-

Ah. My mailto links work in Acrobat 9 as you would expect ... Outlook pops a
blank e-mail to the target. In Acrobat 5, either it doesn't work, or a blank
web page opens but nothing happens, or a blank web page opens and then
Outlook pops a blank e-mail to the target.

I was, however, surprised not to be able to code it so I could handle links
like this:
<link target="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="http://ptc.com"">http://ptc.com" type="http">
<link target="-" type="mailto">

Instead of doing the latter as:
<link target="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="mailto:-"">mailto:-" type="http">

Can't say that that last is impossible, I just didn't get it to work before
I got the other thing to work which was "good enough" for now.

Oh, and I didn't open any of my PDFs from the web. They were all launched by
Editor, post-composition.

Dang! It must be Friday. Yes, after I added it to the DCF file as a link element it worked fine. Thanks!

as

I tried it with and without, but it only worked with mailto: preceding the address. Of course, if you simply display the e-mail address (as blah@blahdeeblah.com<),">mailto:blah@blahdeeblah.com>), you don't need mailto: and PDFs seem to understand the syntax and create a hot link.

Hilarious. I just tried the three following variations:
<para>No link e-mail address: -</para>
<para>Link but no attributes, e-mail address: <link>-
</link></para>
<para>Link: <link target="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="mailto:-"">mailto:-" type="http">
-</link></para>

And all three yield a functional PDF mailto link. The latter two are
highlighted blue thanks to the stylesheet. The middle one "violates" the DTD
... no required type attribute ... but it gets the visual formatting and
Adobe takes care of the rest. This obviously wouldn't work out well if you
have more than PDF to go to ...


Announcements

Top Tags