# Deprecated API

## Contents

- Deprecated Fields
- Deprecated Methods

- Deprecated Fields
  Field and Description
  com.lowagie.text.pdf.PdfWriter.AllowAssembly As of iText 2.0.7, use `PdfWriter.ALLOW_ASSEMBLY` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowCopy As of iText 2.0.7, use `PdfWriter.ALLOW_COPY` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowDegradedPrinting As of iText 2.0.7, use `PdfWriter.ALLOW_DEGRADED_PRINTING` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowFillIn As of iText 2.0.7, use `PdfWriter.ALLOW_FILL_IN` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowModifyAnnotations As of iText 2.0.7, use `PdfWriter.ALLOW_MODIFY_ANNOTATIONS` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowModifyContents As of iText 2.0.7, use `PdfWriter.ALLOW_MODIFY_CONTENTS` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowPrinting As of iText 2.0.7, use `PdfWriter.ALLOW_PRINTING` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.AllowScreenReaders As of iText 2.0.7, use `PdfWriter.ALLOW_SCREENREADERS` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.AcroFields.Item.merged (will remove 'public' in the future)
  com.lowagie.text.pdf.AcroFields.Item.page (will remove 'public' in the future)
  com.lowagie.text.pdf.PdfWriter.STRENGTH128BITS As of iText 2.0.7, use `PdfWriter.STANDARD_ENCRYPTION_128` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.STRENGTH40BITS As of iText 2.0.7, use `PdfWriter.STANDARD_ENCRYPTION_40` instead. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.AcroFields.Item.tabOrder (will remove 'public' in the future)
  com.lowagie.text.pdf.AcroFields.Item.values (will remove 'public' in the future)
  com.lowagie.text.pdf.AcroFields.Item.widget_refs (will remove 'public' in the future)
  com.lowagie.text.pdf.AcroFields.Item.widgets (will remove 'public' in the future)

- Deprecated Methods
  Method and Description
  com.lowagie.text.pdf.CMapAwareDocumentFont.encode(byte[], int, int) method name is not indicative of what it does. Use `decode` instead.
  com.lowagie.text.pdf.PdfArray.getArrayList()
  com.lowagie.text.Table.getDefaultLayout() As of iText 2.0.7, replaced by `Table.getDefaultCell()`, scheduled for removal at 2.2.0
  com.lowagie.text.Table.setDefaultLayout(Cell) As of iText 2.0.7, replaced by `Table.setDefaultCell(Cell)`, scheduled for removal at 2.2.0
  com.lowagie.text.pdf.PdfWriter.setEncryption(boolean, String, String, int) As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.setEncryption(byte[], byte[], int, boolean) As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
  com.lowagie.text.pdf.PdfWriter.setEncryption(int, String, String, int) As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
  com.lowagie.text.Paragraph.spacingAfter() As of iText 2.1.5, replaced by `Paragraph.getSpacingAfter()`, scheduled for removal at 2.3.0
  com.lowagie.text.Paragraph.spacingBefore() As of iText 2.1.5, replaced by `Paragraph.getSpacingBefore()`, scheduled for removal at 2.3.0