# Deprecated API

## Contents

- Deprecated Fields
- Deprecated Methods

- Deprecated Fields
  Field and Description
  org.faceless.pdf2.Event.CLICK this Event is now a synonym for `Event.MOUSEUP`
  org.faceless.pdf2.OutputProfile.PDFX3_2003_Acrobat use `OutputProfile.PDFX3_2003` instead

- Deprecated Methods
  Method and Description
  org.faceless.pdf2.viewer2.Exporter.getComponent() Subclasses should override `Exporter.getComponent(DocumentPanel,File)` instead
  org.faceless.pdf2.PDF.getFullOutputProfile() since 2.18 the OutputProfiler class gives more control and should be used instead of PDF.getFullOutputProfile
  org.faceless.pdf2.PDFStyle.getLineDashOff() since 2.7.8 this method has been replaced with `PDFStyle.getLineDashPattern()`
  org.faceless.pdf2.PDFStyle.getLineDashOn() since 2.7.8 this method has been replaced with `PDFStyle.getLineDashPattern()`
  org.faceless.pdf2.PDFSound.getStream() please call getAudioInputStream instead.
  org.faceless.pdf2.PageExtractor.getStyledText(PageExtractor.Text, int, PageExtractor.Text, int, boolean) see `PageExtractor.getStyledText(Text, int, Text, int, Comparator)`
  org.faceless.pdf2.PageExtractor.getText(PageExtractor.Text, int, PageExtractor.Text, int, boolean) see `PageExtractor.getStyledText(Text, int, Text, int, Comparator)`
  org.faceless.pdf2.WidgetAnnotation.getTextValue() since 2.11 just call getValue() instead.
  org.faceless.pdf2.PDFSound.getType() method will always return Unknown
  org.faceless.pdf2.PDF.getViewerPreference(String) since 2.7.6 replaced by the `setOption()` method - the key is the same as is passed in to this method but with a prefix of `view.`, eg. `FullScreen` becomes `view.FullScreen`.
  org.faceless.pdf2.FormText.isDoNotSpellCheck() call isSpellCheck instead
  org.faceless.pdf2.PDFFont.ligaturize(char[], int, int, Locale) use `setFeature("latinligatures", true)` instead
  org.faceless.pdf2.viewer2.PDFViewer.loadPDF(File, EncryptionHandler) this method has been superceded by the `PDFImporter` class
  org.faceless.pdf2.viewer2.PDFViewer.loadPDF(File, EncryptionHandler[]) this method has been superceded by the `PDFImporter` class
  org.faceless.pdf2.viewer2.PDFViewer.loadPDF(InputStream, EncryptionHandler[], String, File) this method has been superceded by the `PDFImporter` class
  org.faceless.pdf2.viewer2.DocumentPanel.redraw(Object) DocumentPanel.redraw() is no longer required as this object now listens to `PropertyChangeEvents` fired by the PDF. This method is not called anywhere and is a no-op
  org.faceless.pdf2.PDFFont.requote(char[], int, int, Locale) use `setFeature("requote", true)` instead
  org.faceless.pdf2.PDFFont.requote(String, Locale) use `setFeature("requote", true)` instead
  org.faceless.pdf2.StandardEncryptionHandler.setAcrobat9Level(int, int, int, boolean) the encryption algorithm used by Acrobat 9 has ben found to be less secure than the algorithm used by Acrobat 7, so as of 2.11.19 a request for Acrobat 9 encryption will fall back to Acrobat 7 encryption.
  org.faceless.pdf2.FormText.setDoNotSpellCheck(boolean) call setSpellCheck instead
  org.faceless.pdf2.PDF.setLayout(String, String) since 2.7.6 this method has been replaced with the "pagelayout" and "pagemode" keys to the `setOption()` method.
  org.faceless.pdf2.PDF.setOutputProfile(OutputProfile) since 2.18 the OutputProfiler class should be used instead of calling PDF.setOutputProfile
  org.faceless.pdf2.WidgetAnnotation.setTextValue(String) since 2.11 just call #setValue
  org.faceless.pdf2.PDF.setViewerPreference(String, boolean) since 2.7.6 this method has been replaced with the `setOption()` method - they key is the same but with a prefix of `view.`, eg. `view.fitWindow`.

Copyright © 2001-2015 Big Faceless Organization