SetCollectionView

Attachments, Document properties

Mô tả

Biến các attachment của tài liệu thành một PDF portfolio và chọn cách viewer trình bày nó

Cú pháp

Delphi

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

Tham số

View0 danh sách chi tiết, 1 ô (tiles), 2 ẩn (hiện trang bìa và gói được truy cập qua khung attachment)
InitialFileTên file nhúng mà viewer mở đầu tiên, hoặc chuỗi rỗng nếu không có

Giá trị trả về

0Invalid view value, or no document is selected.
1Collection đã được tạo hoặc cập nhật

Remarks

Collection (ISO 32000-1 12.3.5) là cách thuần PDF để đóng gói một bộ tài liệu liên quan thành một gói: một yêu cầu bồi thường kèm ảnh, một hồ sơ nộp kèm tài liệu chứng cứ, một hóa đơn kèm dữ liệu hỗ trợ. Lời gọi tạo dictionary /Collection của catalog theo nhu cầu và nâng tài liệu lên PDF 1.7. Attachment phải được đăng ký qua AddFileAttachment để xuất hiện trong gói

Ví dụ

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

Xem thêm

AddCollectionField, SetCollectionSort, SetCollectionItemValue, GetCollectionView, AddFileAttachment