Deprecated API


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

Deprecated Fields
org.apache.pdfbox.Overlay.EXT_G_STATE
          use the COSName.EXT_G_STATE constant instead 
org.apache.pdfbox.cos.COSNumber.ONE
          Use the COSInteger.ONE constant instead 
org.apache.pdfbox.Overlay.PROC_SET
          use the COSName.PROC_SET constant instead 
org.apache.pdfbox.Overlay.XOBJECT
          use the COSName.XOBJECT constant instead 
org.apache.pdfbox.cos.COSNumber.ZERO
          Use the COSInteger.ZERO constant instead 
 

Deprecated Methods
org.apache.pdfbox.pdmodel.PDDocument.clearWillEncryptWhenSaving()
          Do not rely on this method anymore. It is the responsability of COSWriter to hold this state. 
org.apache.pdfbox.pdfviewer.PageDrawer.colorChanged(boolean)
           
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(long, long, InputStream, OutputStream)
          While this works fine for RC4 encryption, it will never decrypt AES data You should use encryptData(objectNumber, genNumber, data, output, decrypt) which can do everything. This function is just here for compatibility reasons and will be removed in the future. 
org.apache.pdfbox.pdmodel.interactive.action.type.PDActionURI.getBase()
          use PDURIDictionary.getBase() instead 
org.apache.pdfbox.cos.COSDictionary.getDictionaryObject(String, String)
          use COSDictionary.getDictionaryObject(COSName, COSName) using COSName constants instead 
org.apache.pdfbox.util.BitFlagHelper.getFlag(COSDictionary, String, int)
          use #getFlag(COSDictionary, COSName, boolean) using COSName constants instead 
org.apache.pdfbox.pdmodel.PDDocument.getOwnerPasswordForEncryption()
          Do not rely on this method anymore. 
org.apache.pdfbox.pdmodel.PDDocument.getPageCount()
          Use the getNumberOfPages method instead! 
org.apache.pdfbox.pdmodel.PDDocument.getPageFormat(int)
          Use the PDPageable adapter class 
org.apache.pdfbox.util.PDFTextStripper.getText(COSDocument)
            
org.apache.pdfbox.pdmodel.PDDocument.getUserPasswordForEncryption()
          Do not rely on this method anymore. 
org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField.getValue()
          use getSignature() instead 
org.apache.pdfbox.util.TextPosition.getWordSpacing()
           
org.apache.pdfbox.pdmodel.PDDocument.isOwnerPassword(String)
            
org.apache.pdfbox.pdmodel.PDDocument.isUserPassword(String)
            
org.apache.pdfbox.cos.COSDictionary.keyList()
          Use the COSDictionary.entrySet() method instead. 
org.apache.pdfbox.pdmodel.PDPage.print(Graphics, PageFormat, int)
          Use the PDPageable adapter class 
org.apache.pdfbox.pdmodel.interactive.action.type.PDActionURI.setBase(String)
          use PDURIDictionary.setBase(String) instead 
org.apache.pdfbox.util.BitFlagHelper.setFlag(COSDictionary, String, int, boolean)
          use BitFlagHelper.setFlag(COSDictionary, COSName, int, boolean) using COSName constants instead 
org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField.setValue(String)
          use setSignature(PDSignature) instead 
org.apache.pdfbox.pdmodel.PDDocument.wasDecryptedWithOwnerPassword()
          use getCurrentAccessPermission instead 
org.apache.pdfbox.pdmodel.PDDocument.willEncryptWhenSaving()
          Do not rely on this method anymore. It is the responsibility of COSWriter to hold this state 
org.apache.pdfbox.util.PDFTextStripper.writeText(COSDocument, Writer)
            
 

Deprecated Constructors
org.apache.pdfbox.pdmodel.common.COSArrayList(Object, COSBase, COSDictionary, String)
          use the COSArrayList.COSArrayList(Object, COSBase, COSDictionary, COSName) method instead 
org.apache.pdfbox.cos.COSInteger(int)
          use the static COSInteger.get(long) method instead 
org.apache.pdfbox.cos.COSInteger(long)
          use the static COSInteger.get(long) method instead 
org.apache.pdfbox.cos.COSInteger(String)
          use the static COSInteger.get(long) method instead 
org.apache.pdfbox.util.TextPosition(int, float, float, Matrix, Matrix, float, float, float, String, PDFont, float, int)
          Use TextPosition.TextPosition(int, float, float, Matrix, float, float, float, float, float, String, PDFont, float, int) instead. 
 



Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.