From: Michail Vidiassov <master@iaas.msu.ru>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: attachment attaches twice - more research
Date: Mon, 21 Feb 2011 01:21:15 +0300 (MSK) [thread overview]
Message-ID: <alpine.OSX.2.00.1102210027380.61123@macbook.local> (raw)
In-Reply-To: <alpine.OSX.2.00.1102201225410.13071@macbook.local>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1498 bytes --]
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
following ways:
• Any file specification dictionary in the document may have an EF
entry that specifies an embedded file stream. The stream data shall still
be associated with a location in the file system. In particular, this
method shall be used for file attachment annotations (see 12.5.6.15, "File
Attachment Annotations"), which associate the embedded file with a location
on a page in the document.
• Embedded file streams may be associated with the document as a
whole through the EmbeddedFiles entry (PDF 1.4) in the PDF document’s name
dictionary (see 7.7.4, "Name Dictionary"). The associated name tree shall
map name strings to file specifications that refer to embedded file streams
through their EF entries.
----------
while code in lpdf-wid.lua sends everything to EmbeddedFiles - including
files associated "with a location on a page in the document" as in the
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
that are not linked to particular icons on pages.
Sincerely, Michail
PS. did not experiment with patching lpdf-wid.lua myself yet...
[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-02-20 22:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 7:54 attachment attaches twice Reviczky, Adam
2011-02-20 9:40 ` Michail Vidiassov
2011-02-20 22:21 ` Michail Vidiassov [this message]
2011-02-21 0:11 ` attachment attaches twice - more research Hans Hagen
2011-02-21 5:49 ` attachment attaches twice - please, do not fix by trimming Michail Vidiassov
2011-02-22 5:25 ` \useattachment: Embedding files in PDFs - was "attachment attaches twice - more research" Michail Vidiassov
2011-02-23 10:21 ` attachment attaches twice - more research Michail Vidiassov
2011-02-23 10:46 ` Hans Hagen
2011-02-23 11:35 ` Michail Vidiassov
2011-02-26 23:22 ` Hans Hagen
2011-02-28 7:52 ` attachment attaches twice - the fix was minimal Michail Vidiassov
2011-02-28 8:46 ` Hans Hagen
2011-02-28 9:24 ` attachment attaches twice - the fix was minimal (?) Michail Vidiassov
2011-02-28 9:57 ` Hans Hagen
2011-04-29 7:24 ` attachment attaches twice - the fix was minimal Michail Vidiassov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.00.1102210027380.61123@macbook.local \
--to=master@iaas.msu.ru \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).