## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
com.lowagie.text.rtf.RtfField Please move to the RtfWriter2 and associated classes.

Deprecated Classes
com.lowagie.text.rtf.AbstractRtfField Please move to the RtfWriter2 and associated classes.
com.lowagie.text.rtf.GenericRtfField Please move to the RtfWriter2 and associated classes.
com.lowagie.text.rtf.RtfCell Please move to the RtfWriter2 and associated classes.
com.lowagie.text.rtf.RtfFont Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.style.RtfFont replaces the functionality of this class.
com.lowagie.text.rtf.RtfHeaderFooter Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.headerfooter.RtfHeaderFooter replaces the functionality of this class.
com.lowagie.text.rtf.RtfHeaderFooters Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.headerfooter.RtfHeaderFooterGroup replaces the functionality of this class.
com.lowagie.text.rtf.RtfPageNumber Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfPageNumber replaces the functionality of this class.
com.lowagie.text.rtf.RtfRow Please move to the RtfWriter2 and associated classes.
com.lowagie.text.rtf.RtfTable Please move to the RtfWriter2 and associated classes.
com.lowagie.text.rtf.RtfTableCell Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.table.RtfCell replaces the functionality of this class.
com.lowagie.text.rtf.RtfTOC Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfTableOfContents replaces the functionality of this class.
com.lowagie.text.rtf.RtfTOCEntry Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfTOCEntry replaces the functionality of this class.
com.lowagie.text.rtf.RtfWriter The RtfWriter is deprecated and will be removed from the iText library end of 2007

