PDF ジェネレーター (PRIM_PDF)

PDF ジェネレーター

祖先 - オブジェクト (PRIM_OBJT)

詳細

PDF ジェネレーター コンポーネントを使って PDF のレポートを作成できます。 
テーブルを事前にフォーマットできる Autotable サブコンポーネントも含まれています。

簡素な PDF レポートの作成 

     Define_Com Class(#PRIM_PDF) Name(#pdf) UnitM(mm) PageFormat(A4) PageOrientation(Portrait)
Define Field(#CreationDate) Type(*DATETIME)

#pdf.start

#pdf.setDocumentProperties Title('My PDF report') Author('John Smith') Creator('My Company, Inc') Keywords('Weekly report')
#CreationDate := #CreationDate.Now
#pdf.setCreationDate Datetime(#CreationDate)

#pdf.setFont Font('Times') Style(Italic)
#pdf.setFontSize Size(14)
#pdf.text Text('Hello world!') Left(10) Top(10)
#pdf.addPage
#pdf.text Text('This line is on the second page') Left(10) Top(10)

#pdf.save Filename('MyReport.pdf')

プロパティ

名前

記述

ComponentClassName

コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承

ComponentMembers

このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承

ComponentPatternName

コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承

ComponentTag

インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承

ComponentType

ComponentTypeではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承

ComponentTypeName

ComponentTypeName十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承

Name

コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承

Owner

コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承

PageFormat

ページの形式

PageOrientation

ページの方向

Parent

このインスタンスが添付されているコンポーネントインスタンス。コントロールのビジュアルコンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承

UnitM

座標が指定された時に使用する計測単位

イベント

名前

記述

CreateInstance

コンポーネントを作成する時にCreateInstanceのイベントを実行します。 PRIM_PDF (PRIM_PDF) より継承

DestroyInstance

コンポーネントが解除される前にDestroyInstanceのイベントを実行します。 PRIM_PDF (PRIM_PDF) より継承

メソッド

名前

記述

addImage

PDF 文書にイメージを追加します
Bitmap, ImageFileFormat, Left, Top, Width, Height, ImageCompression, Rotation

addPage

PDF 文書の新規ページを追加し、フォーカスをここに移動します

circle

PDF 文書に円を追加します
CenterX, CenterY, Radius, FillStyle

CreateAutoTable

PDF AutoTable のインスタンスを作成します
Result

line

現在のページに 1 本の線を引きます
Left, Top, Right, Bottom

rect

PDF 文書に四角形を追加します
Left, Top, Width, Height, FillStyle

roundedRect

PDF 文書に丸角の四角形を追加します
Left, Top, Width, Height, RadiusX, RadiusY, FillStyle

save

PDF 文書を保存します
Filename

setCreationDate

PDF 文書の作成日を設定します
Datetime

setDisplayMode

表示モード オプションを設定します
Zoom, Layout

setDocumentProperties

PDF 文書の優先順位を設定します
Title, Author, Creator, Keywords

setDrawColor

次のエレメントのストローク色を設定します
Color

setFillColor

次のエレメントのフィル色を設定します
Color

setFont

次のテキスト エレメントのテキスト フォントフェイス、バリアントを設定します
Font, Style

setFontSize

次のテキスト エレメントのフォント サイズを設定します
Size

setLineDash

次の線の破線パターンを設定します
Pattern, Phase

setLineWidth

次の線の線幅を設定します
Width

setTextColor

次のエレメントのテキスト色を設定します
Color

start

PDF 文書を開始します

text

ページにテキストを追加します
text, Left, Top

参照

すべてのコンポーネント クラス
テクニカル リファレンス