iText 7 7.1.8 API
iText.Kernel.PdfException Class Reference

Exception class for exceptions in kernel module. More...

Inheritance diagram for iText.Kernel.PdfException:
iText.Kernel.Crypto.BadPasswordException iText.Kernel.Crypto.Securityhandler.UnsupportedSecurityHandlerException iText.Kernel.Pdf.Canvas.Parser.Util.InlineImageParsingUtils.InlineImageParseException iText.Kernel.Pdf.MemoryLimitsAwareException iText.Pdfa.PdfAConformanceException iText.Svg.Exceptions.SvgProcessingException

Public Member Functions

  PdfException (String message)
  Creates a new instance of PdfException. More...
 
  PdfException (Exception cause)
  Creates a new instance of PdfException. More...
 
  PdfException (String message, Object obj)
  Creates a new instance of PdfException. More...
 
  PdfException (String message, Exception cause)
  Creates a new instance of PdfException. More...
 
  PdfException (String message, Exception cause, Object obj)
  Creates a new instance of PdfException. More...
 
virtual iText.Kernel.PdfException  SetMessageParams (params Object[] messageParams)
  Sets additional params for Exception message. More...
 

Static Public Attributes

const String  _1IsAnUnknownGraphicsStateDictionary = "{0} is an unknown graphics state dictionary."
 
const String  _1IsNotAnAcceptableValueForTheField2 = "{0} is not an acceptable value for the field {1}."
 
const String  _1IsNotAValidPlaceableWindowsMetafile = "{0} is not a valid placeable windows metafile."
 
const String  AnnotationShallHaveReferenceToPage = "Annotation shall have reference to page."
 
const String  AppendModeRequiresADocumentWithoutErrorsEvenIfRecoveryWasPossible = "Append mode requires a document without errors, even if recovery is possible."
 
const String  AuthenticatedAttributeIsMissingTheDigest = "Authenticated attribute is missing the digest."
 
const String  AvailableSpaceIsNotEnoughForSignature = "Available space is not enough for signature."
 
const String  BadCertificateAndKey = "Bad public key certificate and/or private key."
 
const String  BadUserPassword = "Bad user password. Password is not provided or wrong password provided. Correct password should be passed to PdfReader constructor with properties. See ReaderProperties#setPassword() method."
 
const String  CannotAddCellToCompletedLargeTable = "The large table was completed. It's prohibited to use it anymore. Created different Table instance instead."
 
const String  CannotAddKidToTheFlushedElement = "Cannot add kid to the flushed element."
 
const String  CannotAddNonDictionaryExtGStateToResources1 = "Cannot add graphic state to resources. The PdfObject type is {0}, but should be PdfDictionary."
 
const String  CannotAddNonDictionaryPatternToResources1 = "Cannot add pattern to resources. The PdfObject type is {0}, but should be PdfDictionary or PdfStream."
 
const String  CannotAddNonDictionaryPropertiesToResources1 = "Cannot add properties to resources. The PdfObject type is {0}, but should be PdfDictionary."
 
const String  CannotAddNonDictionaryShadingToResources1 = "Cannot add shading to resources. The PdfObject type is {0}, but should be PdfDictionary or PdfStream."
 
const String  CannotAddNonStreamFormToResources1 = "Cannot add form to resources. The PdfObject type is {0}, but should be PdfStream."
 
const String  CannotAddNonStreamImageToResources1 = "Cannot add image to resources. The PdfObject type is {0}, but should be PdfStream."
 
const String  CannotBeEmbeddedDueToLicensingRestrictions = "{0} cannot be embedded due to licensing restrictions."
 
const String  CannotCloseDocument = "Cannot close document."
 
const String  CannotCloseDocumentWithAlreadyFlushedPdfCatalog = "Cannot close document with already flushed PDF Catalog."
 
const String  CannotConvertPdfArrayToBooleanArray = "Cannot convert PdfArray to an array of booleans"
 
const String  CannotConvertPdfArrayToDoubleArray = "Cannot convert PdfArray to an array of doubles."
 
const String  CannotConvertPdfArrayToIntArray = "Cannot convert PdfArray to an array of integers."
 
const String  CannotConvertPdfArrayToFloatArray = "Cannot convert PdfArray to an array of floats."
 
const String  CannotConvertPdfArrayToLongArray = "Cannot convert PdfArray to an array of longs."
 
