BeginArtifactEx
Getagde PDF, toegankelijkheid
Beschrijving
Opent een marked-content-reeks van een artefact met een expliciet artefacttype en optioneel Pagination-subtype in één aanroep, met behulp van het eigenschappenwoordenboek en de BDC-operator die ISO 32000-2 §14.8.2.2.1 Table 363 vereistGebruik deze functie voor artefacten van het type
Pagination, Layout, Page of PDF 2.0 Background; elke geslaagde aanroep moet worden gevolgd door een bijbehorende aanroep van EndArtifact
Syntaxis
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);
Parameters
| ArtifactType | Geef Pagination, Layout, Page of Background door, of een lege string om /Type weg te laten |
|---|---|
| ArtifactSubtype | Optioneel Pagination-subtype, doorgaans Header, Footer, Watermark, PageNum, LineNum, Redaction of Bates |
Geschreven operator
| Beide niet-leeg | /Artifact << /Type /T /Subtype /S >> BDC |
|---|---|
| Alleen Type | /Artifact << /Type /T >> BDC |
| Alleen Subtype | /Artifact << /Subtype /S >> BDC |
| Beide leeg | /Artifact BMC |
PDF-versie
Background, PageNum, LineNum, Redaction en Bates vereisen PDF 2.0 en verhogen de uitvoerfunctieversie automatisch
Retourwaarden
| 0 | Mislukt (er is geen document geopend) |
|---|---|
| 1 | Artefactreeks met succes geopend |
Voorbeeld
// 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;