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.
This class also implements PrintImageSettings
, allowing you to configure image-specific print 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 allowed values, see Density
.
Declaration
public Density getDensity();
public void setDensity(Density density);
peelLabel
Whether or not to enable peeling. Your printer has to support it.
Declaration
public boolean isPeelLabel();
public void setPeelLabel(boolean peelLabel);
feedDirectionMargins
The margins in the feed direction. Adds the same amount to the top and bottom in the feed direction. The unit is in dots.
Declaration
public int getFeedDirectionMargins();
public void setFeedDirectionMargins(int feedDirectionMargins);
Types
Density
Declaration
public enum Density {
WeakLevel5,
WeakLevel4,
WeakLevel3,
WeakLevel2,
WeakLevel1,
Neutral,
StrongLevel1,
StrongLevel2,
StrongLevel3,
StrongLevel4,
StrongLevel5,
UsePrinterSetting,
}
Deprecates
Deprecated
rotate180degrees
Please use ImageRotation
instead.