From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66220 Path: news.gmane.org!not-for-mail From: Michail Vidiassov Newsgroups: gmane.comp.tex.context Subject: Re: attachment attaches twice - more research Date: Mon, 21 Feb 2011 01:21:15 +0300 (MSK) Message-ID: References: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB516@KCL-MAIL05.kclad.ds.kcl.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="140733193388032-1886005160-1298239381=:61123" X-Trace: dough.gmane.org 1298241062 30934 80.91.229.12 (20 Feb 2011 22:31:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 22:31:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 20 23:30:57 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 1PrHnt-0001SP-Az for gctc-ntg-context-518@m.gmane.org; Sun, 20 Feb 2011 23:30:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 511B8CAA3C; Sun, 20 Feb 2011 23:30:56 +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 N56JbB0gubPw; Sun, 20 Feb 2011 23:30:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DFD06CAA34; Sun, 20 Feb 2011 23:30:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A360ACAA34 for ; Sun, 20 Feb 2011 23:30:41 +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 PvQzlFB8eu7q for ; Sun, 20 Feb 2011 23:30:20 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id D7F4DCAA32 for ; Sun, 20 Feb 2011 23:30:20 +0100 (CET) Original-Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1KMUFDb022782 for ; Sun, 20 Feb 2011 23:30:20 +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 p1KMIBA1043520 for ; Mon, 21 Feb 2011 01:18:11 +0300 (MSK) (envelope-from master@iaas.msu.ru) X-X-Sender: master@macbook.local In-Reply-To: User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) Content-ID: 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: 0bEamuf9W - a15a347abcab - 20110220 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:66220 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-1886005160-1298239381=:61123 Content-Type: TEXT/PLAIN; CHARSET=UTF-8; FORMAT=flowed Content-ID: Content-Transfer-Encoding: quoted-printable Dear Developers, On Sun, 20 Feb 2011, Michail Vidiassov wrote: > to be precise, the attachment is attached once > but is listed twice by Adobe Reader. PDF spec states ---------- An embedded file stream shall be included in a PDF document in one of the= =20 following ways: =E2=80=A2 Any file specification dictionary in the document may have an E= F=20 entry that specifies an embedded file stream. The stream data shall still= =20 be associated with a location in the file system. In particular, this=20 method shall be used for file attachment annotations (see 12.5.6.15, "Fil= e=20 Attachment Annotations"), which associate the embedded file with a locati= on=20 on a page in the document. =E2=80=A2 Embedded file streams may be associated with the document as a=20 whole through the EmbeddedFiles entry (PDF 1.4) in the PDF document=E2=80= =99s name=20 dictionary (see 7.7.4, "Name Dictionary"). The associated name tree shall= =20 map name strings to file specifications that refer to embedded file strea= ms=20 through their EF entries. ---------- while code in lpdf-wid.lua sends everything to EmbeddedFiles - including=20 files associated "with a location on a page in the document" as in the=20 examples in the originator's post. For example http://www.microtype.com/showcase/EmbedFiles.pdf has it done correctly, EmbeddedFiles refers only to that embedded files=20 that are not linked to particular icons on pages. Sincerely, Michail PS. did not experiment with patching lpdf-wid.lua myself yet... --140733193388032-1886005160-1298239381=:61123 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-1886005160-1298239381=:61123--