[NTG-context] Attach (embed) a file info a .pdf

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Apr 23 10:27:37 CEST 2014


Am 23.04.2014 um 09:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr at pontex.cz>:

> Hello,
> 
> I'm not able to recall the way how to attach a file into a .pdf being generated.
> 
> I need the attached files to be "openable" or "savable" from the .pdf - see the image.
> 
> How to achieve this with ConTeXt?

Comments from scrn-wid.mkvi:

% old but stil valid method:
%
% \useattachment[test.tex]
% \useattachment[whatever][test.tex]
% \useattachment[whatever][newname][test.tex]
% \useattachment[whatever][title][newname][test.tex]
%
% new method:
%
% \registerattachment[sometag][specification] % name file author title subtitle
%
% \attachment[sometag][extra specs]
% \attachment[test.tex]
% \attachment[file=test.tex]
% \attachment[file=test.tex,method=hidden]
% \attachment[name=newname,file=test.tex]
% \attachment[title=mytitle,name=newname,file=test.tex]
%
% indirect
%
% \defineattachment[whatever5][file=test.tex] \attachment[whatever5][method=hidden]
% \defineattachment[whatever5][file=test.tex,method=hidden] \attachment[whatever5]
%
% direct (no definitions)
%
% \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden]
% \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden]
%
% autolabel:
%
% \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden]

Wolfgang


More information about the ntg-context mailing list