Deprecated Methods
com.lowagie.text.Image.absoluteX() Use `Image.getAbsoluteX()` instead
com.lowagie.text.Image.absoluteY() Use `Image.getAbsoluteY()` instead
com.lowagie.text.Table.absWidth() use getWidth
com.lowagie.text.pdf.PdfContentByte.addOutline(PdfOutline) not needed anymore. The outlines are extracted from the root outline
com.lowagie.text.Section.addSection(Properties) Use ElementFactory.getSection(this, attributes)
com.lowagie.text.Chunk.addToArray(Object[][], Object[]) Use `Utilities.addToArray(Object[][],Object[])` instead
com.lowagie.text.Paragraph.alignment() Use `Paragraph.getAlignment()` instead
com.lowagie.text.Table.alignment() Use `Table.getAlignment()` instead
com.lowagie.text.Image.alignment() Use `Image.getAlignment()` instead
com.lowagie.text.Image.alt() Use `Image.getAlt()` instead
com.lowagie.text.Image.annotation() Use `Image.getAnnotation()` instead
com.lowagie.text.Rectangle.backgroundColor() Use `Rectangle.getBackgroundColor()` instead
com.lowagie.text.Rectangle.border() Use `Rectangle.getBorder()` instead
com.lowagie.text.Rectangle.borderColor() Use `Rectangle.getBorderColor()` instead
com.lowagie.text.Rectangle.borderWidth() Use `Rectangle.getBorderWidth()` instead
com.lowagie.text.Cell.bottom() Use `Cell.getBottom()` instead
com.lowagie.text.Rectangle.bottom() Use `Rectangle.getBottom()` instead
com.lowagie.text.pdf.PdfCell.bottom() Use `PdfCell.getBottom()` instead
com.lowagie.text.Rectangle.bottom(float) Use `Rectangle.getBottom(float)` instead
com.lowagie.text.pdf.PdfDocument.bottom(Table)
com.lowagie.text.Image.bpc() Use `Image.getBpc()` instead
com.lowagie.text.pdf.PdfDocument.breakTableIfDoesntFit(PdfTable)
com.lowagie.text.pdf.PdfWriter.breakTableIfDoesntFit(PdfTable) this method will probably disappear in one of the next releases
com.lowagie.text.Table.cellpadding() Use `Table.getPadding()` instead
com.lowagie.text.Table.cellspacing() Use `Table.getSpacing()` instead
com.lowagie.text.Cell.cellWidth() Use `Cell.getWidthAsString()` instead
com.lowagie.text.Font.color() Use `Font.getColor()` instead
com.lowagie.text.Image.colorspace() Use `Image.getColorspace()` instead
com.lowagie.text.Cell.colspan() Use `Cell.getColspan()` instead
com.lowagie.text.Table.columns() Use `Table.getColumns()` instead
com.lowagie.text.Meta.content() Use `Meta.getContent()` instead
com.lowagie.text.Chunk.content() Use `Chunk.getContent()` instead
com.lowagie.text.Phrase.content() Use `Phrase.getContent()` instead
com.lowagie.text.rtf.AbstractRtfField.content() Use `AbstractRtfField.getContent()` instead
com.lowagie.text.Section.depth() Use `Section.getDepth()` instead
com.lowagie.text.Font.family() Use `Font.getFamily()` instead
com.lowagie.text.rtf.document.RtfDocument.filterSpecialChar(String, boolean, boolean) replaced by `RtfDocument.filterSpecialChar(OutputStream, String, boolean, boolean)`
com.lowagie.text.List.first() use getFirst();
com.lowagie.text.pdf.PdfWriter.fitsPage(PdfPTable) this method will probably disappear in one of the next releases
com.lowagie.text.pdf.PdfWriter.fitsPage(PdfPTable, float) this method will probably disappear in one of the next releases
com.lowagie.text.pdf.PdfWriter.fitsPage(Table) this method will probably disappear in one of the next releases
com.lowagie.text.pdf.PdfWriter.fitsPage(Table, float) this method will probably disappear in one of the next releases
com.lowagie.text.Chunk.font() Use `Chunk.getFont()` instead
com.lowagie.text.Phrase.font() Use `Phrase.getFont()` instead
com.lowagie.text.GreekList.getGreekValue(int, boolean) use GreekNumberFactory.getString(int, boolean)
com.lowagie.text.Image.getInstance(Properties) use ElementFactory.getImage(attributes)
com.lowagie.text.Chunk.getKeySet(Hashtable) Use `Utilities.getKeySet(Hashtable)` instead
com.lowagie.text.pdf.PdfWriter.getPdfTable(Table) this method will probably disappear in one of the next releases
com.lowagie.text.pdf.PdfWriter.getTableBottom(Table) this method will probably disappear in one of the next releases
com.lowagie.text.Rectangle.grayFill() Use `Rectangle.getGrayFill()` instead
com.lowagie.text.Image.hasAbsolutePosition() Use `Image.hasAbsoluteY()` instead
com.lowagie.text.Cell.header() Use `Cell.isHeader()` instead
com.lowagie.text.Rectangle.height() Use `Rectangle.getHeight()` instead
com.lowagie.text.Cell.horizontalAlignment() Use `Cell.getHorizontalAlignment()` instead
com.lowagie.text.Section.indentation() Use `Section.getIndentation()` instead
com.lowagie.text.Section.indentationLeft() Use `Section.getIndentationLeft()` instead
com.lowagie.text.List.indentationLeft() use getIndentationLeft();
com.lowagie.text.Paragraph.indentationLeft() Use `Paragraph.getIndentationLeft()` instead
com.lowagie.text.Image.indentationLeft() Use `Image.getIndentationLeft()` instead
com.lowagie.text.Section.indentationRight() Use `Section.getIndentationRight()` instead
com.lowagie.text.List.indentationRight() use getIndentationRight();
com.lowagie.text.Paragraph.indentationRight() Use `Paragraph.getIndentationRight()` instead
com.lowagie.text.Image.indentationRight() Use `Image.getIndentationRight()` instead
com.lowagie.text.pdf.PdfDictionary.isDictionaryType(PdfName)
com.lowagie.text.GreekList.isGreekLower() use isLowercase()
com.lowagie.text.Image.isInvertMask() use isInvert()
com.lowagie.text.List.isLowerCase() use isLowercase();
com.lowagie.text.RomanList.isRomanLower() use isLowercase()
com.lowagie.text.Table.lastHeaderRow() Use `Table.getLastHeaderRow()` instead
com.lowagie.text.Cell.leading() Use `Cell.getLeading()` instead
com.lowagie.text.Phrase.leading() Use `Phrase.getLeading()` instead
com.lowagie.text.Font.leading(float) Use `Font.getCalculatedLeading(float)` instead
com.lowagie.text.Phrase.leadingDefined() Use `Phrase.hasLeading()` instead
com.lowagie.text.Cell.left() Use `Cell.getLeft()` instead
com.lowagie.text.Rectangle.left() Use `Rectangle.getLeft()` instead
com.lowagie.text.pdf.PdfCell.left() Use `PdfCell.getLeft()` instead
com.lowagie.text.Rectangle.left(float) Use `Rectangle.getLeft(float)` instead
com.lowagie.text.ListItem.listSymbol() Use `ListItem.getListSymbol()` instead
com.lowagie.text.Meta.name() Use `Meta.getName()` instead
com.lowagie.text.Header.name() Use `Header.getName()` instead
com.lowagie.text.Anchor.name() Use `Anchor.getName()` instead
com.lowagie.text.Cell.noWrap() Use getMaxLines() == 1 instead
com.lowagie.text.Section.numberDepth() Use `Section.getNumberDepth()` instead
com.lowagie.text.Image.plainHeight() Use `Image.getPlainHeight()` instead
com.lowagie.text.Image.plainWidth() Use `Image.getPlainWidth()` instead
com.lowagie.text.Image.rawData() Use `Image.getRawData()` instead
com.lowagie.text.Anchor.reference() Use `Anchor.getReference()` instead
com.lowagie.text.Cell.right() Use `Cell.getRight()` instead
com.lowagie.text.Rectangle.right() Use `Rectangle.getRight()` instead
com.lowagie.text.pdf.PdfCell.right() Use `PdfCell.getRight()` instead
com.lowagie.text.Rectangle.right(float) Use `Rectangle.getRight(float)` instead
com.lowagie.text.Cell.rowspan() Use `Cell.getRowspan()` instead
com.lowagie.text.Image.scaledHeight() Use `Image.getScaledHeight()` instead
com.lowagie.text.Image.scaledWidth() Use `Image.getScaledWidth()` instead
com.lowagie.text.Table.setAbsWidth(String) setTotalWidth(int width)
com.lowagie.text.rtf.RtfWriter2.setDataCacheStyle(int) Use RtfWriter2.getDocumentSettings().setDataCacheStyle(...);
com.lowagie.text.Table.setDefaultCellBackgroundColor(Color) use getDefaultCell.setBackgroundColor
com.lowagie.text.Table.setDefaultCellBorder(int) use getDefaultCell.setBorder
com.lowagie.text.Table.setDefaultCellBorderColor(Color) getDefaultCell.setBorderColor
com.lowagie.text.Table.setDefaultCellBorderWidth(float) use getDefaultCell.setBorderWidth
com.lowagie.text.Table.setDefaultCellGrayFill(float) use getDefaultCell.setGrayFill
com.lowagie.text.Table.setDefaultColspan(int) use getDefaultCell.setColspan
com.lowagie.text.Table.setDefaultHorizontalAlignment(int) use getDefaultCell.setHorizontalAlignment
com.lowagie.text.Table.setDefaultRowspan(int) use getDefaultCell.setRowspan
com.lowagie.text.Table.setDefaultVerticalAlignment(int) use getDefaultCell.setVerticalAlignment
com.lowagie.text.pdf.PdfWriter.setEncryption(boolean, String, String, int) use the methods described in the PdfEncryptionSettings interface
com.lowagie.text.pdf.PdfWriter.setEncryption(byte[], byte[], int, boolean) use the methods described in the PdfEncryptionSettings interface
com.lowagie.text.pdf.PdfWriter.setEncryption(int, String, String, int) use the methods described in the PdfEncryptionSettings interface
com.lowagie.text.GreekList.setGreekLower(boolean) use setLowercase(boolean)
com.lowagie.text.Image.setInvertMask(boolean) use setInverted
com.lowagie.text.Cell.setNoWrap(boolean) Use setMaxLines(1) instead
com.lowagie.text.RomanList.setRomanLower(boolean) use setLowercase(boolean)
com.lowagie.text.Table.setSpaceBetweenCells(float) use setSpacing
com.lowagie.text.Table.setSpaceInsideCell(float) use setPadding
com.lowagie.text.Font.size() Use `Font.getSize()` instead
com.lowagie.text.Image.spacingAfter() Use `Image.getSpacingAfter()` instead
com.lowagie.text.Image.spacingBefore() Use `Image.getSpacingBefore()` instead
com.lowagie.text.Font.style() Use `Font.getStyle()` instead
com.lowagie.text.List.symbol() use getSymbol();
com.lowagie.text.List.symbolIndent() use getSymbolIndent();
com.lowagie.text.Image.templateData() Use `Image.getTemplateData()` instead
com.lowagie.text.Section.title() Use `Section.getTitle()` instead
com.lowagie.text.Cell.top() Use `Cell.getTop()` instead
com.lowagie.text.Rectangle.top() Use `Rectangle.getTop()` instead
com.lowagie.text.pdf.PdfCell.top() Use `PdfCell.getTop()` instead
com.lowagie.text.Rectangle.top(float) Use `Rectangle.getTop(float)` instead
com.lowagie.text.RomanList.toRoman(int) use RomanNumberFactory.getString(int)
com.lowagie.text.RomanList.toRomanLowerCase(int) use RomanNumberFactory.getString(int, boolean)
com.lowagie.text.RomanList.toRomanUpperCase(int) use RomanNumberFactory.getString(int, boolean)
com.lowagie.text.Image.url() Use `Image.getUrl()` instead
com.lowagie.text.Anchor.url() Use `Anchor.getUrl()` instead
com.lowagie.text.Cell.verticalAlignment() Use `Cell.getVerticalAlignment()` instead
com.lowagie.text.Rectangle.width() Use `Rectangle.getWidth()` instead
com.lowagie.text.Table.widthPercentage() Use `Table.getWidth()` instead
com.lowagie.text.rtf.RtfElement.write() replaced by `RtfElement.writeContent(OutputStream)`
com.lowagie.text.rtf.RtfBasicElement.write() replaced by `RtfBasicElement.writeContent(java.io.OutputStream)`
com.lowagie.text.rtf.RtfAddableElement.write() replaced by `RtfAddableElement.writeContent(OutputStream)`
com.lowagie.text.rtf.direct.RtfDirectContent.write() replaced by `RtfDirectContent.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfInfoElement.write() replaced by `RtfInfoElement.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfPageSetting.write() replaced by `RtfPageSetting.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfInfoGroup.write() replaced by `RtfInfoGroup.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfCodePage.write() replaced by `RtfCodePage.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfDocumentHeader.write() replaced by `RtfDocumentHeader.writeContent(OutputStream)`
com.lowagie.text.rtf.document.RtfDocument.write() replaced by `RtfDocument.writeContent(OutputStream)`
com.lowagie.text.rtf.field.RtfTOCEntry.write() replaced by `RtfTOCEntry.writeContent(OutputStream)`
com.lowagie.text.rtf.field.RtfField.write() replaced by `RtfField.writeContent(OutputStream)`
com.lowagie.text.rtf.graphic.RtfShapeProperty.write() replaced by `RtfShapeProperty.writeContent(OutputStream)`
com.lowagie.text.rtf.graphic.RtfShapePosition.write() replaced by `RtfShapePosition.writeContent(OutputStream)`
com.lowagie.text.rtf.graphic.RtfShape.write() replaced by `RtfShape.writeContent(OutputStream)`
com.lowagie.text.rtf.graphic.RtfImage.write() replaced by `RtfImage.writeContent(OutputStream)`
com.lowagie.text.rtf.headerfooter.RtfHeaderFooter.write() replaced by `RtfHeaderFooter.writeContent(OutputStream)`
com.lowagie.text.rtf.headerfooter.RtfHeaderFooterGroup.write() replaced by `RtfHeaderFooterGroup.writeContent(OutputStream)`
com.lowagie.text.rtf.list.RtfListItem.write() replaced by `RtfListItem.writeContent(OutputStream)`
com.lowagie.text.rtf.list.RtfList.write() replaced by `RtfList.writeContent(OutputStream)`
com.lowagie.text.rtf.list.RtfListTable.write() replaced by `RtfListTable.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfParagraphStyle.write() replaced by `RtfParagraphStyle.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfColor.write() replaced by `RtfColor.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfFont.write() replaced by `RtfFont.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfStylesheetList.write() replaced by `RtfStylesheetList.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfFontList.write() replaced by `RtfFontList.writeContent(OutputStream)`
com.lowagie.text.rtf.style.RtfColorList.write() replaced by `RtfColorList.writeContent(OutputStream)`
com.lowagie.text.rtf.table.RtfTable.write() replaced by `RtfTable.writeContent(OutputStream)`
com.lowagie.text.rtf.table.RtfRow.write() replaced by `RtfRow.writeContent(OutputStream)`
com.lowagie.text.rtf.table.RtfCell.write() replaced by `RtfCell.writeContent(OutputStream)`
com.lowagie.text.rtf.table.RtfBorderGroup.write() replaced by `RtfBorderGroup.writeContent(OutputStream)`
com.lowagie.text.rtf.table.RtfBorder.write() replaced by `RtfBorder.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfTabGroup.write() replaced by `RtfTabGroup.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfTab.write() replaced by `RtfTab.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfNewPage.write() replaced by `RtfNewPage.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfChunk.write() replaced by `RtfChunk.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfSection.write() replaced by `RtfSection.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfChapter.write() replaced by `RtfChapter.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfAnnotation.write() replaced by `RtfAnnotation.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfParagraph.write() replaced by `RtfParagraph.writeContent(OutputStream)`
com.lowagie.text.rtf.text.RtfPhrase.write() replaced by `RtfPhrase.writeContent(OutputStream)`
com.lowagie.text.rtf.RtfExtendedElement.writeDefinition() replaced by `RtfExtendedElement.writeDefinition(OutputStream)`
com.lowagie.text.rtf.document.RtfPageSetting.writeDefinition() replaced by `RtfPageSetting.writeDefinition(OutputStream)`
com.lowagie.text.rtf.document.RtfCodePage.writeDefinition() replaced by `RtfCodePage.writeDefinition(OutputStream)`
com.lowagie.text.rtf.list.RtfListItem.writeDefinition() replaced by `RtfListItem.writeDefinition(OutputStream)`
com.lowagie.text.rtf.list.RtfList.writeDefinition() replaced by `RtfList.writeDefinition(OutputStream)`
com.lowagie.text.rtf.list.RtfListTable.writeDefinition() replaced by `RtfListTable.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfParagraphStyle.writeDefinition() replaced by `RtfParagraphStyle.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfColor.writeDefinition() replaced by `RtfColor.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfFont.writeDefinition() replaced by `RtfFont.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfStylesheetList.writeDefinition() replaced by `RtfStylesheetList.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfFontList.writeDefinition() replaced by `RtfFontList.writeDefinition(OutputStream)`
com.lowagie.text.rtf.style.RtfColorList.writeDefinition() replaced by `RtfColorList.writeDefinition(OutputStream)`
com.lowagie.text.rtf.table.RtfCell.writeDefinition() replaced by `RtfCell.writeDefinition(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldBegin() replaced by `RtfField.writeFieldBegin(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldEnd() replaced by `RtfField.writeFieldEnd(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldInstBegin() replaced by `RtfField.writeFieldInstBegin(OutputStream)`
com.lowagie.text.rtf.field.RtfTotalPageNumber.writeFieldInstContent()
com.lowagie.text.rtf.field.RtfTableOfContents.writeFieldInstContent()
com.lowagie.text.rtf.field.RtfTOCEntry.writeFieldInstContent()
com.lowagie.text.rtf.field.RtfPageNumber.writeFieldInstContent() replaced by `RtfPageNumber.writeFieldInstContent(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldInstContent() replaced by `RtfField.writeFieldInstContent(OutputStream)`
com.lowagie.text.rtf.field.RtfAnchor.writeFieldInstContent() replaced by `RtfAnchor.writeFieldInstContent(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldInstEnd() replaced by `RtfField.writeFieldInstEnd(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldResultBegin() replaced by `RtfField.writeFieldResultBegin(OutputStream)`
com.lowagie.text.rtf.field.RtfTotalPageNumber.writeFieldResultContent()
com.lowagie.text.rtf.field.RtfTableOfContents.writeFieldResultContent()
com.lowagie.text.rtf.field.RtfTOCEntry.writeFieldResultContent()
com.lowagie.text.rtf.field.RtfPageNumber.writeFieldResultContent() replaced by `RtfPageNumber.writeFieldResultContent(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldResultContent() replaced by `RtfField.writeFieldResultContent(OutputStream)`
com.lowagie.text.rtf.field.RtfAnchor.writeFieldResultContent() replaced by `RtfAnchor.writeFieldResultContent(OutputStream)`
com.lowagie.text.rtf.field.RtfField.writeFieldResultEnd() replaced by `RtfField.writeFieldResultEnd(OutputStream)`
com.lowagie.text.rtf.list.RtfList.writeIndentations()
com.lowagie.text.rtf.table.RtfRow.writeRowDefinitions() replaced by `RtfRow.writeRowDefinitions(OutputStream)`
com.lowagie.text.rtf.document.RtfPageSetting.writeSectionDefinition() replaced by `RtfPageSetting.writeSectionDefinition(OutputStream)`
com.lowagie.text.rtf.document.RtfDocumentHeader.writeSectionDefinition()

Deprecated Constructors
com.lowagie.text.Anchor(Properties) use ElementFactory.getAnchor(attributes)
com.lowagie.text.Annotation(Properties) Use ElementFactory.getAnnotation(attributes)
com.lowagie.text.Cell(Properties) use ElementFactory.getCell(attributes)
com.lowagie.text.Chapter(Properties, int) Use ElementFactory.getChapter(attributes)
com.lowagie.text.Chunk(Properties) use ElementFactory.getChunk()
com.lowagie.text.List(Properties) use ElementFactory.getList(attributes);
com.lowagie.text.ListItem(Properties) use ElementFactory.getParagraph(attributes)
com.lowagie.text.Paragraph(Properties) use ElementFactory.getParagraph(attributes)
com.lowagie.text.Table(Properties)