From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66271 Path: news.gmane.org!not-for-mail From: Michail Vidiassov Newsgroups: gmane.comp.tex.context Subject: Re: \useattachment: Embedding files in PDFs - was "attachment attaches twice - more research" Date: Tue, 22 Feb 2011 08:25:16 +0300 (MSK) Message-ID: References: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB516@KCL-MAIL05.kclad.ds.kcl.ac.uk> <4D61AD94.8020601@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="140733193388032-187596917-1298352316=:64075" X-Trace: dough.gmane.org 1298352626 6171 80.91.229.12 (22 Feb 2011 05:30:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 05:30:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 22 06:30:22 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrkpK-0005Fb-0T for gctc-ntg-context-518@m.gmane.org; Tue, 22 Feb 2011 06:30:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01D52CAA4B; Tue, 22 Feb 2011 06:30:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id b1zGqlIDutbl; Tue, 22 Feb 2011 06:30:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77493CAA3D; Tue, 22 Feb 2011 06:30:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B108CAA3D for ; Tue, 22 Feb 2011 06:30:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id t1LL3UfZKXHX for ; Tue, 22 Feb 2011 06:29:54 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 34CBFCAA3B for ; Tue, 22 Feb 2011 06:29:54 +0100 (CET) Original-Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1M5Tql4012210 for ; Tue, 22 Feb 2011 06:29:53 +0100 Original-Received: from [192.168.0.101] ([95.143.208.28]) (authenticated bits=0) by serv.iaas.msu.ru (8.14.3/8.14.3) with ESMTP id p1M5MArh085831 for ; Tue, 22 Feb 2011 08:22:10 +0300 (MSK) (envelope-from master@iaas.msu.ru) X-X-Sender: master@macbook.local In-Reply-To: <4D61AD94.8020601@wxs.nl> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.192.224.252; country=RU; region=48; city=Moscow; latitude=55.7522; longitude=37.6156; http://maps.google.com/maps?q=55.7522,37.6156&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEaRtQ00 - 67c49a91285b - 20110222 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66271 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --140733193388032-187596917-1298352316=:64075 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Dear Hans, I'd like to remind you about an old problem report ------ From: Tobias Burnus Date: 2008-01-04 16:01 +300 I can use \useattachment to embed/attach files in a PDF file. I can use: \useattachment[whatever][title][newname][test.tex] \attachment[whatever] This creates an attachment with the description "title" and the name "test.tex". However, how can I set the author/subject? (Shown in tool tip of the annotation symbol; it is shown above the description; actually subject is enough for me.) Additionally, I miss the file size and possibly the modification date for the attachments; they are often handy to have. Is is possible to associate an embedded file stream with the document itself without creating an annotation symbol as with \attachment in ConTeXt? (The PDF spec allows this; cf. e.g. 3.10.3 in the PDF spec and http://www.microtype.com/showcase/EmbedFiles.pdf for an example PDF file.= ) ------- what he names "author/subject" is the "T" entry in annotation dictionary=20 (the same where /Subtype /FileAttachment goes), that is described as "The text label that shall be displayed in the title bar of the=20 annotation=E2=80=99s pop-up window when open and active. This entry shall= identify the user who=20 added the annotation." It appears as the upper of the two lines that are shown when the mouse=20 pointer is over file attachment annotation icon (the lower one is the=20 description mentioned above). And for "file size and modification date" to show up file stream has to=20 look like 8 0 obj<< /Params << /ModDate (20050217) /Size 2048>> /Length 1218>>strea= m not just 15 0 obj<< /Length 144>>stream as it is now. Sincerely, Michail --140733193388032-187596917-1298352316=:64075 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --140733193388032-187596917-1298352316=:64075--