const String  CannotConvertPdfArrayToRectanle = "Cannot convert PdfArray to Rectangle."
 
const String  CannotCopyFlushedObject = "Cannot copy flushed object."
 
const String  CannotCopyFlushedTag = "Cannot copy flushed tag."
 
const String  CannotCopyObjectContent = "Cannot copy object content."
 
const String  CannotCopyIndirectObjectFromTheDocumentThatIsBeingWritten = "Cannot copy indirect object from the document that is being written."
 
const String  CannotCopyToDocumentOpenedInReadingMode = "Cannot copy to document opened in reading mode."
 
const String  CannotCreateLayoutImageByWmfImage = "Cannot create layout image by WmfImage instance. First convert the image into FormXObject and then use the corresponding layout image constructor."
 
const String  CannotCreatePdfImageXObjectByWmfImage = "Cannot create PdfImageXObject instance by WmfImage. Use PdfFormXObject constructor instead."
 
const String  CannotCreatePdfStreamByInputStreamWithoutPdfDocument = "Cannot create pdfstream by InputStream without PdfDocument."
 
const String  CannotDrawElementsOnAlreadyFlushedPages = "Cannot draw elements on already flushed pages."
 
const String  CannotGetContentBytes = "Cannot get content bytes."
 
const String  CannotGetPdfStreamBytes = "Cannot get PdfStream bytes."
 
const String  CannotOperateWithFlushedPdfStream = "Cannot operate with the flushed PdfStream."
 
const String  CannotRetrieveMediaBoxAttribute = "Invalid PDF. There is no media box attribute for page or its parents."
 
const String  CannotFindImageDataOrEI = "Cannot find image data or EI."
 
const String  CannotFlushDocumentRootTagBeforeDocumentIsClosed = "Cannot flush document root tag before document is closed."
 
const String  CannotFlushObject = "Cannot flush object."
 
const String  CannotMoveFlushedTag = "Cannot move flushed tag"
 
const String  CannotMoveToFlushedKid = "Cannot move to flushed kid."
 
const String  CannotMoveToMarkedContentReference = "Cannot move to marked content reference."
 
const String  CannotMoveToParentCurrentElementIsRoot = "Cannot move to parent current element is root."
 
const String  CannotMovePagesInPartlyFlushedDocument = "Cannot move pages in partly flushed document. Page number {0} is already flushed."
 
const String  CannotOpenDocument = "Cannot open document."
 
const String  CannotParseContentStream = "Cannot parse content stream."
 
const String  CannotReadAStreamInOrderToAppendNewBytes = "Cannot read a stream in order to append new bytes."
 
const String  CannotReadPdfObject = "Cannot read PdfObject."
 
const String  CannotRecogniseDocumentFontWithEncoding = "Cannot recognise document font {0} with {1} encoding"
 
const String  CannotRelocateRootTag = "Cannot relocate root tag."
 
const String  CannotRelocateTagWhichIsAlreadyFlushed = "Cannot relocate tag which is already flushed."
 
const String  CannotRelocateTagWhichParentIsAlreadyFlushed = "Cannot relocate tag which parent is already flushed."
 
const String  CannotRemoveDocumentRootTag = "Cannot remove document root tag."
 
const String  CannotRemoveMarkedContentReferenceBecauseItsPageWasAlreadyFlushed = "Cannot remove marked content reference, because its page has been already flushed."
 
const String  CannotRemoveTagBecauseItsParentIsFlushed = "Cannot remove tag, because its parent is flushed."
 
const String  CannotSetDataToPdfstreamWhichWasCreatedByInputStream = "Cannot set data to PdfStream which was created by InputStream."
 
const String  CannotSetDataToPdfStreamWhichWasCreatedByInputStream = "Cannot set data to PdfStream which was created by InputStream."
 
const String  CannotSetEncryptedPayloadToDocumentOpenedInReadingMode = "Cannot set encrypted payload to a document opened in read only mode."
 
const String  CannotSetEncryptedPayloadToEncryptedDocument = "Cannot set encrypted payload to an encrypted document."
 
const String  CannotSplitDocumentThatIsBeingWritten = "Cannot split document that is being written."
 
const String  CannotWriteToPdfStream = "Cannot write to PdfStream."
 
