# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
Class and Description
org.apache.pdfbox.util.SmallMap will be removed in 4.0.0

Deprecated Methods
Method and Description
org.apache.pdfbox.pdmodel.PDPageContentStream.appendRawCommands(byte[]) Usage of this method is discouraged.
org.apache.pdfbox.pdmodel.PDPageContentStream.appendRawCommands(double) Usage of this method is discouraged.
org.apache.pdfbox.pdmodel.PDPageContentStream.appendRawCommands(float) Usage of this method is discouraged.
org.apache.pdfbox.pdmodel.PDPageContentStream.appendRawCommands(int) Usage of this method is discouraged.
org.apache.pdfbox.pdmodel.PDPageContentStream.appendRawCommands(String) Usage of this method is discouraged.
org.apache.pdfbox.cos.COSName.clearResources() will be removed in 4.0.0
org.apache.pdfbox.pdmodel.graphics.color.PDDeviceNAttributes.getColorants() user `PDDeviceNAttributes.getColorants(PDResources)`
org.apache.pdfbox.cos.COSObject.getGenerationNumber() will be removed in 4.0.0
org.apache.pdfbox.pdmodel.font.PDFontLike.getHeight(int) Use `getBoundingBox()`.`getHeight()` instead.
org.apache.pdfbox.cos.COSObject.getObjectNumber() will be removed in 4.0.0
org.apache.pdfbox.pdfparser.BaseParser.isClosing(int) This unused method will be removed in 4.0.
org.apache.pdfbox.pdfparser.PDFParser.load(File) use `loadPDF(File)` instead
org.apache.pdfbox.pdfparser.PDFParser.load(File, String) use `loadPDF(File, String)` instead
org.apache.pdfbox.pdfparser.BaseParser.readString(int) this unused method will be removed in 4.0.
org.apache.pdfbox.pdmodel.graphics.color.PDIndexed.setBaseColorSpace(PDColorSpace) This will be removed in 4.0. If you need it, please contact us.
org.apache.pdfbox.cos.COSString.setForceHexForm(boolean) to be removed in a future release.
org.apache.pdfbox.pdmodel.graphics.color.PDIndexed.setHighValue(int) This will be removed in 4.0. If you need it, please contact us.
org.apache.pdfbox.cos.COSString.setValue(byte[]) to be removed in a future release.

Deprecated Constructors
Constructor and Description
org.apache.pdfbox.pdmodel.fdf.FDFDocument(COSDocument) Use `FDFDocument(COSDocument, RandomAccessRead)`
org.apache.pdfbox.pdmodel.graphics.color.PDDeviceN(COSArray) use `PDDeviceN(COSArray, PDResources)`
org.apache.pdfbox.pdmodel.graphics.color.PDIndexed() This will be removed in 4.0. If you need it, please contact us.
org.apache.pdfbox.pdmodel.graphics.color.PDSeparation(COSArray) user `PDSeparation(COSArray, PDResources)`