It should work. Please provide your PDF.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Jian hua huang
> Sent: Tuesday, June 17, 2008 5:31 PM
> To: [email protected]
> Subject: [iText-questions] PdfReader.getMetadat()
> 
> Hi,
> 
>  
> 
> I used PdfReader.getMedata() to get XMP out a PDF file and it 
> works fine when a PDF file is not encrypted or has no 
> restrictions (such as No Print).
> 
>  
> 
> When a PDF file is encrypted or has restrictions on it, I get 
> exception if I don't have owner password. 
> 
>  
> 
> According to PDF Spec 1.4, if you encrypt a PDF document, you 
> can choose to no encrypt its metadata streams. In other 
> words, the PDF content is encrypted but metadata streams are 
> left as plain text. I still get the exception from 
> PdfReader.getMetadata() method if my PDF file is only 
> encrypted on its content. 
> 
>  
> 
> Do you know this is a defect or is it something that you can 
> enhance quickly?
> 
>  
> 
> Thank you for your help
> 
>  
> 
> John Huang


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to