const String  CannotWriteObjectAfterItWasReleased = "Cannot write object after it was released. In normal situation the object must be read once again before being written."
 
const String  CannotDecodePkcs7SigneddataObject = "Cannot decode PKCS#7 SignedData object."
 
const String  CannotFindSigningCertificateWithSerial1 = "Cannot find signing certificate with serial {0}."
 
const String  CertificateIsNotProvidedDocumentIsEncryptedWithPublicKeyCertificate = "Certificate is not provided. Document is encrypted with public key certificate, it should be passed to PdfReader constructor with properties. See ReaderProperties#setPublicKeySecurityParams() method."
 
const String  CertificationSignatureCreationFailedDocShallNotContainSigs = "Certification signature creation failed. Document shall not contain any certification or approval signatures before signing with certification signature."
 
const String  CfNotFoundEncryption = "/CF not found (encryption)"
 
const String  CodabarMustHaveAtLeastStartAndStopCharacter = "Codabar must have at least start and stop character."
 
const String  CodabarMustHaveOneAbcdAsStartStopCharacter = "Codabar must have one of 'ABCD' as start/stop character."
 
const String  ColorSpaceNotFound = "ColorSpace not found."
 
const String  ContentStreamMustNotInvokeOperatorsThatSpecifyColorsOrOtherColorRelatedParameters = "Content stream must not invoke operators that specify colors or other color related parameters in the graphics state."
 
const String  DecodeParameterType1IsNotSupported = "Decode parameter type {0} is not supported."
 
const String  DefaultAppearanceNotFound = "DefaultAppearance is required but not found"
 
const String  DefaultcryptfilterNotFoundEncryption = "/DefaultCryptFilter not found (encryption)."
 
const String  DictionaryKey1IsNotAName = "Dictionary key {0} is not a name."
 
const String  DictionaryDoesntHave1FontData = "Dictionary doesn't have {0} font data."
 
const String  DictionaryDoesntHaveSupportedFontData = "Dictionary doesn't have supported font data."
 
const String  DocumentAlreadyPreClosed = "Document has been already pre closed."
 
const String  DocumentClosedItIsImpossibleToExecuteAction = "Document was closed. It is impossible to execute action."
 
const String  DocumentDoesntContainStructTreeRoot = "Document doesn't contain StructTreeRoot."
 
const String  DocumentHasNoPages = "Document has no pages."
 
const String  DocumentHasNoPdfCatalogObject = "Document has no PDF Catalog object."
 
const String  DocumentMustBePreClosed = "Document must be preClosed."
 
const String  DocumentForCopyToCannotBeNull = "Document for copyTo cannot be null."
 
const String  DuringDecompressionMultipleStreamsInSumOccupiedMoreMemoryThanAllowed = "During decompression multiple streams in sum occupied more memory than allowed. Please either check your pdf or increase the allowed single decompressed pdf stream maximum size value by setting the appropriate parameter of ReaderProperties's MemoryLimitsAwareHandler."
 
const String  DuringDecompressionSingleStreamOccupiedMoreMemoryThanAllowed = "During decompression a single stream occupied more memory than allowed. Please either check your pdf or increase the allowed multiple decompressed pdf streams maximum size value by setting the appropriate parameter of ReaderProperties's MemoryLimitsAwareHandler."
 
const String  DuringDecompressionSingleStreamOccupiedMoreThanMaxIntegerValue = "During decompression a single stream occupied more than a maximum integer value. Please check your pdf."
 
const String  EndOfContentStreamReachedBeforeEndOfImageData = "End of content stream reached before end of image data."
 
const String  ErrorWhileReadingObjectStream = "Error while reading Object Stream."
 
const String  EncryptedPayloadFileSpecDoesntHaveEncryptedPayloadDictionary = "Encrypted payload file spec shall have encrypted payload dictionary."
 
const String  EncryptedPayloadFileSpecShallBeIndirect = "Encrypted payload file spec shall be indirect."
 
const String  EncryptedPayloadFileSpecShallHaveEFDictionary = "Encrypted payload file spec shall have 'EF' key. The value of such key shall be a dictionary that contains embedded file stream."
 
const String  EncryptedPayloadFileSpecShallHaveTypeEqualToFilespec = "Encrypted payload file spec shall have 'Type' key. The value of such key shall be 'Filespec'."
 
