Interface IUnitTestable
An Interface for configuring PDF rendering classes which support creating PDFs with no timestamps or GUIDs so that visually identical PDF documents can be equated as "Equal" in unit tests.
Namespace: IronPdf.Rendering.Abstractions
Assembly: IronPdf.dll
Syntax
public interface IUnitTestable
Properties
GenerateUniqueDocumentIdentifiers
Set to false if you wish to use binary file equality to compare PDFs such as for Unit Tests.
if false, System.Guid is not generated inside PDF DOM (better for unit testing) and BinaryData of two identical PDF files is the same.
If true, System.Guid is generated inside PDF DOM (better for security) and BinaryData of two identical PDF files differs.
Default value is false.
Declaration
bool GenerateUniqueDocumentIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |