1T3XT info,

Thanks, but what I'd like to know is why, in the following code, names is
NULL :
 PdfDictionary catalog = reader.getCatalog(); 
 PdfDictionary names =
(PdfDictionary)PdfReader.getPdfObject(catalog.get(PdfName.NAMES));   

Is this the wrong way to access the NAMES catalog/dictionary within the PDF?


1T3XT info wrote:
> 
> r00fus wrote:
>> Mark,
>> I've attached the pdf here:
>> http://n4.nabble.com/file/n2174232/Test.pdf Test.pdf 
>> 
>> It's not embedded videos... and most of the attachments themselves are
>> pdfs
>> (this example includes a doc file as well).
> 
> You're trying to remove document level attachments,
> but the attachments are file attachment annotations.
> 
> Don't know where you found the example, but you took the wrong one.
> (This will all be explained soon in chapter 16 of iText in Action 2E).
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Remove-pdf-attachments-tp2172927p2196402.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to