const String  EncryptedPayloadShallHaveTypeEqualsToEncryptedPayloadIfPresent = "Encrypted payload dictionary shall have field 'Type' equal to 'EncryptedPayload' if present"
 
const String  EncryptedPayloadShallHaveSubtype = "Encrypted payload shall have 'Subtype' field specifying crypto filter"
 
const String  FailedToGetTsaResponseFrom1 = "Failed to get TSA response from {0}."
 
const String  FieldFlatteningIsNotSupportedInAppendMode = "Field flattening is not supported in append mode."
 
const String  FieldAlreadySigned = "Field has been already signed."
 
const String  FieldNamesCannotContainADot = "Field names cannot contain a dot."
 
const String  FieldTypeIsNotASignatureFieldType = "Field type is not a signature field type."
 
const String  Filter1IsNotSupported = "Filter {0} is not supported."
 
const String  FilePosition1CrossReferenceEntryInThisXrefSubsection = "file position {0} cross reference entry in this xref subsection."
 
const String  FilterCcittfaxdecodeIsOnlySupportedForImages = "Filter CCITTFaxDecode is only supported for images"
 
const String  FilterIsNotANameOrArray = "filter is not a name or array."
 
const String  FlushedPageCannotBeAddedOrInserted = "Flushed page cannot be added or inserted."
 
const String  FlushingHelperFLushingModeIsNotForDocReadingMode = "Flushing writes the object to the output stream and releases it from memory. It is only possible for documents that have a PdfWriter associated with them. Use PageFlushingHelper#releaseDeep method instead."
 
const String  FontAndSizeMustBeSetBeforeWritingAnyText = "Font and size must be set before writing any text."
 
const String  FontEmbeddingIssue = "Font embedding issue."
 
const String  FontProviderNotSetFontFamilyNotResolved = "FontProvider and FontSet are empty. Cannot resolve font family name (see ElementPropertyContainer#setFontFamily) without initialized FontProvider (see RootElement#setFontProvider)."
 
const String  FontSizeIsTooSmall = "Font size is too small."
 
const String  FormXObjectMustHaveBbox = "Form XObject must have BBox."
 
const String  FunctionIsNotCompatibleWitColorSpace = "Function is not compatible with ColorSpace."
 
const String  GivenAccessibleElementIsNotConnectedToAnyTag = "Given accessible element is not connected to any tag."
 
const String  IllegalCharacterInAsciihexdecode = "illegal character in ASCIIHexDecode."
 
const String  IllegalCharacterInAscii85decode = "Illegal character in ASCII85Decode."
 
const String  IllegalCharacterInCodabarBarcode = "Illegal character in Codabar Barcode."
 
const String  IllegalLengthValue = "Illegal length value."
 
const String  IllegalRValue = "Illegal R value."
 
const String  IllegalVValue = "Illegal V value."
 
const String  InAPageLabelThePageNumbersMustBeGreaterOrEqualTo1 = "In a page label the page numbers must be greater or equal to 1."
 
const String  InCodabarStartStopCharactersAreOnlyAllowedAtTheExtremes = "In Codabar, start/stop characters are only allowed at the extremes."
 
const String  InvalidHttpResponse1 = "Invalid http response {0}."
 
const String  InvalidTsa1ResponseCode2 = "Invalid TSA {0} response code {1}."
 
const String  IncorrectNumberOfComponents = "Incorrect number of components."
 
const String  InvalidCodewordSize = "Invalid codeword size."
 
const String  InvalidCrossReferenceEntryInThisXrefSubsection = "Invalid cross reference entry in this xref subsection."
 
const String  InvalidIndirectReference1 = "Invalid indirect reference {0}."
 
const String  InvalidMediaBoxValue = "Tne media box object has incorrect values."
 
const String  InvalidPageStructure1 = "Invalid page structure {0}."
 
const String  InvalidPageStructurePagesPagesMustBePdfDictionary = "Invalid page structure. /Pages must be PdfDictionary."
 
const String  InvalidRangeArray = "Invalid range array."
 
const String  InvalidOffsetForObject1 = "Invalid offset for object {0}."
 
const String  InvalidXrefStream = "Invalid xref stream."
 
const String  InvalidXrefTable = "Invalid xref table."
 
const String  IoException = "I/O exception."
 
const String  IoExceptionWhileCreatingFont = "I/O exception while creating Font"
 
