AddArticleThread
Page-level navigation, document properties
Mô tả
Tạo một article thread PDF mà các bead xác định thứ tự đọc hợp lý xuyên qua một hoặc nhiều hình chữ nhật trang
Phương thức ghi mảng /Threads của catalog, mục /F của thread, các link bead vòng /N và /V, các page reference, hình chữ nhật và mảng /B của từng trang theo yêu cầu của ISO 32000-1 §12.4.3
Cú pháp
Function TPDFlib.AddArticleThread(Const Info: TPDFlibArticleThreadInfo; Const Beads: Array Of TPDFlibArticleBead): Integer;Tham số
| Info | Optional title, author, subject, keywords and PDF creation-date metadata; BeadCount is ignored when writing |
|---|---|
| Beads | One or more page rectangles in article reading order |
Giá trị trả về
Trả về chỉ số article-thread mới (tính từ 1), hoặc 0 khi tài liệu, số trang, hình chữ nhật hoặc một article container có sẵn không hợp lệ
Remarks
Mọi hình chữ nhật dùng tọa độ PDF user-space chưa scale, sắp theo trái, dưới, phải, trênĐầu vào được kiểm tra trước khi thêm object, trang lặp tái dùng page reference ổn định và trang đang chọn được bảo toàn
DeletePages gỡ các thread rỗng và sửa lại các link vòng của thread còn sống
Ví dụ
Info.Title := 'Feature story';
Info.Author := 'Editorial desk';
SetLength(Beads, 2);
Beads[0].Page := 1;
Beads[0].Left := 72;
Beads[0].Bottom := 360;
Beads[0].Right := 288;
Beads[0].Top := 720;
Beads[1].Page := 3;
Beads[1].Left := 72;
Beads[1].Bottom := 360;
Beads[1].Right := 288;
Beads[1].Top := 720;
ThreadIndex := PDF.AddArticleThread(Info, Beads);Xem thêm
AddLinkToArticleThread, SetOutlineArticleThread, ArticleThreadCount, GetArticleThreadInfo, GetArticleThreadBead, TPDFlibArticleThreadInfo, TPDFlibArticleBead