From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: issue with annotation flags
Date: Thu, 25 May 2017 18:24:55 +0200 [thread overview]
Message-ID: <5db6a638-34d2-5f6d-bb44-f8c1a91bfd43@gmx.es> (raw)
Dear list,
I have the following code:
\setupinteraction[state=start, color=]
\enabledirectives[references.border]
\starttext
\startTEXpage[offset=1em]
\useURL[url1][http://some-url.com]\from[url1]
\stopTEXpage
\stoptext
The annotation code in the PDF file reads:
<< /Subtype /Link
/A 7 0 R /Rect [12.354 10.896 131.607 25.324]
/C [0.6 0.6 0.6]
/F 4
/Border [0 0 0.5]>>
I need to report a bug in a PDF viewer with printing the annotation (in
this case, it is only border).
The code that generates the annotation is (with some removals):
local plus = { -- /F
Invisible = 2^0, -- 1
Hidden = 2^1, -- 2
Print = 2^2, -- 3
NoZoom = 2^3, -- 4
NoRotate = 2^4, -- 5
NoView = 2^5, -- 6
ReadOnly = 2^6, -- 7
Locked = 2^7, -- 8
ToggleNoView = 2^8, -- 9
LockedContents = 2^9, -- 10,
}
I assume that /F is set to NoZoom in the sample above (bit position 4).
Acrobat displays the annotation flag set to NoZom.
The developers assume that 4 is actually the decimal conversion for a
binary number (100, actually bit position 3). So it prints the
annotation border in the sample above.
It took me a while to understand this (math is all Greek to me).
Is there a way that I can set the annotation flag in the sample above to
Print (/F 3)? (This would be unambiguous, since only a bit can be set
[11 would be an invalid flag value].)
Or am I missing something and Acrobat is misbehaving?
Sorry for such a weird request, but bug reporting has become extremely
complex these days ;-).
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2017-05-25 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 16:24 Pablo Rodriguez [this message]
2017-05-27 16:38 ` Pablo Rodriguez
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=5db6a638-34d2-5f6d-bb44-f8c1a91bfd43@gmx.es \
--to=oinos@gmx.es \
--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).