PdfFileEditor.CorruptedItems
PdfFileEditor.CorruptedItems property
Array of encountered problems when concatenation was performed. For every corrupted document from passed to Concatenate() function new CorruptedItem entry is created. This property may be used only when CorruptedFileAction is ConcatenateIgnoringCorrupted.
//concatenate documents and show information about corrupted documents
PdfFileEditor pfe = new PdfFileEditor();
pfe.CorruptedFileAction = PdfFileEditor.ConcatenateCorruptedFileActions.ConcatenateIgnoringCorrupted;
if (pfe.CorruptedItems.Length >0)
{
foreach(PdfFileEditor.CorruptedItem item in pfe.CorruptedItems)
{
Console.WriteLine(item.Index + " reason: " + item.Exception);
}
}
public CorruptedItem[] CorruptedItems { get; }
See Also
- class CorruptedItem
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF