Built-in Units

PDFDOC

The pdfdoc unit contains everything to dynamically create PDF files.

Globals

TLineCapStyle
TLineJoinStyle
TTextRenderingMode
TPDFColor
TPDFCorners
TPDFRect

Functions



Procedures



TPDFCanvas

.GSave
.GRestore
.Concat(a,b,c,d,e,f:Single)
.SetFlat(Flatness:Byte)
.SetLineCap(linecap:TLineCapStyle)
.SetDash(A:TByteArray;Phase:Byte)
.SetLineJoin(linejoin:TLineJoinStyle)
.SetLineWidth(linewidth:Single)
.SetMiterLimit(miterlimit:byte)
.MoveTo(X,Y:Single)
.LineTo(X,Y:Single)
.CurveToC(x1,y1,x2,y2,x3,y3:single)
.CurveToV(x2,y2,x3,y3:single)
.CurveToY(x2,y2,x3,y3:single)
.Rectangle(x,y,w,h:single)
.ClosePath
.NewPath
.Stroke
.ClosePathStroke
.Fill
.EoFill
.FillStroke
.ClosepathFillStroke
.EoFillStroke
.ClosepathEoFillStroke
.Clip
.EoClip
.SetCharSpace(charSpace:Single)
.SetWordSpace(wordSpace:Single)
.SetHorizontalScaling(hScaling:word)
.SetLeading(leading:Single)
.SetFontAndSize(const fontname:string;size:Single)
.SetTextRenderingMode(mode:TTextRenderingMode)
.SetTextRise(rise:Word)
.BeginText
.EndText
.MoveTextPoint(tx,ty:Single)
.SetTextMatrix(a,b,c,d,x,y:Single)
.MoveToNextLine
.ShowText(const s:string)
.ShowTextNextLine(const s:string)
.ExecuteXObject(const xObject:string)
.SetRGBFillColor(Value:TPdfColor)
.SetRGBStrokeColor(Value:TPdfColor)
.SetFont(const AName:string;ASize:Single)
.TextOut(X,Y:Single;const Text:string)
.TextWidth(Text:string):Single
.GetPageWidth:Longint;
.SetPageWidth(V:Longint)
.GetPageHeight:Longint
.SetPageHeight(V:Longint);
.TextOutRotatedUp(X,Y:Single;const Text:string)

TPDFDoc

.Init()
.NewDoc(Title,Author,Subject,Keywords:String;Created,Modified:TDateTime;Creator,Producer:String)
.FreeDoc
.AddPage
.SaveToStream(AStream:TStream)
.GetCanvas:TPDFCanvas
.SetCanvas(V:TPDFCanvas)
.Free()