From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67823 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Widget and mandatory Rect field? Date: Mon, 18 Apr 2011 10:35:59 +0200 Message-ID: <4DABF7EF.1010200@wxs.nl> References: <7B4626C28B06A7418E938BF73D6DEE18F9F571EABB@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: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303115803 14424 80.91.229.12 (18 Apr 2011 08:36:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2011 08:36:43 +0000 (UTC) Cc: "Reviczky, Adam" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 18 10:36:37 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 1QBjwi-0004RW-S6 for gctc-ntg-context-518@m.gmane.org; Mon, 18 Apr 2011 10:36:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21633CABFC; Mon, 18 Apr 2011 10:36:36 +0200 (CEST) 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 ZBEtPjFMsq69; Mon, 18 Apr 2011 10:36:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DC2ACABF1; Mon, 18 Apr 2011 10:36:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A1709CABF1 for ; Mon, 18 Apr 2011 10:36:28 +0200 (CEST) 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 YJk6cLMXL7Si for ; Mon, 18 Apr 2011 10:36:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 6B2C2CABEC for ; Mon, 18 Apr 2011 10:36:11 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3I8a5Uo029734 for ; Mon, 18 Apr 2011 10:36:10 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.2a) with ESMTP id 14398-1713362 for multiple; Mon, 18 Apr 2011 10:36:01 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 ThunderBrowse/3.3.5 In-Reply-To: <7B4626C28B06A7418E938BF73D6DEE18F9F571EABB@KCL-MAIL05.kclad.ds.kcl.ac.uk> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEwUA503 - c59b666868a1 - 20110418 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:67823 Archived-At: On 18-4-2011 7:31, Reviczky, Adam wrote: > Hi > > I have a PDF with widgets and everything's fine with it, and I'm testing it by opening it with Adobe Reader. > > Now I had a look again with other viewers and when I open it with evince (poppler based), then it gives me some strange errors like this: > "Error: Annotation rectangle is wrong type" > Though it opens it fine and no problems at all. there can also be a puzzling FormFieldButton::setState called on a readOnly field > I googled a bit and found a bug report on this: > https://bugs.freedesktop.org/show_bug.cgi?id=29954 > > There it is said that its ConTeXt's fault, as "It has a Widget annotation without the mandatory Rect field". > Is it really so? I couldn't find any threads on this on the list. \nopdfcompression \setupinteraction[state=start] \definefieldbody[email][type=line] \starttext \startTEXpage \fieldbody[email] \par \fieldbody[email] \stopTEXpage \stoptext gives 17 0 obj << /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 /Rect [0 14.4275 59.7758 26.3827] >> endobj 18 0 obj << /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 /Rect [0 0 59.7758 11.9552] >> endobj which look like Annot's with Rect's to me. There is a parent field 16 0 obj << /Q 0 /Subtype /Widget /T /F 4 /Kids 15 0 R /V /DV /Ff 0 /MaxLen 1024 /FT /Tx /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) >> endobj but it's not an annot (just a container for shared data). (Actually children can have different rectangles so it would not make sense to share one). > Can someone confirm this, can this be even fixed? Are you saying that Evince does forms (and Javascript as it's associated) or is it checking something that is not interpreted anyway? Officially a viewer should ignore annots that it cannot handle. Anyhow, in context we've always had such widgets implemented using a parent / child model and it's the child that matters for rendering (and it definitely has a Rect as it's an Annot) while the parent is just a dictionary and not an annot (one can argue that the Subtype key is not needed there but - at least in the past - it had to be there.) BTW, I'm currently playing with the luatex epdf interface (under construction and being cleaned up for 0.70) and I noticed the same message. Interesting is that there are such widget tests in popler but at the same time more important tests (arrays getting out of bounds leading to crashes) are not there. But Hartmut is working on getting that all fixed in the luatex variant (interface) eventually. The mentioned message probably have to be intercepted as well and be fed into the regular message system. So, unless I'm sure what (and if something) is wrong I'll do nothing. (Acrobat preflights the document all right and some widgets types are too instable to mess with too much anyway.) Hans ----------------------------------------------------------------- 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 ___________________________________________________________________________________