CustomPrintEventArgs

Inheritance: java.lang.Object, com.aspose.ms.System.EventArgs

public class CustomPrintEventArgs extends System.EventArgs

Provides data for the PdfViewer.getCustomPrintDelegate() event.

Constructors

ConstructorDescription
CustomPrintEventArgs(String fileName, PdfPrinterSettings printerSettings, PrintPageSettings pageSettings)Initializes CustomPrintEventArgs with the given printer and page settings.

Fields

FieldDescription
FileNameGets the name of the file that is being printed.
PrinterSettingsGets information about the printer the document should be printed on.
PageSettingsGets settings that should be applied to each page of the document.

CustomPrintEventArgs(String fileName, PdfPrinterSettings printerSettings, PrintPageSettings pageSettings)

public CustomPrintEventArgs(String fileName, PdfPrinterSettings printerSettings, PrintPageSettings pageSettings)

Initializes CustomPrintEventArgs with the given printer and page settings.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName of the file that is being printed.
printerSettingsPdfPrinterSettingsInformation about the printer the document should be printed on.
pageSettingsPrintPageSettingsSettings that should be applied to each page of the document.

FileName

public final String FileName

Gets the name of the file that is being printed.

PrinterSettings

public final PdfPrinterSettings PrinterSettings

Gets information about the printer the document should be printed on.

PageSettings

public final PrintPageSettings PageSettings

Gets settings that should be applied to each page of the document.