BeginArtifactEx

태그 PDF, 접근성

설명

명시적인 아티팩트 타입과 선택적 Pagination 하위 타입으로 아티팩트 마크드 콘텐츠 시퀀스를 한 번의 호출로 열며, ISO 32000-2 §14.8.2.2.1 Table 363이 요구하는 속성 사전과 BDC 연산자를 사용합니다

Pagination, Layout, Page 또는 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);

매개변수

ArtifactTypePagination, Layout, Page, Background 중 하나를 전달하거나 /Type을 생략하려면 빈 문자열을 전달합니다
ArtifactSubtype선택적 Pagination 하위 타입이며 일반적으로 Header, Footer, Watermark, PageNum, LineNum, Redaction 또는 Bates입니다

작성된 연산자

둘 다 비어 있지 않음/Artifact << /Type /T /Subtype /S >> BDC
타입만/Artifact << /Type /T >> BDC
하위 타입만/Artifact << /Subtype /S >> BDC
둘 다 비어 있음/Artifact BMC

PDF 버전

Background, PageNum, LineNum, Redaction, Bates는 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;