Skip to main content

PdfExportException Class

The exception that the API throws if PDF export options are not compatible with each other.

Declaration

public class PdfExportException extends JavaException

Remarks

The Presentation.exportToPdf(stream, options) method validates PDF export options before export. If the options are not compatible with each other, the exportToPdf method throws a PdfExportException and does not export the presentation.

The getValidationErrors() method returns all validation errors. If validation finds a single error, the exception message is the error message. Otherwise, the exception message starts with “The PDF export options are not valid:” and lists all errors on separate lines.

Inherited Members

com.devexpress.system.JavaException.fromThrowable(java.lang.Throwable)
com.devexpress.system.JavaException.getBaseException()
com.devexpress.system.JavaException.getData()
com.devexpress.system.JavaException.getDataSnapshot()
com.devexpress.system.JavaException.getHResult()
com.devexpress.system.JavaException.getHelpLink()
com.devexpress.system.JavaException.getInnerException()
com.devexpress.system.JavaException.getSource()
com.devexpress.system.JavaException.initFields()
com.devexpress.system.JavaException.setHResult(int)
com.devexpress.system.JavaException.setHelpLink(java.lang.String)
com.devexpress.system.JavaException.setSource(java.lang.String)
com.devexpress.system.JavaException.toString()
com.devexpress.system.JavaException.withHResult(int)
com.devexpress.system.JavaException.withHelpLink(java.lang.String)
com.devexpress.system.JavaException.withSource(java.lang.String)
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
java.lang.Throwable.addSuppressed(java.lang.Throwable)
java.lang.Throwable.fillInStackTrace()
java.lang.Throwable.getCause()
java.lang.Throwable.getLocalizedMessage()
java.lang.Throwable.getMessage()
java.lang.Throwable.getStackTrace()
java.lang.Throwable.getSuppressed()
java.lang.Throwable.initCause(java.lang.Throwable)
java.lang.Throwable.printStackTrace()
java.lang.Throwable.printStackTrace(java.io.PrintStream)
java.lang.Throwable.printStackTrace(java.io.PrintWriter)
java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])

Inheritance

Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.devexpress.system.JavaException
PdfExportException
See Also

Methods

getValidationErrors() Method

Returns validation errors for PDF export options.

Declaration

public List<String> getValidationErrors()

Returns

Type Description
java.util.List<java.lang.String>

Validation error messages.

Remarks

The list contains one message for each conflict between PDF export options.