* Attach (embed) a file info a .pdf
@ 2014-04-23 7:33 Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 8:27 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-04-23 7:33 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
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?
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
[-- Attachment #2: Clipboard02.jpg --]
[-- Type: image/jpeg, Size: 10984 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 7:33 Attach (embed) a file info a .pdf Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-04-23 8:27 ` Wolfgang Schuster
2014-04-23 8:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-04-23 8:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.04.2014 um 09:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 8:27 ` Wolfgang Schuster
@ 2014-04-23 8:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
1 sibling, 0 replies; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-04-23 8:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
... Great, thank you! Lukas
> 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
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 8:27 ` Wolfgang Schuster
2014-04-23 8:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-04-23 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 9:37 ` Wolfgang Schuster
1 sibling, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-04-23 9:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1555 bytes --]
... One more question: the following example seems not to contain any attachment:
---- t4.mkiv
\attachment[t4.mkiv]
\starttext
AAA
\stoptext
----
What's wrong?
Lukas
> 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
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
[-- Attachment #2: t4.mkiv --]
[-- Type: application/octet-stream, Size: 54 bytes --]
\attachment[t4.mkiv]
\starttext
AAA
\stoptext
[-- Attachment #3: t4.pdf --]
[-- Type: application/pdf, Size: 4643 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-04-23 9:37 ` Wolfgang Schuster
2014-04-23 9:51 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-04-23 9:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.04.2014 um 11:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> ... One more question: the following example seems not to contain any attachment:
>
> ---- t4.mkiv
> \attachment[t4.mkiv]
>
> \starttext
> AAA
> \stoptext
> ----
>
> What's wrong?
Add \setupinteraction[state=start] to your document.
Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 9:37 ` Wolfgang Schuster
@ 2014-04-23 9:51 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 10:20 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-04-23 9:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> \setupinteraction[state=start]
It work now, thanks.
And - hopefully the last question:
Is it possible to affect the icon shown (now: "pin") (to be eg. "paperclip")?
And is it possible to hide the icon completely?
(I tried "method=hidden" but this produces "attachment.txt" instead of "t4.mkiv" as an attachment).
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 9:51 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-04-23 10:20 ` Wolfgang Schuster
2014-04-24 8:12 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-04-23 10:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.04.2014 um 11:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>
>> \setupinteraction[state=start]
>
> It work now, thanks.
>
> And - hopefully the last question:
>
> Is it possible to affect the icon shown (now: "pin") (to be eg. "paperclip“)?
You can change the symbol with
\setupattachments[symbol=Paperclip]
but this doesn’t produce the right symbol because there is a spelling error in the source (should be fixed in the next beta).
> And is it possible to hide the icon completely?
> (I tried "method=hidden" but this produces "attachment.txt" instead of "t4.mkiv" as an attachment).
I think it’s a bug because there appears only a empty attachment in the document.
Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Attach (embed) a file info a .pdf
2014-04-23 10:20 ` Wolfgang Schuster
@ 2014-04-24 8:12 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2014-04-24 8:12 UTC (permalink / raw)
To: ntg-context
On 4/23/2014 12:20 PM, Wolfgang Schuster wrote:
>
> Am 23.04.2014 um 11:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
>
>> On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>
>>> \setupinteraction[state=start]
>>
>> It work now, thanks.
>>
>> And - hopefully the last question:
>>
>> Is it possible to affect the icon shown (now: "pin") (to be eg. "paperclip“)?
>
> You can change the symbol with
>
> \setupattachments[symbol=Paperclip]
>
> but this doesn’t produce the right symbol because there is a spelling error in the source (should be fixed in the next beta).
>
>> And is it possible to hide the icon completely?
>> (I tried "method=hidden" but this produces "attachment.txt" instead of "t4.mkiv" as an attachment).
>
> I think it’s a bug because there appears only a empty attachment in the document.
i patched the keys cf. your mail but is there more to fix?
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2014-04-24 8:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 7:33 Attach (embed) a file info a .pdf Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 8:27 ` Wolfgang Schuster
2014-04-23 8:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 9:37 ` Wolfgang Schuster
2014-04-23 9:51 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-04-23 10:20 ` Wolfgang Schuster
2014-04-24 8:12 ` Hans Hagen
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).