Deprecated API

Deprecated Classes
org.pdfbox.encryption.DocumentEncryption
          use the new security API instead. 
org.pdfbox.pdmodel.encryption.PDEncryptionManager
          Made deprecated by the new security layer of PDFBox. Use SecurityHandlers instead. 
org.pdfbox.encryption.PDFEncryption
          use the new security layer instead 
org.pdfbox.pdmodel.encryption.PDStandardEncryption
          Made deprecated by the new security layer of PDFBox. Use SecurityHandlers instead. 
 

Deprecated Methods
org.pdfbox.pdmodel.PDDocument.clearWillEncryptWhenSaving()
          Do not rely on this method anymore. It is the responsability of COSWriter to hold this state. 
org.pdfbox.pdmodel.PDDocument.getOwnerPasswordForEncryption()
          Do not rely on this method anymore. 
org.pdfbox.pdmodel.PDDocument.getPageCount()
          Use the getNumberOfPages method instead! 
org.pdfbox.util.PDFTextStripper.getText(COSDocument)
            
org.pdfbox.pdmodel.PDDocument.getUserPasswordForEncryption()
          Do not rely on this method anymore. 
org.pdfbox.pdmodel.PDDocument.isOwnerPassword(String)
            
org.pdfbox.pdmodel.PDDocument.isUserPassword(String)
            
org.pdfbox.pdmodel.PDDocument.wasDecryptedWithOwnerPassword()
          use getCurrentAccessPermission instead 
org.pdfbox.pdmodel.PDDocument.willEncryptWhenSaving()
          Do not rely on this method anymore. It is the responsibility of COSWriter to hold this state 
org.pdfbox.util.PDFTextStripper.writeText(COSDocument, Writer)