AddRichMediaAnnotationFromEmbeddedFile

리치 미디어, 주석, 연결 파일, 페이로드 재사용

설명

중복 미디어 스트림을 쓰는 대신 기존 포함 파일 사양을 참조하는 자산 및 인스턴스 사전이 있는 RichMedia 주석을 만듭니다

구문

Delphi

Function TPDFlib.AddRichMediaAnnotationFromEmbeddedFile(Left, Top, Width, Height: Double; EmbeddedFileIndex: Integer; Const AssetName, Title, Description: WideString; MediaType: TPDFlibRichMediaType; Activation: TPDFlibRichMediaActivation; Deactivation: TPDFlibRichMediaDeactivation; PosterImageID: Integer= 0): Integer;

ActiveX

Function PDFlib::AddRichMediaAnnotationFromEmbeddedFile(Left As Double, Top As Double, Width As Double, Height As Double, EmbeddedFileIndex As Long, AssetName As String, Title As String, Description As String, MediaType As Long, Activation As Long, Deactivation As Long, PosterImageID As Long) As Long

DLL

int DLAddRichMediaAnnotationFromEmbeddedFile(int InstanceID, double Left, double Top, double Width, double Height, int EmbeddedFileIndex, const wchar_t* AssetName, const wchar_t* Title, const wchar_t* Description, int MediaType, int Activation, int Deactivation, int PosterImageID);
int DLAddRichMediaAnnotationFromEmbeddedFileA(int InstanceID, double Left, double Top, double Width, double Height, int EmbeddedFileIndex, const char* AssetName, const char* Title, const char* Description, int MediaType, int Activation, int Deactivation, int PosterImageID);

매개변수

Left, Top현재 출력 단위에서 주석 사각형의 왼쪽 위 모서리 위치이며, 문서 배율과 원점으로 변환됩니다
Width, Height현재 출력 단위에서 주석 사각형의 양수 크기
EmbeddedFileIndex기존 파일 사양으로 해석되어야 하는 1부터 시작하는 임베디드 파일 인덱스(예: GetAssociatedFileEmbeddedIndex에서 얻음)
AssetNameRichMedia 주석 내부 자산의 비어 있지 않은 이름
Title프레젠테이션 제목. 비어 있어도 됩니다
Description미디어 설명. PDF/UA 모드에서는 비어 있으면 안 됩니다
MediaTypermtVideo 0, rmtSound 1, rmtFlash 2 또는 rmt3D 3
ActivationrmaExplicit 0, rmaPageOpened 1 또는 rmaPageVisible 2
DeactivationrmdExplicit 0, rmdPageClosed 1 또는 rmdPageInvisible 2
PosterImageID선택적 포스터 이미지 ID. 기본값인 0은 포스터를 생략하며, 다른 값은 선택한 문서의 이미지를 가리켜야 합니다

반환 값

1기존 임베디드 파일 사양을 대상으로 주석이 생성되었고 문서가 Adobe Extension Level 3으로 올라갔습니다
0문서가 로드되지 않았거나, AssetName이 비어 있거나, 크기가 양수가 아니거나, PDF/A 모드가 활성 상태이거나, PDF/UA 모드에 설명이 없거나, 임베디드 파일 인덱스 또는 포스터 이미지가 잘못되었거나, Extension Level 3을 사용할 수 없습니다. LastErrorCode 602는 누락된 확장 레벨을 알려 줍니다

비고

EmbeddedFileIndex는 1 기반이며 GetAssociatedFileEmbeddedIndex에서 가져올 수 있습니다

이 메서드에는 Adobe Extension Level 3이 필요하고 PDF/A를 거부하며 PDF/UA 모드에서는 비어 있지 않은 설명이 필요합니다

MediaType은 0~3이며 활성화 및 비활성화 값은 0~2입니다