-
Deprecated ClassesClassDescriptionuse the new security API instead.use the new security layer insteadMade deprecated by the new security layer of PDFBox. Use SecurityHandlers instead.Made deprecated by the new security layer of PDFBox. Use SecurityHandlers instead.Use
PDSignatureField
instead (see PDFBOX-1513).will be removed in 2.0.0
-
Deprecated ExceptionsExceptionsDescriptionjava.lang.Exception itself has wrapper capabilities since Java 1.4
-
Deprecated FieldsFieldDescriptionUse the
COSInteger.ONE
constant insteadUse theCOSInteger.ZERO
constant insteaduse theCOSName.EXT_G_STATE
constant insteaduse theCOSName.PROC_SET
constant insteaduse theCOSName.XOBJECT
constant insteadusePDViewerPreferences.BOUNDARY
insteadusePDViewerPreferences.BOUNDARY
insteadusePDViewerPreferences.BOUNDARY
insteadusePDViewerPreferences.BOUNDARY
insteadusePDViewerPreferences.BOUNDARY
insteadusePDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadusePDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadusePDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadusePDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE
insteadusePDViewerPreferences.READING_DIRECTION
insteadusePDViewerPreferences.READING_DIRECTION
instead
-
Deprecated MethodsMethodDescriptionuse
COSDictionary.getDictionaryObject(COSName, COSName)
using COSName constants insteadUse theCOSDictionary.entrySet()
method instead.This method should no longer be used and will be removed in 3.0 because it could also merge attributes that should not be merged (filter and length) in a COSStream.useCOSDocument.getObjectByType(COSName)
insteaddirect access to the scratch file will be removedthe direct access to the scratch file will be removed.will be removedNot needed anymore. UseBaseParser.parseCOSString()
instead. PDFBOX-1437usePageDrawer.setClippingWindingRule(int)
insteadusePageDrawer.shFill(COSName)
instead.usePDComplexFileSpecification.getFileUnicode()
insteadwill return an InputStream in the future.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.due to some side effects font caching is no longer supported, usePDFontFactory.createFont(COSDictionary)
insteadUsePDStream.getDecodeParms()
insteadseeFlateFilter
usePDURIDictionary.getBase()
insteadusePDURIDictionary.setBase(String)
insteadThis method has inconsistent behavior (see returns), usePDPageDestination.retrieveDestPageNumber()
instead.use getSignature() insteaduse setSignature(PDSignature) insteadDo not rely on this method anymore. It is the responsability of COSWriter to hold this state.Do not rely on this method anymore.Use the getNumberOfPages method instead!Use thePDPageable
adapter classusePDDocument.getLastSignatureDictionary()
instead.Do not rely on this method anymore.usegetCurrentAccessPermission
insteadDo not rely on this method anymore. It is the responsibility of COSWriter to hold this stateUse thePDPageable
adapter classdue to some side effects font caching is no longer supported, usePDResources.getFonts()
insteadusePDResources.getXObjects()
instead, as the images map isn't synchronized with the XObjects map.useBitFlagHelper.getFlag(COSDictionary, COSName, int)
using COSName constants insteaduseBitFlagHelper.setFlag(COSDictionary, COSName, int, boolean)
using COSName constants insteadThis method throws an IOException for failure. Replace calls to it withDateConverter.toCalendar(String, String[])
usingnull
for the second parameter and test for failure with (value == null || value.get(Calendar.YEAR) == INVALID_YEAR)This method throws an IOException for failure. Replace calls to it withDateConverter.toCalendar(String, String[])
and test for failure with (value == null || value.get(Calendar.YEAR) == INVALID_YEAR)useImageIOUtil.writeImage(BufferedImage image, String filename, int dpi)
, which uses the full filename instead of just the prefix.usePDFTextStripper.getPageStart()
andPDFTextStripper.getPageEnd()
insteadisn't used anymore
-
Deprecated ConstructorsConstructorDescriptionuse the static
COSInteger.get(long)
method insteaduse the staticCOSInteger.get(long)
method insteaduse the staticCOSInteger.get(long)
method insteadNot needed anymore. UseCOSString()
instead. PDFBOX-1437use theCOSArrayList(Object, COSBase, COSDictionary, COSName)
method instead