-
Deprecated Classes
-
Deprecated FieldsFieldDescriptionuse
NameRecord.LANGUAGE_MACINTOSH_ENGLISH
instead.useNameRecord.LANGUAGE_UNICODE
instead.useNameRecord.LANGUAGE_WINDOWS_EN_US
instead.Use theCOSInteger.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 MethodsMethodDescriptionto be removed in the next major releaseto be removed in the next major releaseto be removed in the next major releaseto be removed in the next major releasethe mapping may be ambiguous, see
CmapSubtable.getCharCodes(int)
. The first mapped value is returned by default.useGlyphTable.getGlyph(int)
instead. This will be removed in 3.0. If you need this method, please create an issue in JIRA.UseTrueTypeFont.getUnicodeCmapLookup()
insteadUseTrueTypeFont.getUnicodeCmapLookup(boolean)
insteadorg.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.useImageIOUtil.writeImage(BufferedImage image, String filename, int dpi)
, which uses the full filename instead of just the prefix.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 ConstructorsConstructorDescriptionto be removed in the next major release.Use
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.
PDEncryption
instead