1.04
uk.co.martinpearman.b4j.pdfjet.PageWrapper
PDFjetPage
com.pdfjet.Page
process
SetWordSpacing
void
Spacing
float
SetArtBox
Sets the page ArtBox.
void
UpperLeftX
float
UpperLeftY
float
LowerRightX
float
LowerRightY
float
FillPath
Closes and fills the path with the current brush color.
void
SetDefaultLineWidth
Set the line width to the default.
void
SetTrimBox
Sets the page TrimBox.
void
UpperLeftX
float
UpperLeftY
float
LowerRightX
float
LowerRightY
float
SetTextDirection
Set the text direction.
void
Degrees
int
DrawString
Draw the text using the specified Font and the current brush color.
void
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
X
float
Y
float
BezierCurveTo
Draws a bezier curve on the Page starting from the current point.
void
Point1
com.pdfjet.Point
Point2
com.pdfjet.Point
Point3
com.pdfjet.Point
SetTextRenderingMode
void
Mode
int
DrawCircle2
Draw a circle on the Page and fill it with the current brush color.
void
X
double
Y
double
Radius
double
Operand
char
SetTextStart
void
IsInitialized
boolean
Initialize
Initialize the Page object.
The coordinate (0.0, 0.0) is the top left corner of the page.
The size of the pages are represented in points.
1 point is 1/72 inches.
void
PDFjetPDF
com.pdfjet.PDF
PageSize
float[]
DrawCircle
Draw a circle on the Page using the current pen color.
void
X
float
Y
float
Radius
float
AddDestination
void
Name
java.lang.String
PositionY
float
ClipPath
void
DrawEllipse
Draw an ellipse on the Page using the current pen color.
void
X
float
Y
float
RadiusX
float
RadiusY
float
DrawRect
Draw the outline of the specified rectangle on the Page.
void
X
float
Y
float
Width
float
Height
float
SetTextLeading
void
Leading
float
Append
Appends the specified array of bytes to the page.
void
Bytes
byte[]
Print
Prints a line of text.
void
Text
java.lang.String
SetTextBegin
void
X
float
Y
float
GetBrushColor
float[]
DrawRectRoundCorners
void
X
float
Y
float
Width
float
Height
float
Radius1
float
Radius2
float
Operand
char
PrintLn2
Prints a line of text and moves to the next line.
void
Text
java.lang.String
SetCropBox
Sets the page CropBox.
void
UpperLeftX
float
UpperLeftY
float
LowerRightX
float
LowerRightY
float
SetLinePattern
The line dash pattern controls the pattern of dashes and gaps used to stroke paths.
void
Pattern
java.lang.String
SetTextLocation
void
X
float
Y
float
SetCharSpacing
void
Spacing
float
SetTextFont
void
PDFjetFont
com.pdfjet.Font
LineTo
Draw a line from the current pen position to the point with coordinates (X, Y), using the current pen width and stroke color.
void
X
float
Y
float
DrawLine
Draw a line on the Page, using the current pen color, between the points (X1, Y1) and (X2, Y2).
void
X1
float
Y1
float
X2
float
Y2
float
SetTextRise
void
Rise
float
StrokePath
Draws the current path using the current pen color.
void
SetTextScaling
void
Scaling
float
SetBrushColor2
void
Red
float
Green
float
Blue
float
SetBrushColor3
void
Color
float[]
SetTextEnd
Sets the end of text block.
void
FillEllipse
Fills an ellipse on the page using the current pen color.
void
X
float
Y
float
Radius1
float
Radius2
float
DrawPath
Draw or fills the specified path using the current pen or brush color.
void
PDFjetPoints
anywheresoftware.b4a.objects.collections.List
Operand
char
DrawPoint
Draw a point on the Page using the current pen color.
void
Point1
com.pdfjet.Point
GetWidth
float
SetPenColor
Set the color for stroking operations.
void
Color
int
PrintLn
Move to the next line.
void
SetBrushColor
Sets the color for brush operations.
void
Color
int
SetDefaultLinePattern
Set the default line dash pattern - solid line.
void
Restore
void
MoveTo
Move the pen to the point with coordinates (X, Y) on the Page.
void
X
float
Y
float
ClosePath
Closes the path and draws it using the current pen color.
void
SetPenColor2
void
Red
float
Green
float
Blue
float
ClipRect
void
X
float
Y
float
Width
float
Height
float
SetLineCapStyle
Sets the current line cap style.
void
Style
int
SetLineJoinStyle
Sets the line join style.
void
Style
int
GetHeight
float
Save
void
SetBleedBox
Sets the page BleedBox.
void
UpperLeftX
float
UpperLeftY
float
LowerRightX
float
LowerRightY
float
FillRect
Fills the specified rectangle on the page.
void
X
float
Y
float
Width
float
Height
float
SetPenWidth
Set the pen width that will be used to draw lines and splines on this Page.
void
Width
float
uk.co.martinpearman.b4j.pdfjet.CompositeTextLineWrapper
PDFjetCompositeTextLine
com.pdfjet.CompositeTextLine
process
SetSuperscriptFactor
void
Factor
float
AddComponent
void
PDFjetTextLine
com.pdfjet.TextLine
SetPosition
void
X
float
Y
float
GetFontSize
float
GetSuperscriptFactor
float
GetWidth
float
GetSubscriptPosition
float
GetPosition
float[]
GetSuperscriptPosition
float
SetSuperscriptPosition
void
Position
float
SetSubscriptPosition
void
Position
float
GetNumberOfTextLines
int
IsInitialized
boolean
Initialize
Initialize the CompositeTextLine object.
void
X
float
Y
float
GetTextline
uk.co.martinpearman.b4j.pdfjet.TextLineWrapper
Index
int
GetSubscriptFactor
float
GetMinMax
Returns the vertical coordinates of the top left and bottom right corners of the bounding box of this CompositeTextLine.
float[]
SetFontSize
void
FontSize
float
GetHeight
float
SetSubscriptFactor
void
Factor
float
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.OptionalContentGroupWrapper
PDFjetOptionalContentGroup
com.pdfjet.OptionalContentGroup
process
Initialize
void
Name
java.lang.String
SetExportable
void
Exportable
boolean
SetVisible
void
Visible
boolean
Add
Add an object of type com.pdfjet.Drawable.
PDFjetDrawable - CompositeTextLine, Image, Line, Path, Point, QRCode, TextBox or TextLine.
void
PDFjetDrawable
com.pdfjet.Drawable
SetPrintable
void
Printable
boolean
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.DestinationWrapper
PDFjetDestination
com.pdfjet.Destination
process
Initialize
void
Name
java.lang.String
YPosition
float
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.Bidi
PDFjetBidi
process
ReorderVisually
Reorders the string so that Hebrew text flows from right to left while numbers and Latin text flow from left to right.
java.lang.String
Text
java.lang.String
uk.co.martinpearman.b4j.pdfjet.TextColumnWrapper
PDFjetTextColumn
com.pdfjet.TextColumn
process
Initialize
void
SetSpaceBetweenLines
void
Space
float
SetLineSpacing
void
Spacing
float
SetPosition
void
X
float
Y
float
SetSize
void
Width
float
Height
float
AddParagraph
void
PDFjetParagraph
com.pdfjet.Paragraph
SetLineBetweenParagraphs
void
LineBetweenParagraphs
boolean
GetSize
uk.co.martinpearman.b4j.pdfjet.DimensionWrapper
RemoveLastParagraph
void
SetAlignment
void
Alignment
int
DrawOn2
Draws this text column on the specified page if the 'Draw' boolean value is 'true'.
uk.co.martinpearman.b4j.pdfjet.PointWrapper
PDFjetPage
com.pdfjet.Page
Draw
boolean
Initialize2
void
Rotate
int
IsInitialized
boolean
SetSpaceBetweenParagraphs
void
Space
float
DrawOn
Draws this text column on the specified page.
uk.co.martinpearman.b4j.pdfjet.PointWrapper
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.DimensionWrapper
PDFjetDimension
com.pdfjet.Dimension
process
Initialize
void
Width
float
Height
float
GetWidth
float
GetHeight
float
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.CellWrapper
PDFjetCell
com.pdfjet.Cell
process
SetBorder
void
Border1
int
Visible
boolean
SetStrikeout
void
Strikeout
boolean
GetCompositeTextLine
uk.co.martinpearman.b4j.pdfjet.CompositeTextLineWrapper
SetImage
void
PDFjetImage
com.pdfjet.Image
GetColSpan
int
GetTextAlignment
int
SetTextAlignment
void
Alignment
int
SetLineWidth
void
Width
float
GetUnderline
boolean
SetPenColor
void
Color1
int
GetWidth
float
SetPoint
void
PDFjetPoint
com.pdfjet.Point
SetBrushColor
void
Color1
int
GetPenColor
int
Initialize2
Initializes a Cell object, sets the Font and the Cell text.
void
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
SetBgColor
void
Color1
int
SetBottomPadding
void
Padding
float
IsInitialized
boolean
GetStrikeout
boolean
SetRightPadding
void
Padding
float
Initialize
Initializes a Cell object and sets the Font.
Cell is used to create Table cell objects.
void
PDFjetFont
com.pdfjet.Font
GetText
java.lang.String
SetTopPadding
void
Padding
float
SetLeftPadding
void
Padding
float
GetFont
uk.co.martinpearman.b4j.pdfjet.FontWrapper
SetFont
void
PDFjetFont
com.pdfjet.Font
SetUnderline
void
Underline
boolean
GetPoint
uk.co.martinpearman.b4j.pdfjet.PointWrapper
GetBorder
Returns the Cell's Border object.
boolean
Border1
int
SetColSpan
void
ColSpan
int
SetText
void
Text
java.lang.String
SetNoBorders
void
GetBrushColor
int
SetCompositeTextLine
void
PDFjetCompositeTextLine
com.pdfjet.CompositeTextLine
SetWidth
void
Width
float
GetLineWidth
float
SetFgColor
Sets both pen and brush colors to the specified color.
void
Color1
int
GetImage
uk.co.martinpearman.b4j.pdfjet.ImageWrapper
GetBgColor
Returns the background color of this cell.
int
GetHeight
float
uk.co.martinpearman.b4j.pdfjet.LineWrapper
PDFjetLine
com.pdfjet.Line
process
Initialize
void
X1
float
Y1
float
X2
float
Y2
float
SetEndPoint
void
X
float
Y
float
GetStartPoint
uk.co.martinpearman.b4j.pdfjet.PointWrapper
ScaleBy
void
Factor
float
SetPattern
The line dash pattern controls the pattern of dashes and gaps used to stroke paths.
void
Pattern
java.lang.String
SetWidth
void
Width
float
GetCapStyle
int
PlaceIn2
Places this line in the specified box at the specified offset.
void
PDFjetBox
com.pdfjet.Box
XOffset
float
YOffset
float
SetColor
void
Color
int
SetCapsStyle
void
Style
int
GetEndPoint
uk.co.martinpearman.b4j.pdfjet.PointWrapper
PlaceIn
Places this line in the specified box at position (0.0, 0.0).
void
PDFjetBox
com.pdfjet.Box
SetStartPoint
void
X
float
Y
float
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.PDFobjWrapper
PDFjetPDFobj
com.pdfjet.PDFobj
process
Initialize
void
Offset
int
GetData
Returns the uncompressed stream data.
byte[]
GetPageSize
float[]
AddFontResource
void
CoreFont1
com.pdfjet.CoreFont
Objects
anywheresoftware.b4a.objects.collections.Map
GetDict
Returns the object dictionary.
anywheresoftware.b4a.objects.collections.List
AddContent
void
Content
byte[]
Objects
anywheresoftware.b4a.objects.collections.Map
GetValue
Returns the parameter value given the specified key.
java.lang.String
Key
java.lang.String
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.ParagraphWrapper
PDFjetParagraph
com.pdfjet.Paragraph
process
Initialize
void
SetAlignment
void
Alignment
int
Add
void
PDFjetTextLine
com.pdfjet.TextLine
RemoveLastTextLine
void
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.BoxWrapper
PDFjetBox
com.pdfjet.Box
process
Initialize
Initialize the Box object.
The Box object is used to create rectangular boxes on a Page.
Also used to for layout purposes.
See the PlaceIn method in the Image and TextLine classes.
void
SetFillShape
void
Enable
boolean
ScaleBy
Scales this box by the specified factor.
void
Factor
float
SetPattern
The line dash pattern controls the pattern of dashes and gaps used to stroke paths.
It is specified by a dash array and a dash phase.
The elements of the dash array are positive numbers that specify the lengths of
alternating dashes and gaps.
The dash phase specifies the distance into the dash pattern at which to start the dash.
The elements of both the dash array and the dash phase are expressed in user space units.
<pre>
Examples of line dash patterns:
"[Array] Phase" Appearance Description
_______________ _________________ ____________________________________
"[] 0" ----------------- Solid line
"[3] 0" --- --- --- 3 units on, 3 units off, ...
"[2] 1" - -- -- -- -- 1 on, 2 off, 2 on, 2 off, ...
"[2 1] 0" -- -- -- -- -- -- 2 on, 1 off, 2 on, 1 off, ...
"[3 5] 6" --- --- 2 off, 3 on, 5 off, 3 on, 5 off, ...
"[2 3] 11" - -- -- -- 1 on, 3 off, 2 on, 3 off, 2 on, ...
</pre>
void
Pattern
java.lang.String
SetLineWidth
void
Width
float
SetPosition
Sets the position of this box on the page.
void
X
float
Y
float
SetSize
void
Width
float
Height
float
SetGoToAction
Sets the destination key for the action.
void
Key
java.lang.String
SetColor
Sets the color for this box.
void
Color1
int
SetURIAction
Sets the URL for the "click box" action.
void
Uri
java.lang.String
Initialize2
void
X
float
Y
float
Width
float
Height
float
PlaceIn
Places this Box in the another Box.
void
PDFjetBox
com.pdfjet.Box
XOffset
float
YOffset
float
IsInitialized
boolean
DrawOn
Draws this Box on the specified Page.
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.ImageWrapper
PDFjetImage
com.pdfjet.Image
process
Initialize
Initialize the PDFjetImage object.
InputStream1 will be closed when this method completes.
void
PDFjetPDF
com.pdfjet.PDF
InputStream1
java.io.InputStream
ImageType
int
ScaleBy
Scales this Image width and height by the specified factor.
void
Factor
float
SetPosition
void
X
float
Y
float
SetGotoAction
Sets the destination key for the action.
void
Key
java.lang.String
GetWidth
float
SetURIAction
Sets the URI for the "click box" action.
void
Uri
java.lang.String
GetHeight
float
Initialize2
Initialize the PDFjetJPGImage object.
Use of this method will result in reduced memory consumption and faster processing, however it currently only supports JPG images.
void
PDFjetPDF
com.pdfjet.PDF
PDFjetJPGImage
com.pdfjet.JPGImage
PlaceIn
void
PDFjetBox
com.pdfjet.Box
DrawOn
void
PDFjetPage
com.pdfjet.Page
SetRotateCW90
void
Enable
boolean
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.QRCodeWrapper
PDFjetQRCode
com.pdfjet.QRCode
process
SetPosition
void
X
float
Y
float
Initialize
void
TextToEncode
java.lang.String
PDFjetErrorCorrection
int
GetData
java.lang.Boolean[][]
SetModuleLength
void
ModuleLength
float
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.ChartWrapper
PDFjetChart
com.pdfjet.Chart
process
Initialize
void
PDFjetFont1
com.pdfjet.Font
PDFjetFont2
com.pdfjet.Font
SetMaximumFractionDigits
void
Maximum
int
SetData
void
Points
anywheresoftware.b4a.objects.collections.List
SetTitle
void
Title
java.lang.String
Slope
float
Points
anywheresoftware.b4a.objects.collections.List
SetPosition
void
X
int
Y
int
GetData
uk.co.martinpearman.b4j.pdfjet.PointWrapper[][]
SetMinimumFractionDigits
void
Maximum
int
SetSize
void
Width
float
Height
float
SetXAxisTitle
void
Title
java.lang.String
Intercept
float
Points
anywheresoftware.b4a.objects.collections.List
Slope
float
SetYAxisTitle
void
Title
java.lang.String
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.Constants
PDFjetConstants
process
Operation
uk.co.martinpearman.b4j.pdfjet.Constants.Operation
ImageType
uk.co.martinpearman.b4j.pdfjet.Constants.ImageType
PageSize
uk.co.martinpearman.b4j.pdfjet.Constants.PageSize
Border
uk.co.martinpearman.b4j.pdfjet.Constants.Border
Embed
uk.co.martinpearman.b4j.pdfjet.Constants.Embed
Compliance
uk.co.martinpearman.b4j.pdfjet.Constants.Compliance
CoreFont
uk.co.martinpearman.b4j.pdfjet.Constants.CoreFont
ErrorCorrectLevel
uk.co.martinpearman.b4j.pdfjet.Constants.ErrorCorrectLevel
Join
uk.co.martinpearman.b4j.pdfjet.Constants.Join
Align
uk.co.martinpearman.b4j.pdfjet.Constants.Align
Effect
uk.co.martinpearman.b4j.pdfjet.Constants.Effect
TextAlign
uk.co.martinpearman.b4j.pdfjet.Constants.TextAlign
Color
uk.co.martinpearman.b4j.pdfjet.Constants.Color
Segment
uk.co.martinpearman.b4j.pdfjet.Constants.Segment
Cap
uk.co.martinpearman.b4j.pdfjet.Constants.Cap
CodePage
uk.co.martinpearman.b4j.pdfjet.Constants.CodePage
uk.co.martinpearman.b4j.pdfjet.Constants.Align
PDFjetAlign
process
ValueOf
int
Value
java.lang.String
RIGHT
int
JUSTIFY
int
LEFT
int
CENTER
int
uk.co.martinpearman.b4j.pdfjet.Constants.Border
PDFjetBorder
process
ValueOf
int
Value
java.lang.String
BOTTOM
int
RIGHT
int
TOP
int
LEFT
int
uk.co.martinpearman.b4j.pdfjet.Constants.Cap
PDFjetCap
process
ValueOf
int
Value
java.lang.String
ROUND
int
PROJECTING_SQUARE
int
BUTT
int
uk.co.martinpearman.b4j.pdfjet.Constants.CodePage
PDFjetCodePage
process
ValueOf
int
Value
java.lang.String
CP1254
int
CP1253
int
CP1252
int
CP1251
int
CP1250
int
UNICODE
int
CP1257
int
uk.co.martinpearman.b4j.pdfjet.Constants.Color
PDFjetColor
process
ValueOf
int
Value
java.lang.String
hotpink
int
navajowhite
int
tomato
int
yellow
int
moccasin
int
olive
int
blanchedalmond
int
saddlebrown
int
darkkhaki
int
lightblue
int
snow
int
forestgreen
int
pink
int
lightslategrey
int
black
int
lightgrey
int
indigo
int
thistle
int
darkviolet
int
ghostwhite
int
darkred
int
darkslategrey
int
yellowgreen
int
darkmagenta
int
plum
int
lavenderblush
int
turquoise
int
aliceblue
int
mediumturquoise
int
salmon
int
aqua
int
mediumslateblue
int
darkcyan
int
tan
int
burlywood
int
linen
int
sienna
int
mediumorchid
int
lightyellow
int
peru
int
lightgreen
int
cornsilk
int
lightgoldenrodyellow
int
blueviolet
int
greenyellow
int
rosybrown
int
chartreuse
int
lightsteelblue
int
peachpuff
int
limegreen
int
firebrick
int
dodgerblue
int
mediumvioletred
int
grey
int
gold
int
papayawhip
int
slategrey
int
purple
int
darkgray
int
green
int
cornflowerblue
int
lime
int
darkslateblue
int
antiquewhite
int
dimgrey
int
chocolate
int
red
int
cyan
int
magenta
int
orchid
int
fuchsia
int
mediumaquamarine
int
lightsalmon
int
mediumseagreen
int
cadetblue
int
honeydew
int
oldlace
int
mediumpurple
int
deepskyblue
int
paleturquoise
int
darkblue
int
powderblue
int
lightslategray
int
maroon
int
palevioletred
int
lightgray
int
lightcoral
int
azure
int
seagreen
int
orange
int
lawngreen
int
lightpink
int
skyblue
int
white
int
slateblue
int
teal
int
mediumspringgreen
int
lavender
int
darkgreen
int
gainsboro
int
darkslategray
int
crimson
int
lemonchiffon
int
midnightblue
int
floralwhite
int
bisque
int
seashell
int
darkolivegreen
int
darkgoldenrod
int
coral
int
palegreen
int
goldenrod
int
darksalmon
int
aquamarine
int
deeppink
int
darkseagreen
int
lightseagreen
int
darkorchid
int
beige
int
lightskyblue
int
ivory
int
whitesmoke
int
wheat
int
palegoldenrod
int
olivedrab
int
dimgray
int
silver
int
darkorange
int
springgreen
int
royalblue
int
gray
int
khaki
int
indianred
int
slategray
int
mediumblue
int
oldgloryred
int
mintcream
int
darkgrey
int
lightcyan
int
orangered
int
mistyrose
int
blue
int
darkturquoise
int
violet
int
sandybrown
int
oldgloryblue
int
brown
int
steelblue
int
navy
int
uk.co.martinpearman.b4j.pdfjet.Constants.Compliance
PDFjetCompliance
process
PDF_A_1B
int
uk.co.martinpearman.b4j.pdfjet.Constants.CoreFont
PDFjetCoreFont
process
ValueOf
com.pdfjet.CoreFont
Value
java.lang.String
COURIER_OBLIQUE
com.pdfjet.CoreFont
COURIER_BOLD
com.pdfjet.CoreFont
TIMES_BOLD_ITALIC
com.pdfjet.CoreFont
HELVETICA
com.pdfjet.CoreFont
SYMBOL
com.pdfjet.CoreFont
HELVETICA_BOLD_OBLIQUE
com.pdfjet.CoreFont
HELVETICA_BOLD
com.pdfjet.CoreFont
TIMES_BOLD
com.pdfjet.CoreFont
HELVETICA_OBLIQUE
com.pdfjet.CoreFont
COURIER
com.pdfjet.CoreFont
COURIER_BOLD_OBLIQUE
com.pdfjet.CoreFont
TIMES_ROMAN
com.pdfjet.CoreFont
TIMES_ITALIC
com.pdfjet.CoreFont
ZAPF_DINGBATS
com.pdfjet.CoreFont
uk.co.martinpearman.b4j.pdfjet.Constants.Effect
PDFjetEffect
process
ValueOf
int
Value
java.lang.String
SUPERSCRIPT
int
NORMAL
int
SUBSCRIPT
int
uk.co.martinpearman.b4j.pdfjet.Constants.Embed
PDFjetEmbed
process
ValueOf
int
Value
java.lang.String
YES
boolean
NO
boolean
uk.co.martinpearman.b4j.pdfjet.Constants.ErrorCorrectLevel
PDFjetErrorCorrectLevel
process
ValueOf
int
Value
java.lang.String
Q
int
L
int
M
int
H
int
uk.co.martinpearman.b4j.pdfjet.Constants.ImageType
PDFjetImageType
process
ValueOf
int
Value
java.lang.String
BMP
int
JPG
int
PDF
int
PNG
int
uk.co.martinpearman.b4j.pdfjet.Constants.Join
PDFjetJoin
process
ValueOf
int
Value
java.lang.String
BEVEL
int
ROUND
int
MITER
int
uk.co.martinpearman.b4j.pdfjet.Constants.Operation
PDFjetOperation
process
ValueOf
int
Value
java.lang.String
CLOSE
char
FILL
char
STROKE
char
uk.co.martinpearman.b4j.pdfjet.Constants.PageSize
PDFjetPageSize
process
ValueOf
float[]
Value
java.lang.String
B5_LANDSCAPE
float[]
Letter_PORTRAIT
float[]
A4_PORTRAIT
float[]
A3_PORTRAIT
float[]
A5_PORTRAIT
float[]
Executive_PORTRAIT
float[]
Tabloid_PORTRAIT
float[]
B5_PORTRAIT
float[]
A5_LANDSCAPE
float[]
Tabloid_LANDSCAPE
float[]
Legal_PORTRAIT
float[]
Letter_LANDSCAPE
float[]
A4_LANDSCAPE
float[]
Executive_LANDSCAPE
float[]
Legal_LANDSCAPE
float[]
A3_LANDSCAPE
float[]
uk.co.martinpearman.b4j.pdfjet.Constants.Segment
PDFjetSegment
process
ValueOf
int
Value
java.lang.String
CLOCKWISE_00_03
int
CLOCKWISE_06_09
int
CLOCKWISE_09_12
int
CLOCKWISE_03_06
int
uk.co.martinpearman.b4j.pdfjet.Constants.TextAlign
PDFjetTextAlign
process
ValueOf
int
Value
java.lang.String
BOTTOM
int
TOP
int
CENTER
int
uk.co.martinpearman.b4j.pdfjet.TableWrapper
PDFjetTable
com.pdfjet.Table
process
SetTextColorInColumn
void
Index
int
Color1
int
AutoAdjustColumnWidths
Auto adjusts the widths of all columns so that they are just wide enough to hold the text without truncation.
This method must be called after the SetData method, otherwise an Exception will occur.
void
SetCellBordersColor
void
Color
int
GetCellAt
uk.co.martinpearman.b4j.pdfjet.CellWrapper
Row
int
Column
int
SetFontInColumn
Sets the font for the specified column.
void
Index
int
PDFjetFont
com.pdfjet.Font
SetTextAlignInColumn
Sets the text alignment in the specified column.
void
Index
int
Alignment
int
SetPosition
Sets the position (X, Y) of the top left corner of this table on the page.
void
X
float
Y
float
ResetRenderedPageCount
void
SetCellBordersWidth
void
Width
float
GetColumnHeight
Returns the column height of the column at the specified index.
float
Index
int
GetWidth
Returns the width of this table when drawn on a page.
float
RightAlignNumbers
Sets the alignment of the numbers to the right.
void
SetNoCellBorders
void
IsInitialized
boolean
WrapAroundCellText
Wraps around the text in all cells so it fits the column width.
void
SetData2
Sets the table data and specifies the number of header rows in this data.
TableData1 - A TableData object.
void
TableData1
java.util.List
NumOfHeaderRows
int
Initialize
void
GetNumberOfPages
Returns the total number of pages that are required to draw this table on.
int
PDFjetPage
com.pdfjet.Page
SetData
Sets the table data.
TableData1 - A TableData object.
void
TableData1
java.util.List
HasMoreData
Returns True if the table contains more data that needs to be drawn on a Page.
boolean
SetTextColorInRow
void
Index
int
Color1
int
GetRowsRendered
Returns the number of data rows that have been rendered so far.
int
GetColumnWidth
Returns the column width of the column at the specified index.
float
Index
int
GetColumn
Returns a CellList for the specified column index.
uk.co.martinpearman.b4j.pdfjet.TableWrapper.CellList
Index
int
SetFontInRow
Sets the font for the specified row.
void
Index
int
PDFjetFont
com.pdfjet.Font
SetColumnWidth
void
Index
int
Width
float
RemoveLineBetweenRows
Removes the horizontal lines between the rows from Index1 to Index2.
void
Index1
int
Index2
int
SetBottomMargin
void
Margin
float
GetRow
Returns a CellList for the specified row index.
uk.co.martinpearman.b4j.pdfjet.TableWrapper.CellList
Index
int
DrawOn
uk.co.martinpearman.b4j.pdfjet.PointWrapper
PDFjetPage
com.pdfjet.Page
DATA_HAS_6_HEADER_ROWS
int
DATA_HAS_4_HEADER_ROWS
int
DATA_HAS_2_HEADER_ROWS
int
DATA_HAS_3_HEADER_ROWS
int
DATA_HAS_1_HEADER_ROWS
int
DATA_HAS_0_HEADER_ROWS
int
DATA_HAS_7_HEADER_ROWS
int
DATA_HAS_8_HEADER_ROWS
int
DATA_HAS_5_HEADER_ROWS
int
DATA_HAS_9_HEADER_ROWS
int
uk.co.martinpearman.b4j.pdfjet.TableWrapper.CellList
PDFjetCellList
java.util.List
process
Initialize
void
IndexOf
int
Cell1
com.pdfjet.Cell
CreateCell2
uk.co.martinpearman.b4j.pdfjet.CellWrapper
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
Clear
void
RemoveAt
void
Index
int
Add
void
Cell1
com.pdfjet.Cell
CreateCell
uk.co.martinpearman.b4j.pdfjet.CellWrapper
PDFjetFont
com.pdfjet.Font
Remove
void
Cell1
com.pdfjet.Cell
Get
uk.co.martinpearman.b4j.pdfjet.CellWrapper
Index
int
Set
void
Index
int
Cell1
com.pdfjet.Cell
InsertAt
void
Index
int
Cell1
com.pdfjet.Cell
IsInitialized
boolean
Size
int
uk.co.martinpearman.b4j.pdfjet.TableWrapper.TableData
PDFjetTableData
java.util.List
process
Initialize
void
RemoveRow
void
CellList1
java.util.ArrayList
Clear
void
SetRow
void
Index
int
CellList1
java.util.ArrayList
GetColumn
uk.co.martinpearman.b4j.pdfjet.TableWrapper.CellList
Index
int
RemoveRowAt
void
Index
int
IndexOfRow
int
CellList1
java.util.ArrayList
InsertRowAt
void
Index
int
CellList1
java.util.ArrayList
AddRow
Add a CellList as a new row of data.
void
CellList1
java.util.List
GetRow
uk.co.martinpearman.b4j.pdfjet.TableWrapper.CellList
Index
int
IsInitialized
boolean
RowCount
int
uk.co.martinpearman.b4j.pdfjet.BarCodeWrapper
PDFjetBarCode
com.pdfjet.BarCode
process
SetPosition
void
X
float
Y
float
Initialize
void
Type
int
String1
java.lang.String
SetModuleLength
void
Length
float
SetFont
void
PDFjetFont
com.pdfjet.Font
SetDirection
void
Direction
int
SetBarHeightFactor
void
Factor
float
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
TOP_TO_BOTTOM
int
LEFT_TO_RIGHT
int
CODE39
int
BOTTOM_TO_TOP
int
CODE128
int
UPC
int
uk.co.martinpearman.b4j.pdfjet.TextLineWrapper
PDFjetTextLine
com.pdfjet.TextLine
process
GetTextEffect
int
SetStrikeout
void
Enable
boolean
GetDestinationY
float
SetPosition
Sets the position where this text line will be drawn on the page.
void
X
float
Y
float
GetUnderline
boolean
GetWidth
float
SetGoToAction
void
Key
java.lang.String
SetTextDirection
Sets the direction in which to draw the text.
void
Degrees
int
GetGoToAction
java.lang.String
SetURIAction
Sets the URI for the "click text line" action.
void
URI
java.lang.String
Initialize2
void
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
PlaceIn
void
PDFjetBox
com.pdfjet.Box
IsInitialized
boolean
GetStrikeout
boolean
Initialize
void
PDFjetFont
com.pdfjet.Font
GetText
java.lang.String
SetTextEffect
void
EffectName
int
GetFont
uk.co.martinpearman.b4j.pdfjet.FontWrapper
SetFallbackFont
void
PDFjetFont
com.pdfjet.Font
SetFont
void
PDFjetFont
com.pdfjet.Font
SetUnderline
void
Enable
boolean
SetText
void
Text
java.lang.String
SetColor
void
Color1
int
GetColor
int
GetHeight
float
GetURIAction
java.lang.String
DrawOn
Draws this text line on the specified page.
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.CheckBoxWrapper
PDFjetCheckBox
com.pdfjet.CheckBox
process
Initialize
Creates a CheckBox, which can be set checked or unchecked.
Default check mark is blue.
Default box is black, default font size is 14.0f.
void
Checked
boolean
SetBoxColor
Sets the color of the check box.
void
Color
int
SetPosition
void
X
float
Y
float
SetChecked
void
Checked
boolean
SetSize
Set the size of the CheckBox.
void
Size
float
GetWidth
float
SetCheckColor
Sets the color of the check mark.
void
Color
int
GetX
float
SetMarkType
Sets the type of check mark.
MarkType - The type of check mark.
1 = check (the default), 2 = X.
void
MarkType
int
GetY
float
GetHeight
float
Initialize2
void
Checked
boolean
Color
int
Initialize3
void
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.PointWrapper
PDFjetPoint
com.pdfjet.Point
process
GetLinePattern
Returns the line dash pattern.
java.lang.String
GetFillShape
Returns the current value of the FillShape property.
boolean
GetRadius
float
SetRadius
void
Radius
float
SetFillShape
void
Enable
boolean
SetLineWidth
void
Width
float
SetX
void
X
float
SetY
void
Y
float
SetPosition
void
X
float
Y
float
GetShape
int
SetTextDirection
void
TextDirection
int
SetURIAction
Sets the URI for the "click point" action.
void
URI
java.lang.String
Initialize2
void
X
float
Y
float
IsControlPoint
boolean
PlaceIn
Places this point in the specified box at position (0.0, 0.0).
void
PDFjetBox
com.pdfjet.Box
SetDrawLineTo
Deprecated. Please use the SetStartOfPath method.
void
Enable
boolean
IsInitialized
boolean
Initialize
void
X
float
Y
float
SetStartOfPath
Sets this point as the start of a path that will be drawn on the chart.
void
GetText
java.lang.String
SetTextColor
void
TextColor
int
GetTextColor
int
SetText
void
Text
java.lang.String
GetTextDirection
int
GetAlignment
Returns the point alignment.
int
GetLineWidth
float
PlaceIn2
void
PDFjetBox
com.pdfjet.Box
XOffset
float
YOffset
float
SetColor
void
Color
int
SetShape
void
Shape
int
GetX
float
SetAlignment
void
Alignment
int
GetY
float
GetColor
Returns the point color.
int
SetLinePattern
void
Pattern
java.lang.String
GetURIAction
java.lang.String
DrawOn
void
PDFjetPage
com.pdfjet.Page
BOX
int
STAR
int
CIRCLE
int
MULTIPLY
int
V_DASH
int
DOWN_ARROW
int
UP_ARROW
int
RIGHT_ARROW
int
CONTROL_POINT
boolean
DIAMOND
int
PLUS
int
INVISIBLE
int
X_MARK
int
LEFT_ARROW
int
H_DASH
int
uk.co.martinpearman.b4j.pdfjet.TextBoxWrapper
PDFjetTextBox
com.pdfjet.TextBox
process
SetBorder
void
Border1
int
Visible
boolean
SetMargin
void
Margin
float
SetVerticalAlignment
void
Alignment
int
GetTextAlignment
int
SetTextAlignment
void
Alignment
int
SetLineWidth
void
Width
float
SetPosition
void
X
float
Y
float
GetUnderline
boolean
SetPenColor
void
PenColor
int
GetVerticalAlignment
int
GetWidth
float
GetMargin
Returns the text box margin.
float
SetBrushColor
void
BrushColor
int
GetPenColor
Returns the pen color as 0xRRGGBB integer.
int
Initialize2
void
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
Width
float
Height
float
SetBgColor
void
BgColor
int
IsInitialized
boolean
GetStrikeout
Returns whether a strike line will be drawn through the text.
boolean
Initialize
void
PDFjetFont
com.pdfjet.Font
GetText
Returns the text box text.
java.lang.String
GetSpacing
Returns the spacing between lines of text.
float
GetFont
uk.co.martinpearman.b4j.pdfjet.FontWrapper
SetFallbackFont
void
PDFjetFont
com.pdfjet.Font
SetFont
void
PDFjetFont
com.pdfjet.Font
SetUnderline
void
Enable
boolean
GetBorder
Returns the text box border.
boolean
Border1
int
SetText
void
Text
java.lang.String
SetNoBorders
void
SetStrikeOut
void
Enable
boolean
GetBrushColor
int
SetWidth
void
Width
float
GetLineWidth
float
SetFgColor
void
FgColor
int
GetX
float
SetHeight
void
Height
float
GetBgColor
int
GetY
float
GetHeight
float
SetSpacing
void
Spacing
float
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.PathWrapper
PDFjetPath
com.pdfjet.Path
process
Initialize
void
GetCurvePoints
Returns an array containing the start point, first control point, second control point and the end point of elliptical curve segment.
uk.co.martinpearman.b4j.pdfjet.PointWrapper[]
X
float
Y
float
Radius1
float
Radius2
float
Segment
int
SetFillShape
void
FillShape
boolean
SetPattern
void
Pattern
java.lang.String
ScaleBy
void
Factor
float
SetLineCapStyle
void
Style
int
SetClosePath
void
ClosePath
boolean
SetWidth
void
Width
float
SetLineJoinStyle
void
Style
int
PlaceIn2
void
PDFjetBox
com.pdfjet.Box
XOffset
float
YOffset
float
SetColor
void
Color
int
GetLineCapStyle
int
Add
void
PDFjetPoint
com.pdfjet.Point
GetLineJoinStyle
int
PlaceIn
Places this path in the specified box at position (0.0, 0.0).
void
PDFjetBox
com.pdfjet.Box
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.JPGImageWrapper
PDFjetJPGImage
com.pdfjet.JPGImage
process
Initialize
Initialize the JPGImage object.
void
InputStream1
java.io.InputStream
Initialize2
void
PDFjetJPGImage
com.pdfjet.JPGImage
InputStream1
java.io.InputStream
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.PDFImageWrapper
PDFjetPDFImage
com.pdfjet.PDFImage
process
Initialize
Used to construct images from pre-processed raw image data files.
void
Path
java.lang.String
InputStream1
java.io.InputStream
Size
long
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.PDFWrapper
PDFjetPDF
uk.co.martinpearman.b4j.pdfjet.B4APDF
process
CloseComplete(Success As Boolean)
FlushComplete(Success As Boolean)
Initialize
Initialize the PDF object.
Used to create PDF documents.
void
EventName
java.lang.String
OutputStream1
java.io.OutputStream
AddObjects
void
Objects
anywheresoftware.b4a.objects.collections.Map
SetTitle
Set the "Title" document property of the PDF file.
void
Title
java.lang.String
Flush
Writes the PDF object to the output stream.
Raises the event FlushComplete(Success As Boolean).
void
pBA
anywheresoftware.b4a.BA
AddPage
void
PDFjetPage
com.pdfjet.Page
Close
Writes the PDF object to the output stream and closes it.
Raises the event CloseComplete(Success As Boolean).
void
pBA
anywheresoftware.b4a.BA
SetSubject
Set the "Subject" document property of the PDF file.
void
Subject
java.lang.String
GetPageObjects
uk.co.martinpearman.b4j.pdfjet.PDFobjWrapper[]
Objects
anywheresoftware.b4a.objects.collections.Map
Read
Returns a list of objects of type PDFobj read from input stream.
Untested method - possible ClassCastException.
anywheresoftware.b4a.objects.collections.Map
InputStream1
java.io.InputStream
Initialize2
Initialize the PDF object.
Used to create PDF documents.
void
EventName
java.lang.String
OutputStream1
java.io.OutputStream
PDFjetCompliance1
int
Initialize3
Initialize the PDF object.
Used to read PDF documents.
void
SetAuthor
Set the "Author" document property of the PDF file.
void
Author
java.lang.String
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.PNGImageWrapper
PDFjetPNGImage
com.pdfjet.PNGImage
process
Initialize
void
InputStream1
java.io.InputStream
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.AnnotationWrapper
PDFjetAnnotation
com.pdfjet.Annotation
process
Initialize
Initialize the Annotation object.
URI - The URI string.
Key - The destination name.
X1 - The X coordinate of the top left corner.
Y1 - The Y coordinate of the top left corner.
X2 - The X coordinate of the bottom right corner.
Y2 - The Y coordinate of the bottom right corner.
void
URI
java.lang.String
Key
java.lang.String
X1
float
Y1
float
X2
float
Y2
float
IsInitialized
boolean
uk.co.martinpearman.b4j.pdfjet.BarCode2DWrapper
PDFjetBarCode2D
com.pdfjet.BarCode2D
process
SetPosition
void
X
float
Y
float
Initialize
void
String1
java.lang.String
IsInitialized
boolean
DrawOn
void
PDFjetPage
com.pdfjet.Page
uk.co.martinpearman.b4j.pdfjet.FontWrapper
PDFjetFont
com.pdfjet.Font
process
Initialize
Initialize using a built in Font.
CoreFont1 - one of the PDFjetCoreFont constants.
void
PDFjetPDF
com.pdfjet.PDF
CoreFont1
com.pdfjet.CoreFont
SetItalic
void
Enable
boolean
GetAscent
float
GetFitChars
Gets the number of characters from the specified string Text that will fit within the specified width.
int
Text
java.lang.String
Width
float
SetKernPairs
Sets the kerning for the selected Font to True or False depending on the passed value.
void
Enable
boolean
StringWidth
Returns the width of the specified String when drawn on the Page with this Font using the current Font size.
float
Text
java.lang.String
GetBodyHeight
Returns the height of the body of the Font.
float
SetSize
void
FontSize
float
GetSize
Get or Set the current Font size.
float
GetDescent
float
Initialize4
void
PDFjetPDF
com.pdfjet.PDF
InputStream1
java.io.InputStream
PDFjetCodePage
int
Embed
boolean
GetHeight
Returns the height of this Font.
float
Initialize2
Initialize2 is used to create an Asian Font.
FontName - known working values are:
'AdobeMingStd-Light' - Chinese (Traditional).
'STHeitiSC-Light' - Chinese (Simplified).
'KozMinProVI-Regular' - Japanese.
'AdobeMyungjoStd-Medium' - Korean.
CodePage - 1 of the PDFjetCodePage constants.
void
PDFjetPDF
com.pdfjet.PDF
FontName
java.lang.String
CodePage
int
Initialize3
void
PDFjetPDF
com.pdfjet.PDF
InputStream1
java.io.InputStream
StringWidth2
float
PDFjetFont
com.pdfjet.Font
Text
java.lang.String
IsInitialized
boolean
1.1
jPDFjet is a PDF document authoring library.
jPDFjet wraps the PDFjet for Java library from http://pdfjet.com/.
The PDFjet for Java library is available under a fully functional paid for license, an evaluation license and also under a feature limited open source license.
jPDFjet supports all license versions.
jPDFjet is built around version 5.03 of the PDFjet for Java library.
Martin Pearman
PDFjet