ValidatePrintSettings

Validate your print settings.

Overview

You can use this class to validate print settings you set before printing on your printer. As a result of the validation, ValidatePrintSettingsReport is returned. It has issues that are ranked as Error/Warning/Notice and has a message to resolve it. For details, see ValidatePrintSettingsIssue.

Rank

Rank Description
Error This library can't print with the print settings.
Warning This library can print with the print settings. But it includes unsupported settings. These settings will be modified in the library.
Notice This library can print with the print settings. But it may includes useless settings.

Class methods

validate

Declaration

public static ValidatePrintSettingsReport validate(PrintSettings printSettings);

Parameters

Name Type Description
printSettings PrintSettings Print settings you want to validate. For example PTPrintSettings, TDPrintSettings, and so on.

Return Value

See ValidatePrintSettingsReport.

Types

ValidatePrintSettingsIssue::Rank

Declaration

public enum Rank {
    Error,
    Warning,
    Notice,
}