-
Deprecated Classes
-
Deprecated FieldsFieldDescriptionUse the
COSInteger.ONE
constant insteadUse theCOSInteger.ZERO
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 MethodsMethodDescriptionorg.apache.pdfbox.contentstream.PDFStreamEngine.registerOperatorProcessor
(String, OperatorProcessor) UsePDFStreamEngine.addOperator(OperatorProcessor)
insteadWill be removed in 3.0. A value may have to keys, the regular one and sometimes an additional abbreviation. More than 2 values doesn't make sense.Will be removed in 3.0. A value may have to keys, the regular one and sometimes an additional abbreviation. More than 2 values doesn't make sense.Will be removed in 3.0. A value may have to keys, the regular one and sometimes an additional abbreviation. More than 2 values doesn't make sense.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.usePDDocument.getDocumentCatalog()
instead.will be removed in a future releasewill be removed in a future releasewill be removed in a future releasewill be removed in the next major releaseUseCOSStream.createRawOutputStream()
instead.UseCOSStream.createOutputStream()
instead.UseCOSStream.createRawInputStream()
instead.UseCOSStream.toTextString()
instead.UseCOSStream.createInputStream()
instead.UseCOSStream.createOutputStream(COSBase)
instead.useCOSArrayList.getCOSArray()
instead.This method is obsolescent and should not be used by conforming writers.This method is obsolescent and should not be used by conforming writers.This method is obsolescent and should not be used by conforming writers.This method is obsolescent and should not be used by conforming writers.This method is obsolescent and should not be used by conforming writers.This method is obsolescent and should not be used by conforming writers.Replaced byPDFunction.eval(float[] input)
This method is inefficient. To copying an existing InputStream, usePDStream(PDDocument, InputStream, COSName)
instead, with COSName.FLATE_DECODE as the final argument. Otherwise, to write new compressed data, usePDStream.createOutputStream(COSName)
, with COSName.FLATE_DECODE as the argument.usePDStructureTreeRoot.getK()
only. /K can be a dictionary or an array, and the next level can also be a dictionary. See file 054080.pdf in PDFBOX-4417 and read "Entries in the structure tree root" in the PDF specification.UsegetBoundingBox()
.getHeight()
instead.UsePDType0Font.load(PDDocument, File)
instead.UsePDType0Font.load(PDDocument, InputStream)
instead.it's probably not safe to use this, this method will be removed in 3.0.UseCCITTFactory.createFromFile(PDDocument, File)
instead.UseCCITTFactory.createFromFile(PDDocument, File, int)
instead.inline images don't have a color key mask.UsePDXObject.getStream()
instead.This will be removed in 2.1 because the method name is misleading and confusing, and the work done rather belongs into the calling class:COSDocument visualSignature = structure.getVisualSignature(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); COSWriter writer = new COSWriter(baos); writer.write(visualSignature); writer.close(); structure.getTemplate().close(); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
This method has inconsistent behavior (see returns), usePDPageDestination.retrievePageNumber()
instead.usePDPushButton
insteadusePDRadioButton
insteadUsePDSignatureField.setValue(PDSignature)
instead.Fields may have more than one widget, callPDTerminalField.getWidgets()
instead.The method is misleading, because only one signature may be added in a document. The method will be removed in the future.org.apache.pdfbox.pdmodel.PDPageContentStream.addBezier312(float, float, float, float, float, float) Usemoveto(xStart,yStart)
followed bylineTo(xEnd,yEnd)
.UsePDPageContentStream.moveTo(float, float)
andPDPageContentStream.lineTo(float, float)
methods instead.Usage of this method is discouraged.Usage of this method is discouraged.Usage of this method is discouraged.Usage of this method is discouraged.Usage of this method is discouraged.Usage of this method is discouraged.UsePDPageContentStream.clip()
orPDPageContentStream.clipEvenOdd()
instead.UsePDPageContentStream.closePath()
instead.UsePDPageContentStream.moveTo(float, float)
andPDPageContentStream.lineTo(float, float)
methods instead.UsePDPageContentStream.showText(java.lang.String)
instead.UsePDPageContentStream.endMarkedContent()
instead.UsePDPageContentStream.fill()
orPDPageContentStream.fillEvenOdd()
instead.UsePDPageContentStream.moveTo(float, float)
andPDPageContentStream.lineTo(float, float)
methods instead.UsePDPageContentStream.addRect(float, float, float, float)
followed byPDPageContentStream.fill()
instead.UsePDPageContentStream.newLineAtOffset(float, float)
instead.UsePDPageContentStream.setNonStrokingColor(PDColor)
instead.UsePDPageContentStream.setNonStrokingColor(PDColor)
instead.UsePDPageContentStream.setStrokingColor(PDColor)
instead.UsesetStrokingColor(g/255f)
instead.UsesetStrokingColor(c/255f, m/255f, y/255f, k/255f)
instead.UsePDPageContentStream.setTextMatrix(Matrix)
instead.UsePDPageContentStream.setTextMatrix(Matrix)
instead.UsePDPageContentStream.setTextMatrix(Matrix)
instead.UsePDPageContentStream.setTextMatrix(Matrix)
instead.UsePDPageContentStream.setTextMatrix(Matrix)
instead.This method is due to be removed, please contact us if you make use of it.This method is due to be removed, please contact us if you make use of it.UseMatrix.getTranslateInstance(float, float)
instead.UseMatrix.getValues()
instead.UseMatrix.getTranslateX()
insteadUseMatrix.getTranslateY()
insteadThis method will be removed.Use theMatrix(AffineTransform)
constructor instead.
-
Deprecated ConstructorsConstructorDescriptionUse
PDFStreamParser(PDContentStream)
instead.UsePDFStreamParser(PDContentStream)
instead.UsePDEncryption
insteadUsePDEncryption(COSDictionary)
insteadThis will be private in 3.0. Please usePDICCBased.create(org.apache.pdfbox.cos.COSArray, org.apache.pdfbox.pdmodel.PDResources)
instead, which supports caching.useMatrix.createMatrix(COSBase)
instead
PDEncryption
instead