Skip to main content

PDF

Recurso de exportação de ficheiros PDF. Este recurso permite criar e exportar um ficheiro PDF, utiliza a biblioteca iText para gerar os PDFs


areaBreak


_pdf.areaBreak() : com.itextpdf.layout.element.AreaBreak

Description

Creates an AreaBreak that terminates a previous area type.

Return

( com.itextpdf.layout.element.AreaBreak )

Terminates the previous area and returns a new one.


_pdf.areaBreak(pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.element.AreaBreak

Description

Creates an AreaBreak that terminates a previous area type.

Attributes
NAMETYPEDESCRIPTION
pageSizecom.itextpdf.kernel.geom.PageSizeSize of the new content.
Return

( com.itextpdf.layout.element.AreaBreak )

Terminates the previous area and returns a new one.


_pdf.areaBreak(type: string) : com.itextpdf.layout.element.AreaBreak

Description

Creates an AreaBreak that terminates a previous area type.

Attributes
NAMETYPEDESCRIPTION
typestringType of the new area.
Return

( com.itextpdf.layout.element.AreaBreak )

Terminates the previous area and returns a new one.


border


_pdf.border(border: string) : com.itextpdf.layout.borders.Border

Description

Creates a border type.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
Return

( com.itextpdf.layout.borders.Border )

Returns a border width of the type inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacityfloat
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacityint
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a customized border with type, color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns the created customized border.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type, color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, color, width and opacity inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacityfloat
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacityint
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, width: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border width of the type inserted,coloured black and the width inserted.


_pdf.border(border: string, width: double, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: double, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, color: double, width: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colordoubleBorder color.
widthintBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, width and color inserted.


_pdf.border(border: string, width: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border width of the type inserted,coloured black and the width inserted.


_pdf.border(border: string, width: float, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: float, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: float, opacity: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
Return

( com.itextpdf.layout.borders.Border )

Returns a border width of the type inserted,coloured black and the width inserted.


_pdf.border(border: string, width: int, opacity: double) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: int, opacity: float) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


_pdf.border(border: string, width: int, opacity: int) : com.itextpdf.layout.borders.Border

Description

Creates a border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border )

Returns a border type, the width and opacity inserted, coloured black.


border3D


_pdf.border3D(border: string) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacityfloat
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: double, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthdoubleBorder width.
opacityint
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a customized 3D border with type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns the created customized 3D border.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: float, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthfloatBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, color, width and opacity inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacitydouble
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacityfloat
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width inserted.


_pdf.border3D(border: string, color: com.itextpdf.kernel.colors.Color, width: int, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
colorcom.itextpdf.kernel.colors.ColorBorder color.
widthintBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type,color,width and opacity inserted.


_pdf.border3D(border: string, width: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a border type 3D with a inserted width.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border width of the type inserted,coloured black and the width inserted.


_pdf.border3D(border: string, width: double, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: double, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: double, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthdoubleBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a border type 3D with a inserted width.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border width of the type inserted,coloured black and the width inserted.


_pdf.border3D(border: string, width: float, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: float, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: float, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthfloatBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a border type 3D.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthint
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border width of the type inserted,coloured black.


_pdf.border3D(border: string, width: int, opacity: double) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacitydoubleBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: int, opacity: float) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacityfloatBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


_pdf.border3D(border: string, width: int, opacity: int) : com.itextpdf.layout.borders.Border3D

Description

Creates a 3D border type with a inserted width and opacity.

Attributes
NAMETYPEDESCRIPTION
borderstringBorder type.
widthintBorder width.
opacityintBorder opacity.
Return

( com.itextpdf.layout.borders.Border3D )

Returns a 3D border type, the width and opacity inserted, coloured black.


canvas


_pdf.canvas(doc: com.itextpdf.kernel.pdf.PdfDocument, pageNum: int) : com.itextpdf.kernel.pdf.canvas.PdfCanvas

Description

Creates an rectangular text area.

Attributes
NAMETYPEDESCRIPTION
doccom.itextpdf.kernel.pdf.PdfDocument
pageNumint
Return

( com.itextpdf.kernel.pdf.canvas.PdfCanvas )


_pdf.canvas(page: com.itextpdf.kernel.pdf.PdfPage) : com.itextpdf.kernel.pdf.canvas.PdfCanvas

Description

Creates an rectangular text area.

Attributes
NAMETYPEDESCRIPTION
pagecom.itextpdf.kernel.pdf.PdfPage
Return

( com.itextpdf.kernel.pdf.canvas.PdfCanvas )


cell


_pdf.cell() : com.itextpdf.layout.element.Cell

Description

Creates a new table cell.

Return

( com.itextpdf.layout.element.Cell )

Returns the created cell.


_pdf.cell(rowspan: int, colspan: int) : com.itextpdf.layout.element.Cell

Description

Creates a new table cell with rowspan or colspan.

Attributes
NAMETYPEDESCRIPTION
rowspanintNumber of rowspan.
colspanintNumber of colspan.
Return

( com.itextpdf.layout.element.Cell )

Returns the created cell.


color


_pdf.color(color: string) : com.itextpdf.kernel.colors.Color

Attributes
NAMETYPEDESCRIPTION
colorstring
Return

( com.itextpdf.kernel.colors.Color )


colorCMYK


_pdf.colorCMYK(cyan: double, magenta: double, yellow: double, black: double) : com.itextpdf.kernel.colors.DeviceCmyk

Attributes
NAMETYPEDESCRIPTION
cyandouble
magentadouble
yellowdouble
blackdouble
Return

( com.itextpdf.kernel.colors.DeviceCmyk )


_pdf.colorCMYK(cyan: float, magenta: float, yellow: float, black: float) : com.itextpdf.kernel.colors.DeviceCmyk

Attributes
NAMETYPEDESCRIPTION
cyanfloat
magentafloat
yellowfloat
blackfloat
Return

( com.itextpdf.kernel.colors.DeviceCmyk )


_pdf.colorCMYK(cyan: int, magenta: int, yellow: int, black: int) : com.itextpdf.kernel.colors.DeviceCmyk

Attributes
NAMETYPEDESCRIPTION
cyanint
magentaint
yellowint
blackint
Return

( com.itextpdf.kernel.colors.DeviceCmyk )


colorGray


_pdf.colorGray(value: double) : com.itextpdf.kernel.colors.DeviceGray

Attributes
NAMETYPEDESCRIPTION
valuedouble
Return

( com.itextpdf.kernel.colors.DeviceGray )


_pdf.colorGray(value: float) : com.itextpdf.kernel.colors.DeviceGray

Attributes
NAMETYPEDESCRIPTION
valuefloat
Return

( com.itextpdf.kernel.colors.DeviceGray )


_pdf.colorGray(value: int) : com.itextpdf.kernel.colors.DeviceGray

Attributes
NAMETYPEDESCRIPTION
valueint
Return

( com.itextpdf.kernel.colors.DeviceGray )


colorRGB


_pdf.colorRGB(red: double, green: double, blue: double) : com.itextpdf.kernel.colors.DeviceRgb

Attributes
NAMETYPEDESCRIPTION
reddouble
greendouble
bluedouble
Return

( com.itextpdf.kernel.colors.DeviceRgb )


_pdf.colorRGB(red: float, green: float, blue: float) : com.itextpdf.kernel.colors.DeviceRgb

Attributes
NAMETYPEDESCRIPTION
redfloat
greenfloat
bluefloat
Return

( com.itextpdf.kernel.colors.DeviceRgb )


_pdf.colorRGB(red: int, green: int, blue: int) : com.itextpdf.kernel.colors.DeviceRgb

Attributes
NAMETYPEDESCRIPTION
redint
greenint
blueint
Return

( com.itextpdf.kernel.colors.DeviceRgb )


extract


_pdf.extract(content: InputStream) : Values

Description

Extracts the content of PDF's.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to be extracted.
Return

( Values )

Returns the extracted content.


_pdf.extract(storage: Storage | File) : Values

Description

Extracts the content of PDFs.

Attributes
NAMETYPEDESCRIPTION
storageStorage | FileCaminho do armazenamento.
Return

( Values )

Returns the extracted content.


_pdf.extract(content: InputStream) : Values

Description

Extracts the content of PDF's.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to be extracted.
Return

( Values )

Returns the extracted content.


font


_pdf.font(storage: string) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storagestringStorage path.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: File) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageFileStorage path.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: File, encoding: boolean) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageFileStorage path.
encodingbooleanFont encoding.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: File, encoding: string) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageFileStorage path.
encodingstringFont encoding.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: File, encoding: string, embedded: boolean) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageFileStorage path.
encodingstringFont encoding.
embeddedboolean
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: Storage) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage path.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: Storage, encoding: boolean) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage path.
encodingbooleanFont encoding.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: Storage, encoding: string) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage path.
encodingstringFont encoding.
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


