BeginArtifactEx
PDF etiquetado, acessibilidade
Descrição
Abre uma sequência de conteúdo marcado de artefacto com um tipo de artefacto explícito e um subtipo Pagination opcional numa única chamada, usando o dicionário de propriedades e o operador BDC exigidos pela ISO 32000-2 §14.8.2.2.1 Tabela 363Use esta função para artefactos
Pagination, Layout, Page ou PDF 2.0 Background; cada chamada com êxito tem de ser seguida de uma chamada correspondente a 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 cadeia vazia para omitir /Type |
|---|---|
| ArtifactSubtype | Subtipo Pagination opcional, normalmente Header, Footer, Watermark, PageNum, LineNum, Redaction ou Bates |
Operador escrito
| Ambos não vazios | /Artifact << /Type /T /Subtype /S >> BDC |
|---|---|
| Apenas o tipo | /Artifact << /Type /T >> BDC |
| Apenas o subtipo | /Artifact << /Subtype /S >> BDC |
| Ambos vazios | /Artifact BMC |
Versão de PDF
Background, PageNum, LineNum, Redaction e Bates requerem PDF 2.0 e elevam automaticamente a versão de funcionalidades de saída
Valores devolvidos
| 0 | Falhou (nenhum documento está aberto) |
|---|---|
| 1 | Sequência de artefacto aberta com êxito |
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;