Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AF351200C8F for ; Fri, 26 May 2017 06:19:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ADC52160BD5; Fri, 26 May 2017 04:19:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F3D65160BCA for ; Fri, 26 May 2017 06:19:35 +0200 (CEST) Received: (qmail 74863 invoked by uid 500); 26 May 2017 04:19:34 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 74851 invoked by uid 99); 26 May 2017 04:19:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 May 2017 04:19:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BDBCCC02CA for ; Fri, 26 May 2017 04:19:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.022 X-Spam-Level: X-Spam-Status: No, score=-0.022 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=oberontitania.onmicrosoft.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zzzj2svnz-Nw for ; Fri, 26 May 2017 04:19:31 +0000 (UTC) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0094.outbound.protection.outlook.com [104.47.40.94]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9084F5F567 for ; Fri, 26 May 2017 04:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oberontitania.onmicrosoft.com; s=selector1-oberontech-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aOo31Oq+ecNWMeiRWRGXz/kdby7SHTSId7GFDadF1mM=; b=IqVoZpT6ki2HAIcXurN7EW0m4wBFehACmi0qhL1PlQXvc8c+tlvx9gLrrzMVcgCozWR8tY2BHySCVeO/jSVYe8wpVlWTPXeO01SLddgsUXuPcmkcf/6WkGDNf++jANgn61wC3Gr8kt2kpJ6jliYChWNmBLBqALssBgwMfPoxiF8= Received: from CY1PR04MB2265.namprd04.prod.outlook.com (10.167.8.153) by CY1PR04MB2268.namprd04.prod.outlook.com (10.167.9.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 26 May 2017 04:19:21 +0000 Received: from CY1PR04MB2265.namprd04.prod.outlook.com ([10.167.8.153]) by CY1PR04MB2265.namprd04.prod.outlook.com ([10.167.8.153]) with mapi id 15.01.1124.009; Fri, 26 May 2017 04:19:22 +0000 From: Gary Grosso To: "users@pdfbox.apache.org" Subject: PDFormFieldAdditionalActions.setC() not working? Thread-Topic: PDFormFieldAdditionalActions.setC() not working? Thread-Index: AdLV1PqxjMEbADMgTEyosKlyUiOcxA== Date: Fri, 26 May 2017 04:19:21 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pdfbox.apache.org; dkim=none (message not signed) header.d=none;pdfbox.apache.org; dmarc=none action=none header.from=oberontech.com; x-originating-ip: [204.195.134.232] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR04MB2268;7:LTghUb2CiShjsFXc9S97VfrvnwZeH0AQzePxXPCHJgg+OZOPVtZdw3HiQJ2DHPqOIVoGnSXFJHkRqRyGSBelD0YOl7X1520YP5HHI0xQqVNya5M0UI+++LrwHVdaUkr1+pOUJR/Q2PCBuSl3A/WMniC9ULofxcZiHQTmAKHddQ8ywl2SnbEU6BaDfCGOCJE57aReMMeeFPjem4fn3qfBlupfOFiCsldpZIqLWtR82hINdNqY8nOXs5DvKxEUVI+79uvQtAnINpGsG+V3dGgngq10YhL4L3/NLm2GV0fPzCjzKKPZ5CuVpqJ3mN8e800pzXvOyl7C9g9pAm7locEbbg== x-ms-traffictypediagnostic: CY1PR04MB2268: x-ms-office365-filtering-correlation-id: c6a11e36-a779-469f-8256-08d4a3ee62c1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201702281549075);SRVR:CY1PR04MB2268; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(2016111802025)(20161123555025)(20161123562025)(20161123564025)(6043046)(6072148);SRVR:CY1PR04MB2268;BCL:0;PCL:0;RULEID:;SRVR:CY1PR04MB2268; x-forefront-prvs: 031996B7EF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39410400002)(39400400002)(305945005)(966005)(33656002)(7736002)(74316002)(50986999)(6436002)(25786009)(38730400002)(3660700001)(122556002)(14454004)(3280700002)(2906002)(2501003)(5640700003)(478600001)(110136004)(53376002)(81166006)(6916009)(54356999)(2900100001)(6506006)(77096006)(3846002)(53936002)(8936002)(189998001)(99286003)(86362001)(6306002)(5660300001)(1730700003)(2351001)(9686003)(6116002)(8676002)(7696004)(102836003)(55016002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR04MB2268;H:CY1PR04MB2265.namprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oberontech.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2017 04:19:21.8794 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2c8c61e9-230c-4fac-ac48-c8a149dfe7a5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR04MB2268 archived-at: Fri, 26 May 2017 04:19:36 -0000 In my project, I could not get setC to do anything, so I modified the Creat= eSimpleForm.java code to create 2 fields (just in case that mattered), whic= h resulted in http://aapro.net/PDF/SimpleForm.pdf. Then I commented out a lot of distracting other event handling in FieldTrig= gers.java, and duplicated everything to handle both fields, resulting in ht= tp://aapro.net/PDF/FieldTriggers.java . This, when run gives http://aapro.n= et/PDF/FieldTriggers.pdf, which, in PDFDebugger looks something like this: AcroForm: (3) [3 0 R] DA: /Helv o Tfo g DR: (1) [70 R] Fields: (2) 0: (12) [SOR] /T:Annot /S:Widget 1: (11) [60R] /T:Annot /S:Widget AA: (2) [120 R] C: (3) [19 O R] /T:Action JS: app.alert("On 'recalculate' action") S: Javascript Type: Action D: (3) [13 o R] /T:Action JS: app.alert("On 'mouse down' action") S: Javascript Type: Action Whatever I do, much as in my original project, I never see "On 'recalculate= ' action". I get the expected (if somewhat annoying) behavior for setK, setF, and setV= . Why not setC? Thanks, Gary --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org