_pdf.font(storage: Storage, encoding: string, embedded: boolean) : com.itextpdf.kernel.font.PdfFont

Description

Creates a font.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage path.
encodingstringFont encoding.
embeddedboolean
Return

( com.itextpdf.kernel.font.PdfFont )

Returns the created font.


getDocument


_pdf.getDocument() : com.itextpdf.layout.Document

Description

Obtém o objecto Document do iText para a estrutura do documento PDF.

Return

( com.itextpdf.layout.Document )

Gere a estrutura do documento.


getPdfDocument


_pdf.getPdfDocument() : com.itextpdf.kernel.pdf.PdfDocument

Description

Gets the PdfDocument object of the iText to build the PDf document.

Return

( com.itextpdf.kernel.pdf.PdfDocument )

Manage the PDF document build.


getPdfReader


_pdf.getPdfReader() : com.itextpdf.kernel.pdf.PdfReader

Description

Gets the PdfReader object of the iText to read the PDF document.

Return

( com.itextpdf.kernel.pdf.PdfReader )

Manage the PDF document read.


getPdfWriter


_pdf.getPdfWriter() : com.itextpdf.kernel.pdf.PdfWriter

Description

Gets the PdfWriter object of the iText to bytes write in the PDF file.

Return

( com.itextpdf.kernel.pdf.PdfWriter )

