pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Embedded file locked?
Date Mon, 29 Aug 2016 08:56:08 GMT
Dear Nico,

> Am 29.08.2016 um 10:13 schrieb Nico.Prenzel@vlh.de:
> 
> Hello all, 
> 
> is there a possibility to lock an embedded file like the setLocked(true) flag within
PDAnnotationFileAttachment? I don't want to add a link to the pdf document, but i'd like to
lock the embedded file... 
> 
> 
> PDAnnotationFileAttachment txtLink = new PDAnnotationFileAttachment(); 
> txtLink.setFile(fs); 
> txtLink.setLocked(true);
> 
>  
> 
> PDEmbeddedFile embeddedFile = new PDEmbeddedFile(pdDocument, is, COSName.FLATE_DECODE);

> embeddedFile.setSubtype("message/rfc822"); 
> embeddedFile.setSize(baos.size()); 
> embeddedFile.setCreationDate(archiveDocument.getDataDocument().getFileDateLastModified());

> embeddedFile.setLocked()??? 

As far as I know there is no such setting for the embedded file itself in the PDF specification.

BR
Maruan


> 
>  
> 
> 
> NicoP. 
> 
> ___________________________________________________________________________________
> Lohnsteuerhilfeverein Vereinigte Lohnsteuerhilfe e.V., Fritz-Voigt-Str. 13, 67433 Neustadt
> Tel. 06321/4901-0, Fax 06321/4901-49, E-Mail: vlh@vlh.de, Internet: www.vlh.de
> Vorstand: Vorsitzender Jörg Strötzel (Steuerberater), Jens Kirstein, Norbert Jörgens,
> Registergericht Ludwigshafen VR 40809
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message