Skip to content

PJPrintSettings

Settings to print on PJ 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

PJPrintSettings

Initialize this class with your printer model.

Declaration

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

Parameters

Name Type Description
printerModel PrinterModel the printer you use

Return Value

An instance of this class.

Properties

paperSize

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

Declaration

public PJPaperSize getPaperSize();
public void setPaperSize(PJPaperSize paperSize);

paperType

A type of paper set in your printer. For allowed values, see PaperType.

Declaration

public PaperType getPaperType();
public void setPaperType(PaperType paperType);

paperInsertionPosition

A position to set papers. For allowed values, see PaperInsertionPosition.

Declaration

public PaperInsertionPosition getPaperInsertionPosition();
public void setPaperInsertionPosition(PaperInsertionPosition paperInsertionPosition);

feedMode

A mode of paper feed after printing data. For allowed values, see FeedMode.

Declaration

public FeedMode getFeedMode();
public void setFeedMode(FeedMode feedMode);

density

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

Declaration

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

rollCase

Specifies the PJ-7xx roll case configuration, which tells the printer how far to feed the paper to position it for tearing off. For allowed values, see RollCase.

Declaration

public RollCase getRollCase();
public void setRollCase(RollCase rollCase);

printSpeed

The speed for a printer of the PJ-7xx series. For allowed values, see PrintSpeed.

Declaration

public PrintSpeed getPrintSpeed();
public void setPrintSpeed(PrintSpeed printSpeed);

usingCarbonCopyPaper

Whether the carbon copy is enabled or not.

Declaration

public boolean isUsingCarbonCopyPaper();
public void setUsingCarbonCopyPaper(boolean usingCarbonCopyPaper);

printDashLine

Whether print-dash-line is enabled or not.

Declaration

public boolean isPrintDashLine();
public void setPrintDashLine(boolean printDashLine);

forceStretchPrintableArea

Extend the printing area in the bottom direction. Default is 0. Negative values cannot be set. If you use this property, the bottom part of the document may not be printed.

Declaration

public int getForceStretchPrintableArea()
public void setForceStretchPrintableArea(int forceStretchPrintableArea)

extraFeedDots

The feed amount after printing for PJ series. The value is by dot.

Declaration

public int getExtraFeedDots()
public void setExtraFeedDots(int extraFeedDots)

Types

PrintSpeed

Deprecated Instead
Speed2_5inchPerSec HighSpeed
Speed1_9inchPerSec MediumHighSpeed
Speed1_6inchPerSec MediumLowSpeed
Speed1_1inchPerSec LowSpeed

Declaration

public enum PrintSpeed {
    HighSpeed,
    MediumHighSpeed,
    MediumLowSpeed,
    LowSpeed,
    Fast_DraftQuality,      //PJ-8xx seriese
    Fast_LineConversion,    //PJ-8xx seriese
    UsePrinterSetting,
    Speed_2_5inchPerSec,    //Deprecated
    Speed_1_9inchPerSec,    //Deprecated
    Speed_1_6inchPerSec,    //Deprecated
    Speed_1_1inchPerSec,    //Deprecated
}

Density

Declaration

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

FeedMode

Declaration

public enum FeedMode {
    NoFeed,
    FixedPage,
    EndOfPage,
    EndOfPageRetract,
}

PaperInsertionPosition

Declaration

public enum PaperInsertionPosition {
    Left,
    Center,
    Right,
}

PaperType

Declaration

public enum PaperType {
    Roll,
    CutSheet,
}

RollCase

Declaration

public enum RollCase {
    None,               // No roll case is used
    PARC001_NoAntiCurl, // Roll case without anti curl
    PARC001,            // Roll case with anti curl
    PARC001_ShortFeed,  // Set short feed mode
    KeepPrinterSetting, // Keep printer setting
}