SetCollectionView

첨부 파일, 문서 속성

설명

문서'의 첨부 파일을 PDF 포트폴리오로 변환하고 뷰어가 표시하는 방식을 선택합니다

구문

Delphi

Function TPDFlib.SetCollectionView(View: Integer; Const InitialFile: WideString): Integer;

매개변수

View0 세부 목록, 1 타일, 2 숨김(표지 페이지가 표시되고 첨부 파일 창을 통해 패키지에 접근)
InitialFile뷰어가 먼저 여는 포함 파일 이름이며 없으면 빈 문자열

반환 값

0보기 값이 유효하지 않거나 선택된 문서가 없습니다
1컬렉션이 생성되거나 업데이트되었습니다

비고

컬렉션(ISO 32000-1 12.3.5)은 관련 문서 집합을 하나의 패키지로 전달하는 PDF 네이티브 방식입니다. 호출은 필요할 때 Catalog /Collection 사전을 만들고 문서를 PDF 1.7로 올립니다. 첨부는 패키지에 나타나도록 AddFileAttachment로 등록해야 합니다

예제

ID:= PDF.AddEmbeddedFile('invoice.xml', 'text/xml');
PDF.AddFileAttachment('invoice.xml', ID);
PDF.SetCollectionView(1, 'invoice.xml');   // tiles

참고 항목

AddCollectionField, SetCollectionSort, SetCollectionItemValue, GetCollectionView, AddFileAttachment