BeginArtifactEx
Označeni PDF, dostopnost
Opis
V enem klicu odpre zaporedje označene vsebine artefakta z izrecno vrsto artefakta in neobvezno podvrsto Pagination, z uporabo slovarja lastnosti in operatorja BDC, kot zahteva ISO 32000-2 §14.8.2.2.1 Table 363To funkcijo uporabite za artefakte
Pagination, Layout, Page ali PDF 2.0 Background; vsakemu uspešnemu klicu mora slediti ustrezen klic EndArtifact
Sintaksa
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);
Parametri
| ArtifactType | Podajte Pagination, Layout, Page ali Background ali prazen niz za izpuščanje /Type |
|---|---|
| ArtifactSubtype | Neobvezna podvrsta Pagination, običajno Header, Footer, Watermark, PageNum, LineNum, Redaction ali Bates |
Zapisani operator
| Oba neprazna | /Artifact << /Type /T /Subtype /S >> BDC |
|---|---|
| Samo vrsta | /Artifact << /Type /T >> BDC |
| Samo podvrsta | /Artifact << /Subtype /S >> BDC |
| Oba prazna | /Artifact BMC |
Različica PDF
Background, PageNum, LineNum, Redaction in Bates zahtevajo PDF 2.0 in samodejno dvignejo različico izhodnih zmožnosti
Vrnjene vrednosti
| 0 | Spodletelo (odprt ni noben dokument) |
|---|---|
| 1 | Zaporedje artefakta je bilo uspešno odprto |
Primer
// 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;