BeginArtifactEx

タグ付きPDF、アクセシビリティ

説明

明示的なアーティファクトタイプとオプションのPaginationサブタイプを指定してアーティファクトのマーク付きコンテンツシーケンスを1回の呼び出しで開きます。ISO 32000-2 §14.8.2.2.1 Table 363が要求するプロパティ辞書とBDCオペレーターを使用しますこの関数は

PaginationLayoutPage、またはPDF 2.0のBackgroundアーティファクトに使用します。成功したすべての呼び出しの後には、対応するEndArtifact呼び出しが続かなければなりません

構文

Delphi

Function TPDFlib.BeginArtifactEx(Const ArtifactType, ArtifactSubtype: WideString): Integer;

ActiveX

Function PDFlib::BeginArtifactEx(ArtifactType As String, ArtifactSubtype As String) As Long

DLL

int DLBeginArtifactEx(int InstanceID, const wchar_t * ArtifactType, const wchar_t * ArtifactSubtype);

パラメータ

ArtifactTypePaginationLayoutPageBackgroundのいずれか、または/Typeを省略するための空の文字列を渡します
ArtifactSubtypeオプションのPaginationサブタイプ。通常はHeaderFooterWatermarkPageNumLineNumRedactionBatesです

書き込まれるオペレーター

両方とも空でない/Artifact << /Type /T /Subtype /S >> BDC
Typeのみ/Artifact << /Type /T >> BDC
Subtypeのみ/Artifact << /Subtype /S >> BDC
両方とも空/Artifact BMC

PDFバージョン

BackgroundPageNumLineNumRedactionBatesにはPDF 2.0が必要で、出力フィーチャーバージョンは自動的に引き上げられます

戻り値

0失敗(ドキュメントが開かれていない)
1アーティファクトシーケンスが正常に開かれました

// Mark a running header as a Pagination artifact with subtype Header
PDF.BeginArtifactEx('Pagination', 'Header');
PDF.PrintText(50, 780, 'Chapter 3 - Results');
PDF.EndArtifact;

// Mark a page background using the PDF 2.0 artifact type
PDF.BeginArtifactEx('Background', '');
PDF.DrawImage(BackgroundImage, 0, 0, PDF.PageWidth, PDF.PageHeight);
PDF.EndArtifact;