Hi,

> The markup from Digital Pen is added as a pencil mark layer to the PDF 
> document.  When I open up the document, 
> and right click on the pencil marks, and select 'Properties', I see a 
> property called 'Locked' and it is checked.  If I
> uncheck this 'Locked' check box, then the OCR engine is able to process the 
> PDF document, otherwise these locked
>  layers are removed from the document which is not acceptable. 

> Is there a way using Java, to unlock these Pencil Marks inside the PDF 
> document? 

If you could provide a sample of such a pdf it would be helpful ☺

I think what you’re seeing is ink added to the pdf as annotations; the “locked” 
Property is stored in /F Key in the annotation dictionary; value is a bit mask 
where bit position  8 (i.e. 128) represents the “locked” property.

It’s fairly easy to change this using itext; open pdf using pdfreader, iterate 
over pages, iterate over annotations on each page, get the /F key, unset bit 8 
in the value, replace value of /F key
Use pdfstamper to save the modified pdf.

Sorry, don’t have a java sample as I’m using itext#

Bye, Martin

No disclaimer.icomedias 
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to