Search Results for

    Show / Hide Table of Contents

    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
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.