const String  LzwDecoderException = "LZW decoder exception."
 
const String  LzwFlavourNotSupported = "LZW flavour not supported."
 
const String  MacroSegmentIdMustBeGtOrEqZero = "macroSegmentId must be >= 0"
 
const String  MacroSegmentIdMustBeGtZero = "macroSegmentId must be > 0"
 
const String  MacroSegmentIdMustBeLtMacroSegmentCount = "macroSegmentId must be < macroSemgentCount"
 
const String  MustBeATaggedDocument = "Must be a tagged document."
 
const String  NumberOfEntriesInThisXrefSubsectionNotFound = "Number of entries in this xref subsection not found."
 
const String  NoCompatibleEncryptionFound = "No compatible encryption found."
 
const String  NoCryptoDictionaryDefined = "No crypto dictionary defined."
 
const String  NoKidWithSuchRole = "No kid with such role."
 
const String  NoMaxLenPresent = "No /MaxLen has been set even though the Comb flag has been set."
 
const String  NoninvertibleMatrixCannotBeProcessed = "A noninvertible matrix has been parsed. The behaviour is unpredictable."
 
const String  NotAPlaceableWindowsMetafile = "Not a placeable windows metafile."
 
const String  NotAValidPkcs7ObjectNotASequence = "Not a valid PKCS#7 object - not a sequence"
 
const String  NotAValidPkcs7ObjectNotSignedData = "Not a valid PKCS#7 object - not signed data."
 
const String  NotAWmfImage = "Not a WMF image."
 
const String  NoValidEncryptionMode = "No valid encryption mode."
 
const String  NumberOfBooleansInTheArrayDoesntCorrespondWithTheNumberOfFields = "The number of booleans in the array doesn't correspond with the number of fields."
 
const String  ObjectMustBeIndirectToWorkWithThisWrapper = "Object must be indirect to work with this wrapper."
 
const String  ObjectNumberOfTheFirstObjectInThisXrefSubsectionNotFound = "Object number of the first object in this xref subsection not found."
 
const String  OnlyIdentityCMapsSupportsWithTrueType = "Only Identity CMaps supports with truetype"
 
const String  OnlyBmpCanBeWrappedInWmf = "Only BMP can be wrapped in WMF."
 
const String  OperatorEINotFoundAfterEndOfImageData = "Operator EI not found after the end of image data."
 
const String  Page1CannotBeAddedToDocument2BecauseItBelongsToDocument3 = "Page {0} cannot be added to document {1}, because it belongs to document {2}."
 
const String  PageIsNotSetForThePdfTagStructure = "Page is not set for the pdf tag structure."
 
const String  PageAlreadyFlushed = "The page has been already flushed."
 
const String  PageAlreadyFlushedUseAddFieldAppearanceToPageMethodBeforePageFlushing = "The page has been already flushed. Use PdfAcroForm#addFieldAppearanceToPage() method before page flushing."
 
const String  PdfEncodings = "PdfEncodings exception."
 
const String  PdfEncryption = "PdfEncryption exception."
 
const String  PdfDecryption = "Exception occurred with PDF document decryption. One of the possible reasons is wrong password or wrong public key certificate and private key."
 
const String  PdfDocumentMustBeOpenedInStampingMode = "PdfDocument must be opened in stamping mode."
 
const String  PdfFormXobjectHasInvalidBbox = "PdfFormXObject has invalid BBox."
 
const String  PdfObjectStreamReachMaxSize = "PdfObjectStream reach max size."
 
const String  PdfPagesTreeCouldBeGeneratedOnlyOnce = "PdfPages tree could be generated only once."
 
const String  PdfReaderHasBeenAlreadyUtilized = "Given PdfReader instance has already been utilized. The PdfReader cannot be reused, please create a new instance."
 
const String  PdfStartxrefIsNotFollowedByANumber = "PDF startxref is not followed by a number."
 
const String  PdfStartxrefNotFound = "PDF startxref not found."
 
const String  PdfIndirectObjectBelongsToOtherPdfDocument = "Pdf indirect object belongs to other PDF document. Copy object to current pdf document."
 
const String  PdfVersionNotValid = "PDF version is not valid."
 
const String  RefArrayItemsInStructureElementDictionaryShallBeIndirectObjects = "Ref array items in structure element dictionary shall be indirect objects."
 
