Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 084AA1161E for ; Fri, 13 Jun 2014 13:19:23 +0000 (UTC) Received: (qmail 12741 invoked by uid 500); 13 Jun 2014 13:19:22 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 12721 invoked by uid 500); 13 Jun 2014 13:19:22 -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 12711 invoked by uid 99); 13 Jun 2014 13:19:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 13:19:22 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.133.104.168] (HELO www168.your-server.de) (213.133.104.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 13:19:18 +0000 Received: from [88.198.220.132] (helo=sslproxy03.your-server.de) by www168.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA256:256) (Exim 4.80.1) (envelope-from ) id 1WvRNe-0004c0-5E for users@pdfbox.apache.org; Fri, 13 Jun 2014 15:18:54 +0200 Received: from [79.242.101.93] (helo=mbp001.fritz.box) by sslproxy03.your-server.de with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WvRNa-0000hm-M4 for users@pdfbox.apache.org; Fri, 13 Jun 2014 15:18:50 +0200 From: Maruan Sahyoun Content-Type: multipart/alternative; boundary="Apple-Mail=_AAE2D4BC-7EDD-4504-8E87-B0145AAA3248" Message-Id: <3A2A5D34-84A1-4057-A75E-436D451163DD@fileaffairs.de> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Unable to mark document as tagged Date: Fri, 13 Jun 2014 15:18:46 +0200 References: To: users@pdfbox.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1878.2) X-Authenticated-Sender: sahyoun@fileaffairs.de X-Virus-Scanned: Clear (ClamAV 0.98.1/19094/Fri Jun 13 09:15:39 2014) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_AAE2D4BC-7EDD-4504-8E87-B0145AAA3248 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Colette, /MarkInfo 3 0 R indicates that the information you are looking for is = referenced and should be available in 3 0 obj. Could you verify that? With kind regards Maruan Am 13.06.2014 um 14:21 schrieb Colette Joubarne = : > I have a tagged pdf doc with the following header: >=20 > /Type/Catalog/Pages 2 0 R/Lang(en-CA) /StructTreeRoot 10 0 = R/MarkInfo<=20 > I read in the contents, replace some of the text and create a new doc. = I copy the document information from the original doc and set marked to = true. >=20 > newDoc =3D new PDDocument(); > = newDoc.setDocumentInformation(PTConstants.pdfDoc.getDocumentInformation())= ; >=20 > PDMarkInfo markinfo =3D new PDMarkInfo(); > markinfo.setMarked(true); > newDoc.getDocumentCatalog().setMarkInfo(markinfo); >=20 > and when I check that it was set, it returns true: >=20 > PDMarkInfo markInfo =3D = PTConstants.pdfDoc.getDocumentCatalog().getMarkInfo(); > if ((markInfo !=3D null) && (markInfo.isMarked())) = System.out.println("true"); >=20 > But, while the resulting document displays correctly, the header = indicates that it is not tagged: >=20 > /Type /Catalog > /Version /1.4 > /Pages 2 0 R > /MarkInfo 3 0 R >=20 > Any idea what is going on? >=20 > Colette --Apple-Mail=_AAE2D4BC-7EDD-4504-8E87-B0145AAA3248--