com.lowagie.text.pdf

Class PdfImportedPage

public class PdfImportedPage extends PdfTemplate

Represents an imported page.

Author: Paulo Soares (psoares@consiste.pt)

Field Summary
intpageNumber
PdfReaderInstancereaderInstance
Constructor Summary
PdfImportedPage(PdfReaderInstance readerInstance, PdfWriter writer, int pageNumber)
Method Summary
voidaddImage(Image image, float a, float b, float c, float d, float e, float f)
Always throws an error.
voidaddTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f)
Always throws an error.
PdfContentBytegetDuplicate()
Always throws an error.
PdfStreamgetFormXObject(int compressionLevel)
Gets the stream representing this page.
PdfImportedPagegetFromReader()
Reads the content from this PdfImportedPage-object from a reader.
intgetPageNumber()
PdfReaderInstancegetPdfReaderInstance()
PdfObjectgetResources()
voidsetColorFill(PdfSpotColor sp, float tint)
voidsetColorStroke(PdfSpotColor sp, float tint)
voidsetFontAndSize(BaseFont bf, float size)
Always throws an error.
voidthrowError()

Field Detail

pageNumber

int pageNumber

readerInstance

PdfReaderInstance readerInstance

Constructor Detail

PdfImportedPage

PdfImportedPage(PdfReaderInstance readerInstance, PdfWriter writer, int pageNumber)

Method Detail

addImage

public void addImage(Image image, float a, float b, float c, float d, float e, float f)
Always throws an error. This operation is not allowed.

Parameters: image dummy a dummy b dummy c dummy d dummy e dummy f dummy

Throws: DocumentException dummy

addTemplate

public void addTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f)
Always throws an error. This operation is not allowed.

Parameters: template dummy a dummy b dummy c dummy d dummy e dummy f dummy

getDuplicate

public PdfContentByte getDuplicate()
Always throws an error. This operation is not allowed.

Returns: dummy

getFormXObject

PdfStream getFormXObject(int compressionLevel)
Gets the stream representing this page.

Parameters: compressionLevel the compressionLevel

Returns: the stream representing this page

Since: 2.1.3 (replacing the method without param compressionLevel)

getFromReader

public PdfImportedPage getFromReader()
Reads the content from this PdfImportedPage-object from a reader.

Returns: self

getPageNumber

public int getPageNumber()

getPdfReaderInstance

PdfReaderInstance getPdfReaderInstance()

getResources

PdfObject getResources()

setColorFill

public void setColorFill(PdfSpotColor sp, float tint)

setColorStroke

public void setColorStroke(PdfSpotColor sp, float tint)

setFontAndSize

public void setFontAndSize(BaseFont bf, float size)
Always throws an error. This operation is not allowed.

Parameters: bf dummy size dummy

throwError

void throwError()