const String  RequestedPageNumberIsOutOfBounds = "Requested page number {0} is out of bounds."
 
const String  PngFilterUnknown = "PNG filter unknown."
 
const String  PrintScalingEnforceEntryInvalid = "/PrintScaling shall may appear in the Enforce array only if the corresponding entry in the viewer preferences dictionary specifies a valid value other than AppDefault"
 
const String  ResourcesCannotBeNull = "Resources cannot be null."
 
const String  ResourcesDoNotContainExtgstateEntryUnableToProcessOperator1 = "Resources do not contain ExtGState entry. Unable to process operator {0}."
 
const String  RoleIsNotMappedToAnyStandardRole = "Role \"{0}\" is not mapped to any standard role."
 
const String  RoleInNamespaceIsNotMappedToAnyStandardRole = "Role \"{0}\" in namespace {1} is not mapped to any standard role."
 
const String  ShadingTypeNotFound = "Shading type not found."
 
const String  SignatureWithName1IsNotTheLastItDoesntCoverWholeDocument = "Signature with name {0} is not the last. It doesn't cover the whole document."
 
const String  StdcfNotFoundEncryption = "/StdCF not found (encryption)"
 
const String  StructParentIndexNotFoundInTaggedObject = "StructParent index not found in tagged object."
 
const String  StructureElementInStructureDestinationShallBeAnIndirectObject = "Structure element referenced by a structure destination shall be an indirect object."
 
const String  StructureElementShallContainParentObject = "StructureElement shall contain parent object."
 
const String  StructureElementDictionaryShallBeAnIndirectObjectInOrderToHaveChildren = "Structure element dictionary shall be an indirect object in order to have children."
 
const String  TagCannotBeMovedToTheAnotherDocumentsTagStructure = "Tag cannot be moved to the another document's tag structure."
 
const String  TagFromTheExistingTagStructureIsFlushedCannotAddCopiedPageTags = "Tag from the existing tag structure is flushed. Cannot add copied page tags."
 
const String  TagStructureCopyingFailedItMightBeCorruptedInOneOfTheDocuments = "Tag structure copying failed: it might be corrupted in one of the documents."
 
const String  TagStructureFlushingFailedItMightBeCorrupted = "Tag structure flushing failed: it might be corrupted."
 
const String  TagTreePointerIsInInvalidStateItPointsAtFlushedElementUseMoveToRoot = "TagTreePointer is in invalid state: it points at flushed element. Use TagTreePointer#moveToRoot."
 
const String  TagTreePointerIsInInvalidStateItPointsAtRemovedElementUseMoveToRoot = "TagTreePointer is in invalid state: it points at removed element use TagTreePointer#moveToRoot."
 
const String  TextCannotBeNull = "Text cannot be null."
 
const String  TextIsTooBig = "Text is too big."
 
const String  TextMustBeEven = "The text length must be even."
 
const String  TwoBarcodeMustBeExternally = "The two barcodes must be composed externally."
 
const String  ThereAreIllegalCharactersForBarcode128In1 = "There are illegal characters for barcode 128 in {0}."
 
const String  ThereIsNoAssociatePdfWriterForMakingIndirects = "There is no associate PdfWriter for making indirects."
 
const String  ThereIsNoFieldInTheDocumentWithSuchName1 = "There is no field in the document with such name: {0}."
 
const String  ThisPkcs7ObjectHasMultipleSignerinfosOnlyOneIsSupportedAtThisTime = "This PKCS#7 object has multiple SignerInfos. Only one is supported at this time."
 
const String  ThisInstanceOfPdfSignerAlreadyClosed = "This instance of PdfSigner has been already closed."
 
const String  ToFlushThisWrapperUnderlyingObjectMustBeAddedToDocument = "To manually flush this wrapper, you have to ensure that the object behind this wrapper is added to the document, i.e. it has an indirect reference."
 
const String  Tsa1FailedToReturnTimeStampToken2 = "TSA {0} failed to return time stamp token: {1}."
 
const String  TrailerNotFound = "Trailer not found."
 
const String  TrailerPrevEntryPointsToItsOwnCrossReferenceSection = "Trailer prev entry points to its own cross reference section."
 
const String  UnbalancedBeginEndMarkedContentOperators = "Unbalanced begin/end marked content operators."
 
