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
NAME | TYPE | DESCRIPTION |
---|---|---|
pageSize | com.itextpdf.kernel.geom.PageSize | Size 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
NAME | TYPE | DESCRIPTION |
---|---|---|
type | string | Type 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | float |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | int |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | float |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | int |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | double | Border color. |
width | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | float |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | double | Border width. |
opacity | int |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | float | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | double |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | float |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
color | com.itextpdf.kernel.colors.Color | Border color. |
width | int | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | double | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | float | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | double | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | float | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
border | string | Border type. |
width | int | Border width. |
opacity | int | Border 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
NAME | TYPE | DESCRIPTION |
---|---|---|
doc | com.itextpdf.kernel.pdf.PdfDocument | |
pageNum | int |
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
NAME | TYPE | DESCRIPTION |
---|---|---|
page | com.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
NAME | TYPE | DESCRIPTION |
---|---|---|
rowspan | int | Number of rowspan. |
colspan | int | Number of colspan. |
Return
( com.itextpdf.layout.element.Cell )
Returns the created cell.
color
_pdf.color(color: string) : com.itextpdf.kernel.colors.Color
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
color | string |
Return
( com.itextpdf.kernel.colors.Color )
colorCMYK
_pdf.colorCMYK(cyan: double, magenta: double, yellow: double, black: double) : com.itextpdf.kernel.colors.DeviceCmyk
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
cyan | double | |
magenta | double | |
yellow | double | |
black | double |
Return
( com.itextpdf.kernel.colors.DeviceCmyk )
_pdf.colorCMYK(cyan: float, magenta: float, yellow: float, black: float) : com.itextpdf.kernel.colors.DeviceCmyk
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
cyan | float | |
magenta | float | |
yellow | float | |
black | float |
Return
( com.itextpdf.kernel.colors.DeviceCmyk )
_pdf.colorCMYK(cyan: int, magenta: int, yellow: int, black: int) : com.itextpdf.kernel.colors.DeviceCmyk
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
cyan | int | |
magenta | int | |
yellow | int | |
black | int |
Return
( com.itextpdf.kernel.colors.DeviceCmyk )
colorGray
_pdf.colorGray(value: double) : com.itextpdf.kernel.colors.DeviceGray
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
value | double |
Return
( com.itextpdf.kernel.colors.DeviceGray )
_pdf.colorGray(value: float) : com.itextpdf.kernel.colors.DeviceGray
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
value | float |
Return
( com.itextpdf.kernel.colors.DeviceGray )
_pdf.colorGray(value: int) : com.itextpdf.kernel.colors.DeviceGray
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
value | int |
Return
( com.itextpdf.kernel.colors.DeviceGray )
colorRGB
_pdf.colorRGB(red: double, green: double, blue: double) : com.itextpdf.kernel.colors.DeviceRgb
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
red | double | |
green | double | |
blue | double |
Return
( com.itextpdf.kernel.colors.DeviceRgb )
_pdf.colorRGB(red: float, green: float, blue: float) : com.itextpdf.kernel.colors.DeviceRgb
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
red | float | |
green | float | |
blue | float |
Return
( com.itextpdf.kernel.colors.DeviceRgb )
_pdf.colorRGB(red: int, green: int, blue: int) : com.itextpdf.kernel.colors.DeviceRgb
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
red | int | |
green | int | |
blue | int |
Return
( com.itextpdf.kernel.colors.DeviceRgb )
extract
_pdf.extract(content: java.io.InputStream) : Values
Description
Extracts the content of PDF's.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | java.io.InputStream | Content to be extracted. |
Return
( Values )
Returns the extracted content.
_pdf.extract(content: File) : Values
Description
Extracts the content of PDF's.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | File | Content to be extracted. |
Return
( Values )
Returns the extracted content.
_pdf.extract(content: InputStream) : Values
Description
Extracts the content of PDF's.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | InputStream | Content to be extracted. |
Return
( Values )
Returns the extracted content.
_pdf.extract(storage: Storage) : Values
Description
Extracts the content of PDFs.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | Caminho do armazenamento. |
Return
( Values )
Returns the extracted content.
font
_pdf.font(storage: string) : com.itextpdf.kernel.font.PdfFont
Description
Creates a font.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | string | Storage 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | Storage 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | Storage path. |
encoding | boolean | Font 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | Storage path. |
encoding | string | Font 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | Storage path. |
encoding | string | Font encoding. |
embedded | boolean |
Return
( com.itextpdf.kernel.font.PdfFont )
Returns the created font.
_pdf.font(storage: Storage) : com.itextpdf.kernel.font.PdfFont
Description
Creates a font.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | Storage 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | Storage path. |
encoding | boolean | Font 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | Storage path. |
encoding | string | Font 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
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | Storage path. |
encoding | string | Font encoding. |
embedded | boolean |
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 )
getPdfDocument
_pdf.getPdfDocument() : com.itextpdf.kernel.pdf.PdfDocument
Description
Obtém o objecto PdfDocument do iText para a construção do documento PDF.
Return
( com.itextpdf.kernel.pdf.PdfDocument )
getPdfReader
_pdf.getPdfReader() : com.itextpdf.kernel.pdf.PdfReader
Description
Obtém o objecto PdfReader do iText para a leitura do documento PDF.
Return
( com.itextpdf.kernel.pdf.PdfReader )
getPdfWriter
_pdf.getPdfWriter() : com.itextpdf.kernel.pdf.PdfWriter
Description
Obtém o objecto PdfWriter do iText para a escrita dos bytes do arquivo PDF.
Return
( com.itextpdf.kernel.pdf.PdfWriter )
image
_pdf.image(file: File) : com.itextpdf.layout.element.Image
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
file | File |
Return
( com.itextpdf.layout.element.Image )
_pdf.image(storage: Storage) : com.itextpdf.layout.element.Image
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage |
Return
( com.itextpdf.layout.element.Image )
init
_pdf.init() : PDF
Description
Cria um novo objeto de recurso para a construção de PDFs.
How To Use
const pdf = _pdf.init();
Return
( PDF )
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
NAME | TYPE | DESCRIPTION |
---|---|---|
type | string | Line type. |
color | com.itextpdf.kernel.colors.Color | Line color. |
width | double | Line 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
NAME | TYPE | DESCRIPTION |
---|---|---|
type | string | Line type. |
color | com.itextpdf.kernel.colors.Color | Line color. |
width | float | Line 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
NAME | TYPE | DESCRIPTION |
---|---|---|
line | string | Line type. |
color | com.itextpdf.kernel.colors.Color | Line color. |
width | int | Line 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 the page size inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
pageSize | com.itextpdf.kernel.geom.PageSize | Page size. |
Return
( com.itextpdf.layout.Document )
Returns PDF document with the page size inserted.
_pdf.newDocument(out: java.io.OutputStream) : com.itextpdf.layout.Document
Description
Creates a new PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | java.io.OutputStream |
Return
( com.itextpdf.layout.Document )
_pdf.newDocument(storage: java.io.OutputStream, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document
Description
Creates a PDF document with the page size inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | java.io.OutputStream | File path. |
pageSize | com.itextpdf.kernel.geom.PageSize | Page size. |
Return
( com.itextpdf.layout.Document )
Returns PDF document with the page size inserted.
_pdf.newDocument(file: File) : com.itextpdf.layout.Document
Description
Creates a new PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
file | File |
Return
( com.itextpdf.layout.Document )
_pdf.newDocument(storage: File, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document
Description
Creates a PDF document with the page size inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | File path. |
pageSize | com.itextpdf.kernel.geom.PageSize | Page size. |
Return
( com.itextpdf.layout.Document )
Returns PDF document with the page size inserted.
_pdf.newDocument(out: OutputStream) : com.itextpdf.layout.Document
Description
Creates a new PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
out | OutputStream |
Return
( com.itextpdf.layout.Document )
_pdf.newDocument(storage: OutputStream, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document
Description
Creates a PDF document with the page size inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | OutputStream | File path. |
pageSize | com.itextpdf.kernel.geom.PageSize | Page size. |
Return
( com.itextpdf.layout.Document )
Returns PDF document with the page size inserted.
_pdf.newDocument(storage: Storage) : com.itextpdf.layout.Document
Description
Creates a new PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage |
Return
( com.itextpdf.layout.Document )
_pdf.newDocument(storage: Storage, pageSize: com.itextpdf.kernel.geom.PageSize) : com.itextpdf.layout.Document
Description
Creates a PDF document with the page size inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | File path. |
pageSize | com.itextpdf.kernel.geom.PageSize | Page size. |
Return
( com.itextpdf.layout.Document )
Returns PDF document with the page size inserted.
newPdfDocument
_pdf.newPdfDocument() : com.itextpdf.kernel.pdf.PdfDocument
Description
Creates a PDF document.
Return
( com.itextpdf.kernel.pdf.PdfDocument )
_pdf.newPdfDocument(storage: java.io.OutputStream) : com.itextpdf.kernel.pdf.PdfDocument
Description
Creates a PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | java.io.OutputStream | File path. |
Return
( com.itextpdf.kernel.pdf.PdfDocument )
_pdf.newPdfDocument(storage: File) : com.itextpdf.kernel.pdf.PdfDocument
Description
Creates a PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | File | File path. |
Return
( com.itextpdf.kernel.pdf.PdfDocument )
_pdf.newPdfDocument(storage: OutputStream) : com.itextpdf.kernel.pdf.PdfDocument
Description
Creates a PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | OutputStream | File path. |
Return
( com.itextpdf.kernel.pdf.PdfDocument )
_pdf.newPdfDocument(storage: Storage) : com.itextpdf.kernel.pdf.PdfDocument
Description
Creates a PDF document.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
storage | Storage | File path. |
Return
( com.itextpdf.kernel.pdf.PdfDocument )
openPdfDocument
_pdf.openPdfDocument(path: string) : com.itextpdf.kernel.pdf.PdfDocument
Description
Opens a PDF documment corresponding to the inserted path.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
path | string | File path. |
Return
( com.itextpdf.kernel.pdf.PdfDocument )
Returns PDF document openned.
pageSize
_pdf.pageSize(width: float, height: float) : com.itextpdf.kernel.geom.PageSize
Description
Obtém a definição do tamanho da página atráves da largura e altura.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
width | float | |
height | float |
Return
( com.itextpdf.kernel.geom.PageSize )
_pdf.pageSize(page: string) : com.itextpdf.kernel.geom.PageSize
Description
Obtém a definição do tamanho de página, suporta:
- 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
NAME | TYPE | DESCRIPTION |
---|---|---|
page | string |
Return
( com.itextpdf.kernel.geom.PageSize )
paragraph
_pdf.paragraph(text: string) : com.itextpdf.layout.element.Paragraph
Description
Creates a paragraph.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
text | string |
Return
( com.itextpdf.layout.element.Paragraph )
setDocument
_pdf.setDocument(document: com.itextpdf.layout.Document) : PDF
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
document | com.itextpdf.layout.Document |
Return
( PDF )
table
_pdf.table(columnWidth: double[]) : com.itextpdf.layout.element.Table
Description
Creates a table with the columns width inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | double[] | Column widthof the table. |
Return
( com.itextpdf.layout.element.Table )
Returns a table with the columns width inserted.
_pdf.table(columnWidth: double[], largeTable: boolean) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | double[] | Columns width. |
largeTable | boolean | Large table. |
Return
( com.itextpdf.layout.element.Table )
Returns the created table.
_pdf.table(columnWidth: float[]) : com.itextpdf.layout.element.Table
Description
Creates a table with the columns width inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | float[] | Column widthof the table. |
Return
( com.itextpdf.layout.element.Table )
Returns a table with the columns width inserted.
_pdf.table(columnWidth: float[], largeTable: boolean) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | float[] | Columns width. |
largeTable | boolean | Large table. |
Return
( com.itextpdf.layout.element.Table )
Returns the created table.
_pdf.table(columnWidth: [I) : com.itextpdf.layout.element.Table
Description
Creates a table with the columns width inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | [I | Column widthof the table. |
Return
( com.itextpdf.layout.element.Table )
Returns a table with the columns width inserted.
_pdf.table(columnWidth: [I, largeTable: boolean) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | [I | Columns width. |
largeTable | boolean | Large table. |
Return
( com.itextpdf.layout.element.Table )
Returns the created table.
_pdf.table(columns: int) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columns | int | Columns 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 inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | java.util.List | Column's width of the table. |
Return
( com.itextpdf.layout.element.Table )
Returns a table with the columns width inserted.
_pdf.table(columnWidth: java.util.List, largeTable: boolean) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | java.util.List | Columns width. |
largeTable | boolean | Large table. |
Return
( com.itextpdf.layout.element.Table )
Returns the created table.
_pdf.table(columnWidth: Values) : com.itextpdf.layout.element.Table
Description
Creates a table with the columns width inserted.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | Values | Column width of the table. |
Return
( com.itextpdf.layout.element.Table )
Returns a table with the columns width inserted.
_pdf.table(columnWidth: Values, largeTable: boolean) : com.itextpdf.layout.element.Table
Description
Creates a new table.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
columnWidth | Values | Columns width. |
largeTable | boolean | Large table. |
Return
( com.itextpdf.layout.element.Table )
Returns the created table.
text
_pdf.text(content: string) : com.itextpdf.layout.element.Text
Description
Creates new text with the inserted text.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | string | Content to be created. |
Return
( com.itextpdf.layout.element.Text )
Returns the text content.
toHTML
_pdf.toHTML(content: java.io.InputStream) : string
Description
Converts the inserted content to HTML.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | java.io.InputStream | Content to HTML. |
Return
( string )
Returns the Html.
_pdf.toHTML(content: File) : string
Description
Converts the inserted content to HTML.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | File | Content to HTML. |
Return
( string )
Returns the Html.
_pdf.toHTML(content: InputStream) : string
Description
Converts the inserted content to HTML.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | InputStream | Content to HTML. |
Return
( string )
Returns the Html.
_pdf.toHTML(content: Storage) : string
Description
Converts the inserted content to HTML.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | Storage | Content to HTML. |
Return
( string )
Returns the Html.
toText
_pdf.toText(content: java.io.InputStream) : string
Description
Converts to text the inserted content.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | java.io.InputStream | Content to text. |
Return
( string )
Returns the Html.
_pdf.toText(content: File) : string
Description
Converts to text the inserted content.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | File | Content to text. |
Return
( string )
Returns the Html.
_pdf.toText(content: InputStream) : string
Description
Converts to text the inserted content.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | InputStream | Content to text. |
Return
( string )
Returns the Html.
_pdf.toText(content: Storage) : string
Description
Converts to text the inserted content.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
content | Storage | Content to text. |
Return
( string )
Returns the Html.