RJPrintSettings

Settings to print on RJ series.

Overview

You use this object to set parameters to your printer such as a paper size. The images or PDFs you passed to print functions in PrinterDriver are converted to printable data for specified printer by using this settings.

Instance methods

RJPrintSettings

Initialize this class with your printer model.

Declaration

public RJPrintSettings(PrinterModel printerModel);

Parameters

Name Type Description
printerModel PrinterModel the printer you use

Return Value

An instance of this class.

copyPrintSettings

Create a new instance with new printer model.

Declaration

public RJPrintSettings copyPrintSettings(PrinterModel printerModel);

Parameters

Name Type Description
printerModel PrinterModel the printer you use

Return Value

An instance of this class.

Properties

customPaperSize

A paper size in your printer. For detail, see CustomPaperSize.

Declaration

public CustomPaperSize getCustomPaperSize();
public void setCustomPaperSize(CustomPaperSize customPaperSize);

density

Density set to your printer. Default value is UsePrinterSetting. For the value set, see Density.

Declaration

public Density getDensity();
public void setDensity(Density density);

rotate180degrees

Whether or not print the data with rotating 180 degrees. Default value is false.

Declaration

public boolean isRotate180degrees();
public void setRotate180degrees(boolean rotate180degrees);

peelLabel

Whether or not to enable peeling. Your printer has to support it.

Declaration

public boolean isPeelLabel();
public void setPeelLabel(boolean peelLabel);

Types

Density

Declaration

public enum Density {
    WeakLevel5,
    WeakLevel4,
    WeakLevel3,
    WeakLevel2,
    WeakLevel1,
    Neutral,
    StrongLevel1,
    StrongLevel2,
    StrongLevel3,
    StrongLevel4,
    StrongLevel5,
    UsePrinterSetting,
}