Skip to content

PJPaperSize

A class to set custom paper size for PJ series.

Overview

PJ series supports printing on standard size papers and other papers. For printing on the non fixed size papers, see PJCustomPaperSize.

Instance methods

newPaperSize

Initialize this object with a standard paper size. For allowed values, see PaperSize.

Declaration

public static PJPaperSize newPaperSize(PaperSize paperSize);

Parameters

Name Type Description
paperSize PaperSize Standard paper size

newCustomPaper

Initialize this object with a custom paper size. For allowed values, see PJCustomPaperSize.

Declaration

public static PJPaperSize newCustomPaper(PJCustomPaperSize customPaperSize);

Parameters

Name Type Description
customPaperSize PJCustomPaperSize a custom paper size class

Properties

paperSize

A standard paper size you set.

Declaration

public PaperSize getPaperSize();

customPaper

A custom paper size you created. For detail, see PJCustomPaperSize

Declaration

public PJCustomPaperSize getCustomPaperSize();

Types

PaperSize

Declaration

public enum PaperSize {
    A4,
    Legal,
    Letter,
    A5,
    A5_Landscape,
    Custom,
};