Click or drag to resize
Pdf Library for .NET

PdfToTextException Class

Exception thrown by PdfToText.
Inheritance Hierarchy
SystemObject
  SystemException
    SelectPdf.UniversalPdfToTextException

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfToTextException : Exception

The PdfToTextException type exposes the following members.

Constructors
 NameDescription
Public methodPdfToTextException(String)Initializes a new instance with a message.
Public methodPdfToTextException(String, Exception)Initializes a new instance with a message and inner exception.
Top
Example
try
{
    PdfToText tool = new PdfToText();
    tool.Load("document.pdf");
    string text = tool.GetText();
}
catch (PdfToTextException ex)
{
    System.Console.WriteLine("Text extraction failed: " + ex.Message);
}
See Also