BeginArtifactEx
PDF marcado, Acessibilidade
Descrição
Abre uma sequência de conteúdo marcado de artefato com um tipo de artefato explícito e subtipo Pagination opcional em uma única chamada, usando o dicionário de propriedades e o operador BDC exigidos por ISO 32000-2 §14.8.2.2.1 Table 363Use esta função para artefatos
Pagination, Layout, Page ou PDF 2.0 Background; toda chamada bem-sucedida deve ser seguida por uma chamada correspondente de EndArtifact
Sintaxe
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);
Parâmetros
| ArtifactType | Passe Pagination, Layout, Page ou Background, ou uma string vazia para omitir /Type |
|---|---|
| ArtifactSubtype | Subtipo Pagination opcional, comumente Header, Footer, Watermark, PageNum, LineNum, Redaction ou Bates |
Operador gravado
| Ambos não vazios | /Artifact << /Type /T /Subtype /S >> BDC |
|---|---|
| Apenas tipo | /Artifact << /Type /T >> BDC |
| Apenas subtipo | /Artifact << /Subtype /S >> BDC |
| Ambos vazios | /Artifact BMC |
Versão do PDF
Background, PageNum, LineNum, Redaction e Bates exigem PDF 2.0 e elevam automaticamente a versão de recursos de saída
Valores retornados
| 0 | Falha (nenhum documento está aberto) |
|---|---|
| 1 | Sequência de artefato aberta com sucesso |
Exemplo
// 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;