Manage the bytes write in the PDF file.


image


_pdf.image(file: File) : com.itextpdf.layout.element.Image

Attributes
NAMETYPEDESCRIPTION
fileFile
Return

( com.itextpdf.layout.element.Image )


_pdf.image(storage: Storage) : com.itextpdf.layout.element.Image

Attributes
NAMETYPEDESCRIPTION
storageStorage
Return

( com.itextpdf.layout.element.Image )


init


_pdf.init() : PDF

Description

Creates a new resource object to build PDFs.

How To Use
const pdf = _pdf.init();
Return

( PDF )

New instance of the PDF resource.


line


_pdf.line(type: string, color: com.itextpdf.kernel.colors.Color, width: double) : com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer

Description

Creates a customized border with type,color, width and opacity inserted.

Attributes
NAMETYPEDESCRIPTION
typestringLine type.
colorcom.itextpdf.kernel.colors.ColorLine color.
widthdoubleLine width.
Return

( com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer )

Returns the created customized border.


_pdf.line(type: string, color: com.itextpdf.kernel.colors.Color, width: float) : com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer

Description

Creates a customized line with type,color, width inserted.

Attributes
NAMETYPEDESCRIPTION
typestringLine type.
colorcom.itextpdf.kernel.colors.ColorLine color.
widthfloatLine width.
Return

( com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer )

Returns the created customized line.


_pdf.line(line: string, color: com.itextpdf.kernel.colors.Color, width: int) : com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer

Description

Creates a line type with color and width inserted.

Attributes
NAMETYPEDESCRIPTION
linestringLine type.
colorcom.itextpdf.kernel.colors.ColorLine color.
widthintLine width.
Return

( com.itextpdf.kernel.pdf.canvas.draw.ILineDrawer )

Returns the line type, color and width inserted.


newDocument


_pdf.newDocument() : com.itextpdf.layout.Document

Description

Cria um novo documento.

Return

( com.itextpdf.layout.Document )


