You don't.  You have to try each one, catch the exception, then try the
next.  iText wasn't written with attempting multiple passwords on the
same PdfReader in mind.  Yes, this means a lot of redundant IO and
computation.  Can't be avoided at this time.  If you'd like to alter
PdfReader's source so that it tries multiple passwords you provide, we'd
appreciate it if you could share your enhancement.
 
--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 


________________________________

        From: Stefano Pentrelli [mailto:[email protected]] 
        Sent: Friday, February 18, 2011 7:35 AM
        To: [email protected]
        Subject: [iText-questions] decrypt pdf's
        
        

        Dear,
        I state that the company I work for bought me the book,
        I need the following, I have to merge several pdf, part of which
is crypted to the metadata that indiscriminately can have a password of
4 in my possession, how can I do a test on the password without having
an exception?

        Ascolta

        Trascrizione fonetica

         

        Dizionario - Visualizza dizionario dettagliato
<http://www.google.it/dictionary?source=translation&hl=it&q=crack%20128%
20bit%20encryption&langpair=en|it> 

        1.interiezione 

        1.hello

        2.hi

        3.bye

        4.bye-bye

        5.hallo

        6.so long

        7.cheerio

        8.hullo

         

        Stefano

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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