ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: xetex and attachment: troubles
Date: Wed, 2 Apr 2008 23:29:38 +0200	[thread overview]
Message-ID: <6faad9f00804021429g41e7cc2eia6303220aba54af9@mail.gmail.com> (raw)
In-Reply-To: <3ABD00F8-22E0-4292-BFDA-66CCDF3AD113@di.unito.it>

On Mon, Mar 31, 2008 at 5:28 PM, Andrea Valle wrote:
> Dear all,
> I'm using xetex with fun (as suggested and discussed on the mailing list).
>
> I'm revising a previously created document which used attachment command.
> (the one documented here:
> http://wiki.contextgarden.net/Verbatim_text#A_different_approach_to_formatting_and_code_colorization
> )
>
> The actual version is here:
> http://www.cirma.unito.it/andrea/sw/sc/prd_tSCIRMA_scr.pdf
>
> Now, with ConTeXt no problem.
> If I use XeConTeXt (--> texexec --xtx) the file is not attached (there's the
> marker, a link is diplayed, but Acrobat says that there's no attachment).
> As far as I can say, the problem seems to depend on --xtx switch,

The problem is not the "--xtx switch", but the lack of support for the
underlying (xdvipdfmx) driver.

I googled a bit and found the following slides:
      http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
see page 18 in particular.

In spec-fdf there is:

\definespecial \doattachfile {\doPDFattachfile}

\def\doPDFattachfile#1#2#3#4#5#6#7#8%
  {\bgroup % title width height color symbol file
   \edefconvertedargument\PDFfile{#8}%
   % beware: the symbol may (indirectly) use the file
   % reference when typesetting the object number;
   \presetPDFsymbolappearance{#5}{#6}{#2}{#3}{#4}% sets width/height
   \startPDFsymbolappearance
     \doPDFembedfile\PDFfile{#7}{#8}%
     \doPDFgetembeddedfilereference\PDFfile\PDFobjectreference
     \setFDFlayer\@@DriverAttachmentLayer
     \doPDFannotation{\width}{\totalheight}
       {/Subtype /FileAttachment
        /FS \PDFobjectreference\space
        /Contents (#1)
        \PDFsymbol
        \FDFlayer
        \PDFattributes}%
   \stopPDFsymbolappearance
   \egroup}

Something similar needs to be added to spec-dpx.tex. (If Hans doesn't
reply, then someone else will have to.)

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2008-04-02 21:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31 15:28 Andrea Valle
2008-04-02 20:27 ` Andrea Valle
2008-04-02 21:29 ` Mojca Miklavec [this message]
2008-04-03  9:08   ` Andrea Valle
2008-04-03 10:10     ` Mojca Miklavec
2008-04-03 10:17       ` Hans Hagen
2008-04-03 10:53         ` Andrea Valle
2009-04-10  1:05           ` Jesse Alama
2009-04-10  7:49             ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f00804021429g41e7cc2eia6303220aba54af9@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).