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.

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 the value set, 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)

Types

Density

Print density for TD series.

Declaration

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