ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hidden attachments broken
@ 2012-08-17 18:24 Michail Vidiassov
  0 siblings, 0 replies; only message in thread
From: Michail Vidiassov @ 2012-08-17 18:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Hans and All,

if I use example from scrn-wid.mkvi
\attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX
File,method=hidden]

empty file gets embedded and all specs are lost.

If I remove "method=hidden" all is OK - file is there, I can see
supplied information in Adobe Reader list of attached/embedded files.

I did not trace the cause of file getting empty, but the loss of specs
appears to be by design.
In 2011 you wrote
"The hidden method will not place an annotation."
(http://www.ntg.nl/pipermail/ntg-context/2011/057091.html),
 but now the comment "hidden = not in menu" in scrn-wid.mkv implies
that you also try to hide file information in the list of attached
files,
so menu entry is just a placeholder with file name "attachment.txt"
and empty description.
The relevant code piece, where specs and filename are dropped, seems
to be in scrn-wid.mkvseems
\setvalue{scrn_attachment_method_\v!hidden}%
  {\ctxcommand{insertattachment{
     tag        = "\currentattachment",
     registered = "\currentattachmentregistered",
     method     = "\v!hidden"
  }}}


While such anonymizing mode may be required for some security-obsessed
people, who do not want filenames leak into shipped out files,
it seems strange not to provide an option to preserve the old behavior
(hidden file appears in attached/embedded files list of Adobe Reader
with filename and description) and break your own example.

    Sincerely, Michail

PS.
ConTeXt  ver: 2012.08.16 22:20 MKIV
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-17 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 18:24 hidden attachments broken Michail Vidiassov

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).