const String  UnbalancedLayerOperators = "Unbalanced layer operators."
 
const String  UnbalancedSaveRestoreStateOperators = "Unbalanced save restore state operators."
 
const String  UnexpectedCharacter1FoundAfterIDInInlineImage = "Unexpected character {0} found after ID in inline image."
 
const String  UnexpectedCloseBracket = "Unexpected close bracket."
 
const String  UnexpectedColorSpace1 = "Unexpected ColorSpace: {0}."
 
const String  UnexpectedEndOfFile = "Unexpected end of file."
 
const String  UnexpectedGtGt = "unexpected >>."
 
const String  UnexpectedShadingType = "Unexpected shading type."
 
const String  UnknownEncryptionTypeREq1 = "Unknown encryption type R == {0}."
 
const String  UnknownEncryptionTypeVEq1 = "Unknown encryption type V == {0}."
 
const String  UnknownPdfException = "Unknown PdfException."
 
const String  UnknownHashAlgorithm1 = "Unknown hash algorithm: {0}."
 
const String  UnknownKeyAlgorithm1 = "Unknown key algorithm: {0}."
 
const String  UnsupportedDefaultColorSpaceName1 = "Unsupported default color space name. Was {0}, but should be DefaultCMYK, DefaultGray or DefaultRGB"
 
const String  UnsupportedXObjectType = "Unsupported XObject type."
 
const String  VerificationAlreadyOutput = "Verification already output."
 
const String  WhenAddingObjectReferenceToTheTagTreeItMustBeConnectedToNotFlushedObject = "When adding object reference to the tag tree, it must be connected to not flushed object."
 
const String  WhitePointIsIncorrectlySpecified = "White point is incorrectly specified."
 
const String  WmfImageException = "WMF image exception."
 
const String  WrongFormFieldAddAnnotationToTheField = "Wrong form field. Add annotation to the field."
 
const String  WrongMediaBoxSize1 = "Wrong media box size: {0}."
 
const String  WRONGMEDIABOXSIZETOOFEWARGUMENTS = "Wrong media box size: {0}. Need at least 4 arguments"
 
const String  XrefSubsectionNotFound = "xref subsection not found."
 
const String  YouHaveToDefineABooleanArrayForThisCollectionSortDictionary = "You have to define a boolean array for this collection sort dictionary."
 
const String  YouMustSetAValueBeforeAddingAPrefix = "You must set a value before adding a prefix."
 
const String  YouNeedASingleBooleanForThisCollectionSortDictionary = "You need a single boolean for this collection sort dictionary."
 
const String  QuadPointArrayLengthIsNotAMultipleOfEight = "The QuadPoint Array length is not a multiple of 8."
 

Properties

override String  Message [get]
 

Detailed Description

Exception class for exceptions in kernel module.

Constructor & Destructor Documentation

◆ PdfException() [1/5]

iText.Kernel.PdfException.PdfException ( String  message )
inline

Creates a new instance of PdfException.

Parameters
message the detail message.

◆ PdfException() [2/5]

iText.Kernel.PdfException.PdfException ( Exception  cause )
inline

Creates a new instance of PdfException.

Parameters
cause the cause (which is saved for later retrieval by System.Exception.InnerException() method).

◆ PdfException() [3/5]

iText.Kernel.PdfException.PdfException ( String  message,
Object  obj 
)
inline

Creates a new instance of PdfException.

Parameters
message the detail message.
obj an object for more details.

◆ PdfException() [4/5]

iText.Kernel.PdfException.PdfException ( String  message,
Exception  cause 
)
inline

Creates a new instance of PdfException.

Parameters
message the detail message.
cause the cause (which is saved for later retrieval by System.Exception.InnerException() method).

◆ PdfException() [5/5]

iText.Kernel.PdfException.PdfException ( String  message,
Exception  cause,
Object  obj 
)
inline

Creates a new instance of PdfException.

Parameters
message the detail message.
cause the cause (which is saved for later retrieval by System.Exception.InnerException() method).
obj an object for more details.

Member Function Documentation

◆ SetMessageParams()

virtual iText.Kernel.PdfException iText.Kernel.PdfException.SetMessageParams ( params Object[]  messageParams )
inlinevirtual

Sets additional params for Exception message.

Parameters
messageParams additional params.
Returns
object itself.