Hi Colette, this information alone doesn’t make a document a tagged PDF! You might not have the structure information needed within your PDF. Would you have a works / doesn’t work sample which you could upload to a public location as attachments are not allowed on the mailing list?
BR Maruan Am 13.06.2014 um 15:44 schrieb Colette Joubarne <[email protected]>: > Maruan, > > Yes you are right, however why is it that when I look at the properties in > Adobe Reader it indicates that the document is not tagged? > > 3 0 obj > << > /Marked true >>> > > Colette > -----Original Message----- > From: Maruan Sahyoun [mailto:[email protected]] > Sent: June-13-14 9:19 AM > To: [email protected] > Subject: Re: Unable to mark document as tagged > > 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 > <[email protected]>: > >> I have a tagged pdf doc with the following header: >> >> /Type/Catalog/Pages 2 0 R/Lang(en-CA) /StructTreeRoot 10 0 >> R/MarkInfo<</Marked true >> >> 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. >> >> newDoc = new PDDocument(); >> >> newDoc.setDocumentInformation(PTConstants.pdfDoc.getDocumentInformation()); >> >> PDMarkInfo markinfo = new PDMarkInfo(); >> markinfo.setMarked(true); >> newDoc.getDocumentCatalog().setMarkInfo(markinfo); >> >> and when I check that it was set, it returns true: >> >> PDMarkInfo markInfo = >> PTConstants.pdfDoc.getDocumentCatalog().getMarkInfo(); >> if ((markInfo != null) && (markInfo.isMarked())) >> System.out.println("true"); >> >> But, while the resulting document displays correctly, the header indicates >> that it is not tagged: >> >> /Type /Catalog >> /Version /1.4 >> /Pages 2 0 R >> /MarkInfo 3 0 R >> >> Any idea what is going on? >> >> Colette >