_pdf.newDocument(pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document

Description

Creates a PDF document with specific page size.

Attributes
NAMETYPEDESCRIPTION
pageSizecom.itextpdf.kernel.geom.PageSizePage size.
Return

( com.itextpdf.layout.Document )

Returns PDF document with the page size defined.


_pdf.newDocument(out: OutputStream) : com.itextpdf.layout.Document

Description

Creates a new PDF document with A4 page size.

Attributes
NAMETYPEDESCRIPTION
outOutputStream
Return

( com.itextpdf.layout.Document )

Returns PDF document with the page size A4.


_pdf.newDocument(out: OutputStream, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document

Description

Creates a PDF document with specific page size.

Attributes
NAMETYPEDESCRIPTION
outOutputStreamFile path.
pageSizecom.itextpdf.kernel.geom.PageSizePage size.
Return

( com.itextpdf.layout.Document )

Returns PDF document with the page size defined.


_pdf.newDocument(out: Storage | File, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document

Description

Creates a PDF document with specific page size.

Attributes
NAMETYPEDESCRIPTION
outStorage | FileFile path.
pageSizecom.itextpdf.kernel.geom.PageSizePage size.
Return

( com.itextpdf.layout.Document )

Returns PDF document with the page size defined.


openDocument


_pdf.openDocument(path: InputStream) : com.itextpdf.layout.Document

Description

Opens a PDF documment corresponding to the inserted path.

Attributes
NAMETYPEDESCRIPTION
pathInputStreamFile path.
Return

( com.itextpdf.layout.Document )

Returns PDF document openned.


_pdf.openDocument(in: InputStream, out: OutputStream) : com.itextpdf.layout.Document

Attributes
NAMETYPEDESCRIPTION
inInputStream
outOutputStream
Return

( com.itextpdf.layout.Document )


_pdf.openDocument(in: InputStream, out: Storage | File) : com.itextpdf.layout.Document

Attributes
NAMETYPEDESCRIPTION
inInputStream
outStorage | File
Return

( com.itextpdf.layout.Document )


_pdf.openDocument(path: Storage | File) : com.itextpdf.layout.Document

Description

Opens a PDF documment corresponding to the inserted path.

Attributes
NAMETYPEDESCRIPTION
pathStorage | FileFile path.
Return

( com.itextpdf.layout.Document )

Returns PDF document openned.


_pdf.openDocument(in: Storage | File, out: OutputStream) : com.itextpdf.layout.Document

Attributes
NAMETYPEDESCRIPTION
inStorage | File
outOutputStream
Return

( com.itextpdf.layout.Document )


_pdf.openDocument(in: Storage | File, out: Storage | File) : com.itextpdf.layout.Document

Attributes
NAMETYPEDESCRIPTION
inStorage | File
outStorage | File
Return

( com.itextpdf.layout.Document )


pageSize


_pdf.pageSize(width: float, height: float) : com.itextpdf.kernel.geom.PageSize

Description

Gets the page size definition from the width and height.

Attributes
NAMETYPEDESCRIPTION
widthfloatWidth of the page.
heightfloatHeight of the page.
Return

( com.itextpdf.kernel.geom.PageSize )

Page Definition.


_pdf.pageSize(page: string) : com.itextpdf.kernel.geom.PageSize

Description

Gets page size definition, pages codes supported:

  • A0
  • A1
  • A2
  • A3
  • A4
  • A5
  • A6
  • A7
  • A8
  • A9
  • A10
  • B0
  • B1
  • B2
  • B3
  • B4
  • B5
  • B6
  • B7
  • B8
  • B9
  • B10
  • default
  • executive
  • ledger
  • legal
  • letter
  • tabloid

Attributes
NAMETYPEDESCRIPTION
pagestringPage type code.
Return

( com.itextpdf.kernel.geom.PageSize )


paragraph


_pdf.paragraph(text: string) : com.itextpdf.layout.element.Paragraph

Description

Creates a paragraph.

Attributes
NAMETYPEDESCRIPTION
textstring
Return

( com.itextpdf.layout.element.Paragraph )


setDocument


_pdf.setDocument(document: com.itextpdf.layout.Document) : PDF

Description

Sets the PDF document object of the iText.

Attributes
NAMETYPEDESCRIPTION
documentcom.itextpdf.layout.DocumentDocument object of the iText.
Return

( PDF )

The current instance of the PDF resource.


table


_pdf.table(columns: double[]) : com.itextpdf.layout.element.Table

Description

Creates a new table.

Attributes
NAMETYPEDESCRIPTION
columnsdouble[]Columns number.
Return

( com.itextpdf.layout.element.Table )

Returns the created table.


_pdf.table(columnWidth: double[], largeTable: boolean) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthdouble[]List of widths of each table column.
largeTablebooleanDefine as large table.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columns: float[]) : com.itextpdf.layout.element.Table

Description

Creates a new table.

Attributes
NAMETYPEDESCRIPTION
columnsfloat[]Columns number.
Return

( com.itextpdf.layout.element.Table )

Returns the created table.


_pdf.table(columnWidth: float[], largeTable: boolean) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthfloat[]List of widths of each table column.
largeTablebooleanDefine as large table.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columns: int[]) : com.itextpdf.layout.element.Table

Description

Creates a new table.

Attributes
NAMETYPEDESCRIPTION
columnsint[]Columns number.
Return

( com.itextpdf.layout.element.Table )

Returns the created table.


_pdf.table(columnWidth: int[], largeTable: boolean) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthint[]List of widths of each table column.
largeTablebooleanDefine as large table.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columns: int) : com.itextpdf.layout.element.Table

