From users-return-11879-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Tue Jul 23 19:37:51 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2A25A1802C7 for ; Tue, 23 Jul 2019 21:37:51 +0200 (CEST) Received: (qmail 38081 invoked by uid 500); 23 Jul 2019 19:37:50 -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 38070 invoked by uid 99); 23 Jul 2019 19:37:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2019 19:37:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 489121812DD for ; Tue, 23 Jul 2019 19:37:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.45 X-Spam-Level: X-Spam-Status: No, score=-1.45 tagged_above=-999 required=6.31 tests=[KAM_COUK=0.85, KAM_SHORT=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7BSH41spXtVm for ; Tue, 23 Jul 2019 19:37:46 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=132.185.161.180; helo=mailout1.telhc.bbc.co.uk; envelope-from=kodjo.afriyie01@bbc.co.uk; receiver= Received: from mailout1.telhc.bbc.co.uk (mailout1.telhc.bbc.co.uk [132.185.161.180]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 7D2F6BC7E3 for ; Tue, 23 Jul 2019 19:37:46 +0000 (UTC) Received: from BGB01XI1003.national.core.bbc.co.uk ([10.184.50.53]) by mailout1.telhc.bbc.co.uk (8.15.2/8.15.2) with ESMTP id x6NJbdJm012260 for ; Tue, 23 Jul 2019 20:37:39 +0100 (BST) Received: from BGB01XUD1008.national.core.bbc.co.uk ([10.161.14.6]) by BGB01XI1003.national.core.bbc.co.uk ([10.184.50.53]) with mapi id 14.03.0408.000; Tue, 23 Jul 2019 20:37:39 +0100 From: Kodjo Afriyie - iSite Eng To: "users@pdfbox.apache.org" Subject: RE: Problems accessing javascript: Thread-Topic: Problems accessing javascript: Thread-Index: AdVBZK07tU8wTeNTRhWMatUO4uVeqAAFCNuAAAUnrzc= Date: Tue, 23 Jul 2019 19:37:38 +0000 Message-ID: <3A47DB0C4FC4F049951786771F2F79755CEDD79B@bgb01xud1008> References: <3A47DB0C4FC4F049951786771F2F79755CEDD723@bgb01xud1008>,<412c4837-a732-8788-eed6-88f477ef7fdb@t-online.de> In-Reply-To: <412c4837-a732-8788-eed6-88f477ef7fdb@t-online.de> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.19.161.213] x-exclaimer-md-config: c91d45b2-6e10-4209-9543-d9970fac71b7 x-tm-as-product-ver: SMEX-12.5.0.1300-8.2.1013-24052.007 x-tm-as-result: No-11.955600-8.000000-10 x-tmase-matchedrid: ii8QZ4kYvFSPvrMjLFD6eNWcXTld/c2GkBfdTMRAXUZnnK6mXN72m9CR 6RK/aUxmqmjTJidMrsfKGCfi0CekjzPAnsAORqSfyeVujmXuYYVMkOX0UoduuYzZ6FNX6KaLcQ2 ah832eunv7KQvOHjFKDC0q6oknKIwuJqllQ6sW7Q/QdUh6LEl0IgUGa5vTNOosKXjy/5u25sQX9 lftdFAMUQXLcStn5An9TS2yQnQYaklVaqTQ2WNXPgbqOEN5FTKfS0Ip2eEHnzUHQeTVDUrIuB8J 9aWc1v/VymkLM+r7VQ7AFczfjr/7GTS0ZAVK8xRPNCKteRNGLs11ACHMPQ9h0prTm/dPF9ySHeD XqHCtHg= x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No x-tmase-result: 10--11.955600-8.000000 x-tmase-version: SMEX-12.5.0.1300-8.2.1013-24052.007 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi Tilman:=0A= =0A= This contains the files re-named with .txt extension and placed in a zip fi= le.=0A= =0A= https://1drv.ms/u/s!AmNEMt7g6KbuhiLACsvRe4bcHogB?e=3DbNRew0=0A= =0A= I tried the following:=0A= COSObject name =3D document.getDocument().getObjectByType(C= OSName.AA);=0A= System.out.println("AA:"+name);=0A= Which printed null..=0A= =0A= Then I tried the following which also printed null:=0A= =0A= Which also printed null:=0A= COSObject pagess =3D document.getDocument().getObjectByType= (COSName.PAGES);=0A= COSBase name =3D pagess.getDictionaryObject(COSName.AA);=0A= System.out.println("AA:"+name);=0A= =0A= Kodjo=0A= ________________________________________=0A= From: Tilman Hausherr [THausherr@t-online.de]=0A= Sent: 23 July 2019 19:05=0A= To: users@pdfbox.apache.org=0A= Subject: Re: Problems accessing javascript:=0A= =0A= Hi,=0A= =0A= If you get the dictionary, you could call=0A= COSDictionary.removeItem(COSName.O), or do the same with the AA element.=0A= =0A= To get the dictionary from an element, usually .getCOSObject() delivers.=0A= =0A= To get a better look at the structure of a PDF, try PDFDebugger.=0A= =0A= Like I said, rename the PDF to .TXT and put that one into a ZIP and=0A= upload that one. This way one could have a look without an antivirus=0A= blocking it.=0A= =0A= Tilman=0A= =0A= Am 23.07.2019 um 16:44 schrieb Kodjo Afriyie - iSite Eng:=0A= >=0A= > I have tried all the possible ways but i can not remove the javascript=0A= > element:=0A= >=0A= >=0A= > *PDF Comment '%PDF-1.5\n'*=0A= > *=0A= > *=0A= > *PDF Comment '%=F6=E4=FC=DF\n'*=0A= > *=0A= > *=0A= > *obj 1 0*=0A= > * Type: /Catalog*=0A= > * Referencing: 2 0 R, 3 0 R, 4 0 R, 5 0 R*=0A= > *=0A= > *=0A= > * <<*=0A= > * /Type /Catalog*=0A= > * /Outlines 2 0 R*=0A= > * /Pages 3 0 R*=0A= > * /Names 4 0 R*=0A= > * /AA 5 0 R*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 6 0*=0A= > * Type:*=0A= > * Referencing:*=0A= > *=0A= > *=0A= > * <<*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 2 0*=0A= > * Type: /Outlines*=0A= > * Referencing:*=0A= > *=0A= > *=0A= > * <<*=0A= > * /Type /Outlines*=0A= > * /Count 0*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 3 0*=0A= > * Type: /Pages*=0A= > * Referencing: 7 0 R*=0A= > *=0A= > *=0A= > * <<*=0A= > * /Type /Pages*=0A= > * /Kids [7 0 R]*=0A= > * /Count 1*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 4 0*=0A= > * Type:*=0A= > * Referencing:*=0A= > *=0A= > *=0A= > * <<*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 5 0*=0A= > * Type:*=0A= > * Referencing:*=0A= > *=0A= > *=0A= > * <<*=0A= > * >>*=0A= > *=0A= > *=0A= > *=0A= > *=0A= > *obj 7 0*=0A= > * Type: /Page*=0A= > * Referencing: 3 0 R, 8 0 R*=0A= > *=0A= > *=0A= > * <<*=0A= > * /Type /Page*=0A= > * /Parent 3 0 R*=0A= > * /MediaBox [184 105 295 275]*=0A= > * /AA*=0A= > * <<*=0A= > * /O*=0A= > * <<*=0A= > * /JS 8 0 R*=0A= > * /S /JavaScript*=0A= > * >>*=0A= > * >>*=0A= > * >>*=0A= =0A= =0A= --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org