Skip to content

PTPrintSettings

Settings to print on PT 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. Therefore, you receive an error if the paper size you set to this object don't correspond with a actual paper size set in your printer

Instance methods

PTPrintSettings

Initialize this class with your printer model.

Declaration

public PTPrintSettings(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 PTPrintSettings copyPrintSettings(PrinterModel printerModel);

Parameters

Name Type Description
printerModel PrinterModel the printer you use

Return Value

An instance of this class.

Properties

labelSize

A label size set in your printer. You need to check/set this value before printing. For allowed values, see LabelSize.

Declaration

public LabelSize getLabelSize();
public void setLabelSize(LabelSize labelSize);

cutmarkPrint

Whether the cutmark-print is enabled or not. If true, your printer prints cutmarks each page.

Declaration

public boolean isCutmarkPrint();
public void setCutmarkPrint(boolean cutmarkPrint);

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);

halfCut

Whether the half-cut is enabled or not. If true, your printer cut the label excluding the sheet.

Declaration

public boolean isHalfCut();
public void setHalfCut(boolean halfCut);

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)

chainPrint

Whether the chain-print is enabled or not. If true, your printer does not feed and cut the last page. This prevent redundant initial feed when your next print operation.

Declaration

public boolean isChainPrint();
public void setChainPrint(boolean chainPrint);

specialTapePrint

Whether the special-tape-print is enabled or not. If true, your printer always does not cut the paper.

Declaration

public boolean isSpecialTapePrint();
public void setSpecialTapePrint(boolean specialTapePrint);

resolution

A resolution of printing. Whether or not this has an effect is depend on your printer. For allowed values, see Resolution.

Declaration

public Resolution getResolution();
public void setResolution(Resolution resolution);

forceVanishingMargin

Whether to force the margin to 0. If true, a command that set the margin 0 will be sent to your printer.

Declaration

public boolean isForceVanishingMargin();
public void setForceVanishingMargin(boolean forceVanishingMargin);

Types

LabelSize

Declaration

public enum LabelSize {
    Width3_5mm,
    Width6mm,
    Width9mm,
    Width12mm,
    Width18mm,
    Width24mm,
    Width36mm,
    WidthHS_5_8mm,
    WidthHS_8_8mm,
    WidthHS_11_7mm,
    WidthHS_17_7mm,
    WidthHS_23_6mm,
    WidthFL_21x45mm,
    WidthHS_5_2mm,
    WidthHS_9_0mm,
    WidthHS_11_2mm,
    WidthHS_21_0mm,
    WidthHS_31_0mm,
}