Description

Creates a new table.

Attributes
NAMETYPEDESCRIPTION
columnsintColumns number.
Return

( com.itextpdf.layout.element.Table )

Returns the created table.


_pdf.table(columnWidth: java.util.List) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthjava.util.ListList of widths of each table column.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columnWidth: java.util.List, largeTable: boolean) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthjava.util.ListList of widths of each table column.
largeTablebooleanDefine as large table.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columnWidth: Values) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthValuesList of widths of each table column.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


_pdf.table(columnWidth: Values, largeTable: boolean) : com.itextpdf.layout.element.Table

Description

Creates a table with the columns width defined.

Attributes
NAMETYPEDESCRIPTION
columnWidthValuesList of widths of each table column.
largeTablebooleanDefine as large table.
Return

( com.itextpdf.layout.element.Table )

Returns a table with the columns width has been defined.


text


_pdf.text(content: string) : com.itextpdf.layout.element.Text

Description

Creates new text with the inserted text.

Attributes
NAMETYPEDESCRIPTION
contentstringContent to be created.
Return

( com.itextpdf.layout.element.Text )

Returns the text content.


toHTML


_pdf.toHTML(content: InputStream) : string

Description

Converts the inserted content to HTML.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to HTML.
Return

( string )

Returns the Html.


_pdf.toHTML(content: File) : string

Description

Converts the inserted content to HTML.

Attributes
NAMETYPEDESCRIPTION
contentFileContent to HTML.
Return

( string )

Returns the Html.


_pdf.toHTML(content: InputStream) : string

Description

Converts the inserted content to HTML.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to HTML.
Return

( string )

Returns the Html.


_pdf.toHTML(content: Storage) : string

Description

Converts the inserted content to HTML.

Attributes
NAMETYPEDESCRIPTION
contentStorageContent to HTML.
Return

( string )

Returns the Html.


toText


_pdf.toText(content: InputStream) : string

Description

Converts to text the inserted content.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to text.
Return

( string )

Returns the Html.


_pdf.toText(content: File) : string

Description

Converts to text the inserted content.

Attributes
NAMETYPEDESCRIPTION
contentFileContent to text.
Return

( string )

Returns the Html.


_pdf.toText(content: InputStream) : string

Description

Converts to text the inserted content.

Attributes
NAMETYPEDESCRIPTION
contentInputStreamContent to text.
Return

( string )

Returns the Html.


_pdf.toText(content: Storage) : string

Description

Converts to text the inserted content.

Attributes
NAMETYPEDESCRIPTION
contentStorageContent to text.
Return

( string )

Returns the Html.