TDPrintSettings
Settings to print on TD 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
TDPrintSettings
Initialize this class with your printer model.
Declaration
public TDPrintSettings(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 TDPrintSettings 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);
autoCut
Whether the auto-cut is enabled or not. If true
, your printer cut the paper each page.
Declaration
public boolean isAutoCut();
public void setAutoCut(boolean autoCut);
cutAtEnd
Whether the cut at the end of last page of your printing is enabled or not. If true
, printer cut the end of the label.
Declaration
public boolean isCutAtEnd();
public void setCutAtEnd(boolean cutAtEnd);
autoCutForEachPageCount
A number of pages to cut. Default value is 1. If set 1, printer cut the paper each print a page. If set 3, printer cut the paper every print three pages.
This value is effective when autoCut
is YES
.
Declaration
public int getAutoCutForEachPageCount()
public void setAutoCutForEachPageCount(int autoCutForEachPageCount)
customRecord
A printer records this value with print job when print function works with no error.
The printer must support the custom record function.
Multi-byte characters are not supported. It should be within 64 characters.
Declaration
public String getCustomRecord()
public void setCustomRecord(String customRecord)
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
Print density for TD series.
Declaration
public enum Density {
WeakLevel5,
WeakLevel4,
WeakLevel3,
WeakLevel2,
WeakLevel1,
Neutral,
StrongLevel1,
StrongLevel2,
StrongLevel3,
StrongLevel4,
StrongLevel5,
UsePrinterSetting,
}