| Phương thức | Mô tả |
Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | Trích xuất văn bản từ trang hiện tại |
TextInRectangle(Left, Top, Right, Bottom: Double): WString | Trích xuất văn bản từ vùng hình chữ nhật (tọa độ trang) |
TextInRectangle(Rectangle: TPdfRectangle): WString | Trích xuất văn bản từ hình chữ nhật |
AddText(const Text, Font: WString; FontSize: Single; X, Y: Double; Color: TColor = clBlack; Alpha: Byte = $FF; Angle: Double = 0.0) | Thêm văn bản tại vị trí đã chỉ định với phông, màu, độ trong suốt và góc xoay |
SetText(ObjectIndex: Integer; const Text: WString) | Đặt văn bản cho một đối tượng văn bản hiện có (API PDFium không được tài liệu hóa, có thể gây lỗi định dạng) |
SetTextPositions(ObjectIndex: Integer; const Positions: TPdfSingleArray) | Đặt vị trí theo từng ký tự cho một đối tượng văn bản hiện có. Các vị trí bắt đầu từ ký tự thứ hai và được tính tương đối so với gốc của đối tượng văn bản |
FindFirst(const Text: WString; Options: TSearchOptions = []; StartIndex: Integer = 0; DirectionUp: Boolean = True): Integer | Bắt đầu tìm văn bản, trả về chỉ số ký tự hoặc -1 nếu không tìm thấy |
FindNext: Integer | Tiếp tục tìm văn bản theo chiều tiến, trả về chỉ số ký tự hoặc -1 |
FindPrevious: Integer | Tiếp tục tìm văn bản theo chiều lùi, trả về chỉ số ký tự hoặc -1 |
CharacterIndexAtPos(X, Y, ToleranceX, ToleranceY: Double): Integer | Lấy chỉ số ký tự tại vị trí trang |
RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | Lấy số lượng hình chữ nhật văn bản cho một dải ký tự |
ReadingUnits: TPdfReadingUnit | Trả về các đơn vị đọc ở mức câu cho hỗ trợ nghe-đọc và điều hướng ngữ nghĩa |
DocumentReadingUnits: TPdfReadingUnit | Xây dựng các bản ghi TPdfReadingUnit ở mức câu cho toàn bộ luồng nội dung có thể đọc của tài liệu |
PageWordBoxes: TPdfWordBoxes | Trả về các hộp từ với phạm vi FTextPage và hình chữ nhật theo không gian trang để tô sáng theo từng từ |
SetReadingWord(const Word: TPdfWordBox) | Tô sáng một TPdfWordBox làm từ đang đọc hiện tại trên TPdfView |
ClearReadingWord | Xóa lớp phủ con trỏ đọc theo từng từ hiện tại trên TPdfView |
TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer | Ánh xạ độ lệch ký tự trên trang tới TPdfWordBox chứa nó, tô sáng từ đó và trả về chỉ số từ |
SelectWordBox(const Word: TPdfWordBox): Boolean | Chọn dải văn bản của trình xem do một TPdfWordBox đại diện |
SelectWordSpan(const Words: TPdfWordBoxes; StartIndex, EndIndex: Integer): Boolean | Chọn một đoạn TPdfWordBox cùng trang như một vùng chọn văn bản của trình xem |
BuildReadingUnits(Fragments) | Chuyển TPdfContentFragments thành các bản ghi TPdfReadingUnit ở mức câu mà không cần tải pdfium.dll |
NextReadingUnitOfKind(Unit, CurrentIndex, Kind, GoForward) | Tìm TPdfReadingUnit kế tiếp hoặc trước đó có Kind khớp với TPdfContentFragmentKind được yêu cầu |
BuildWordBoxes(PageText) | Tách văn bản trang thành các bản ghi TPdfWordBox với văn bản từ và phạm vi ký tự FTextPage |
WordBoxIndexAtCharIndex(Words, CharIndex) | Ánh xạ một chỉ số ký tự ngược lại chỉ số TPdfWordBox tính từ 0 chứa nó |
SpokenTextAppend(var Spoken: TPdfSpokenText; const SpokenPart: WString; Page, StartIndex: Integer; SourceCount: Integer = -1) | Thêm một đoạn lời nói đã ánh xạ vào TPdfSpokenText |
BuildSpokenTextFromWords(Words, FirstWord, LastWord) | Xây dựng TPdfSpokenText từ một dải TPdfWordBox liên tục |
SpokenToPageChar(Spoken, SpokenOffset, Page, CharIndex) | Dịch độ lệch ký tự của bộ đọc giọng nói ngược lại thành ký tự trang PDF |
EstimateSpokenWordIndex(Words, ElapsedMs, WordsPerMinute) | Ước tính chỉ số từ đang đọc khi bộ đọc giọng nói không báo vị trí từ |
| API | Mô tả |
span class="keyword">property About: string | Reports PDFiumPas component version information for TPdf. |
Active | Opens or closes the selected PDF document. |
span class="keyword">procedure AddImage(const FileName: string; X, Y, Width, Height: Double) | Chèn một hình ảnh từ tệp vào trang PDF hiện tại. Bên trong sử dụng TPicture.LoadFromFile, nên mọi định dạng ảnh được đăng ký với các đơn vị đồ họa VCL hoặc LCL đều được chấp nhận (BMP, PNG qua Vcl.Imaging.PngImage / LCL TPortableNetworkGraphic, JPG, v.v.) Tọa độ nằm trong không gian người dùng PDF (gốc ở góc dưới bên trái của trang); Width và Height là kích thước đặt trong đơn vị người dùng, không phải kích thước pixel của ảnh nguồn |
span class="keyword">function AddJpegImage(JpegImage: TStream; X, Y, Width, Height: Double): Boolean | Thêm ảnh JPEG vào trang PDF hiện tại bằng các tọa độ đã chỉ định |
span class="keyword">procedure AddPage(PageNumber: Integer; Width, Height: Double) | Creates a new blank page with the given dimensions in points. |
AddPath | Xác nhận path MoveTo/LineTo/BezierTo đã tích lũy thành một page object mới với paint đã yêu cầu |
span class="keyword">procedure AddPicture(Picture: TPicture; X, Y: Double) | Thêm picture vào trang PDF hiện tại bằng các tọa độ đã chỉ định |
span class="keyword">procedure AddText(const Text, Font: WString; FontSize: Single; X, Y: Double; Color: TColor = clBlack; Alpha: Byte = $FF; Angle: Double = 0.0) | Thêm text vào trang PDF hiện tại tại vị trí đã chỉ định |
Annotation | Thuộc tính có chỉ mục — trả về bản ghi chú thích tại chỉ số đã cho trên trang hiện tại (subtype, rect, color, contents, v.v.) |
AnnotationCount | Số lượng object chú thích gắn với trang đang hoạt động |
span class="keyword">property Attachment[Index: Integer]: TBytes | Đọc hoặc thay thế payload byte thô của embedded file cấp tài liệu tại chỉ số bắt đầu từ 0 đã chỉ định. Mỗi slot tương ứng với một entry trong cây tên PDF EmbeddedFiles được định nghĩa ở mục 7.11 của đặc tả PDF 1.7 |
AttachmentCount | Số lượng file đính kèm nhúng được khai báo trong tài liệu |
AttachmentName | Trả về tên file Unicode đã đăng ký cho embedded file tại chỉ số bắt đầu từ 0 trong cây tên EmbeddedFiles của tài liệu |
AttachmentType | Trả về chuỗi MIME / subtype đã đăng ký cho embedded file tại chỉ số bắt đầu từ 0 đã chỉ định. Giá trị được lấy từ mục /Subtype của file specification dictionary như được định nghĩa ở mục 7.11.3 của PDF |
Author | Trả về giá trị của mục /Author trong từ điển thông tin của tài liệu PDF |
BezierTo | Thêm một đường cong Bezier bậc ba từ điểm hiện tại đi qua các điểm điều khiển (X1,Y1) và (X2,Y2) tới (X3,Y3) |
Bitmap | Trả về một VCL TBitmap vừa được giải mã chứa dữ liệu raster của image object được chỉ định trên trang hiện tại. Bitmap được cấp phát mới ở mỗi lần gọi; bên gọi sở hữu nó và có trách nhiệm gọi Free |
BitmapCount | Số lượng image page object trên trang đang hoạt động, truy cập được dưới dạng VCL TBitmap |
Bookmark | Tìm một bookmark theo chuỗi tiêu đề của nó và trả về TBookmark record khớp từ cây document outline được định nghĩa ở mục 12.3.3 của PDF |
BookmarkChildren | Thuộc tính có chỉ mục — trả về các bookmark con trực tiếp của một nút bookmark cha đã cho |
BookmarkFrom | Chuyển một handle FPDF_BOOKMARK thô thành một TBookmark record đầy đủ bằng cách đọc title, destination page và metadata action của nút outline đó |
Bookmarks | Thuộc tính có chỉ mục — trả về toàn bộ danh sách các mục outline (bookmark) cấp cao nhất của tài liệu |
Character | Read-only indexed access to the UTF-16 string form of the character at the given index (typically one code unit, but two for a surrogate pair). |
CharacterAngle | Truy cập chỉ đọc có chỉ số tới góc xoay của ký tự tính bằng radian, có xét CTM của trang |
CharacterCount | Số lượng ký tự có thể trích xuất trên trang đang hoạt động |
CharacterFontSize | Truy cập chỉ đọc có chỉ số tới cỡ font thực được dùng để kết xuất ký tự (tính bằng điểm PDF, sau khi scale theo CTM) |
CharacterFontWeight | Truy cập chỉ đọc có chỉ số tới giá trị OS/2 usWeightClass của font được dùng (100 = Thin, 400 = Regular, 700 = Bold, 900 = Black) |
CharacterGenerated | Returns True when the character at the specified index was synthesised by PDFium during text extraction rather than being drawn explicitly by the page content stream. Synthetic characters are emitted for ligature expansion, soft hyphenation, and word/line boundary heuristics so search and select-all results read naturally. |
span class="keyword">function CharacterIndexAtPos(X, Y, ToleranceX, ToleranceY: Double): Integer | Lấy chỉ số của một ký tự tại hoặc gần một vị trí nhất định trên trang. Nếu không có ký tự nào tại hoặc gần điểm đó, giá trị trả về sẽ là -1. Nếu xảy ra lỗi, sẽ trả về -3 |
CharacterIsHyphen | Trả về True khi ký tự ở chỉ số được chỉ định được nhận diện là soft hyphen dùng để ngắt từ ở cuối dòng. Hữu ích khi dựng lại từ qua các ngắt dòng mà không giữ lại dấu gạch nối hiển thị |
CharacterMapError | Trả về True khi ký tự ở chỉ số được chỉ định không thể được ánh xạ tới một code point Unicode hợp lệ. Cờ này được trình trích xuất text của PDFium báo theo từng ký tự và cho phép bên gọi xác định các code point có khả năng sai vì font gốc thiếu ToUnicode CMap hoặc encoding vector phù hợp |
CharacterOrigin | Truy cập chỉ đọc có chỉ số tới gốc (điểm neo baseline-left) của ký tự bằng điểm user-space PDF |
CharacterRectangle | Truy cập chỉ đọc có chỉ số tới hình chữ nhật bao của ký tự trong tọa độ user-space PDF (gốc ở dưới bên trái, tính bằng point) |
Charcode | Truy cập chỉ đọc có chỉ số tới code point Unicode (UCS-4) của ký tự tại chỉ số đã cho |
span class="keyword">procedure ClearFormFieldFocus | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
ClosePath | Đóng sub-path hiện tại bằng cách vẽ một đường thẳng quay lại MoveTo gần nhất |
Compressed | Kiểm soát việc các stream trong PDF đầu ra có được nén FlateDecode khi gọi SaveAs / Save hay không. Engine nén sau khi lưu quét PDF đã tuần tự hóa, thay thế mọi stream chưa nén bằng các bản tương đương đã nén zlib và dựng lại xref table. Các stream đã nén sẵn sẽ đi qua nguyên trạng |
constructor Create(AOwner: TComponent); override | Tạo thành phần TPdf và khởi tạo trạng thái tài liệu, kết xuất, biểu mẫu và bộ nhớ đệm |
span class="keyword">procedure CreateAnnotation(const Annotation: TPdfAnnotation) | Create a new annotation. |
CreateAttachment | Adds a new embedded file (attachment) at the document level. |
span class="keyword">procedure CreateDocument | Đóng tài liệu hiện tại (nếu có) và bắt đầu một PDF trống hoàn toàn mới |
span class="keyword">procedure CreatePath(X, Y: Single; FillMode: TPdfFillMode = fmNone; FillColor: TColor = clBlack; FillAlpha: Byte = $FF; Stroke: Boolean = True; StrokeColor: TColor = clBlack; StrokeAlpha: Byte = $FF; StrokeWidth: Single = 1.0; LineCap: TPdfLineCap = lcDefault; LineJoin: TPdfLineJoin = ljDefault; BlendMode: TPdfBlendMode = bmDefault) | Create a new path object at an initial position. |
CreateXObjectFromPage | Bọc một trang từ TPdf khác thành handle Form XObject có thể tái sử dụng và đóng dấu vào tài liệu này bao nhiêu lần cũng được |
CreationDate | Dấu thời gian tạo ban đầu từ Info dictionary của tài liệu |
Creator | Tên của ứng dụng tạo gốc được lưu trong Info dictionary |
DeleteAnnotation | Xóa annotation tại chỉ số đã cho trên trang hiện tại |
span class="keyword">function DeleteAttachment(Index: Integer): Boolean | Removes the embedded file attachment at the given index. |
span class="keyword">procedure DeletePage(PageNumber: Integer) | Xóa trang tại PageIndex khỏi tài liệu |
Destination | Trả về bản ghi TDestination cho named destination tại chỉ số bắt đầu từ 0 đã chỉ định. Named destination là các đích gián tiếp được định nghĩa dưới cây Dests / Names của document catalog như mô tả ở mục 12.3.2 của PDF |
DestinationByName | Looks up a /Names destination by string name and returns its target page / fit-type / coordinates. |
DestinationCount | Số lượng named destination được khai báo trong tài liệu |
destructor Destroy; override | Releases document handles, form state, cached fonts, streams, and timers before TPdf is destroyed |
span class="keyword">function DeviceToPage(X, Y, Left, Top, Width, Height: Integer; Rotation: TRotation; out PageX, PageY: Double): Boolean | Convert the screen coordinate of a point to page coordinate. |
span class="keyword">property Document | Native PDFium FPDF_DOCUMENT handle for direct low-level access. |
span class="keyword">function DocumentReadableContent: TPdfContentFragments | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
function DocumentReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records for the whole document readable-content stream |
FileIdentifier | Cờ chỉ đọc — trả về mảng định danh tệp của tài liệu cho ô định danh được yêu cầu |
span class="keyword">property FileName | Đường dẫn của PDF để mở; khi gán lúc Active sẽ nạp lại từ đường dẫn mới |
Find | Tìm Pattern bắt đầu từ PageNum (hoặc trang hiện tại nếu là -1) và trả về chỉ số ký tự toàn cục của lần khớp đầu tiên |
span class="keyword">function FindFirst(const Text: WString; Options: TSearchOptions = []; StartIndex: Integer = 0; DirectionUp: Boolean = True): Integer | Bắt đầu tìm kiếm văn bản đã chỉ định. StartIndex bắt đầu từ 0, -1 là cuối trang. Tham số DirectionUp quyết định hướng của thao tác tìm kiếm này |
span class="keyword">function FindNext | Di chuyển con trỏ của phiên Find đang diễn ra và trả về chỉ số ký tự khớp tiếp theo |
span class="keyword">function FindPrevious | Reverses the Find cursor by one match. |
span class="keyword">function FlattenAllPages(nFlag: Integer = FLAT_NORMALDISPLAY): Boolean | Hàm bọc tiện dụng để gộp mọi trang trong tài liệu. Trả về True khi mọi trang đều hoàn tất với FLATTEN_SUCCESS hoặc FLATTEN_NOTHINGTODO. Quy trình được khuyến nghị: GenerateFormAppearances → FlattenAllPages → SaveAs |
span class="keyword">function FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | Gộp chú thích và widget biểu mẫu trên trang hiện tại thành nội dung trang vĩnh viễn (không thể chỉnh sửa). nFlag chọn hồ sơ gộp: FLAT_NORMALDISPLAY (0) cho hiển thị trên màn hình hoặc FLAT_PRINT (1) cho đầu ra in ấn. Trả về một trong FLATTEN_SUCCESS, FLATTEN_NOTHINGTODO hoặc FLATTEN_FAIL. Hãy gọi GenerateFormAppearances trước khi gộp các giá trị biểu mẫu đã điền |
span class="keyword">function FocusFormField(Index: Integer): Boolean | Làm việc với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">function FocusNextFormField: Integer | Làm việc với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">function FocusPreviousFormField: Integer | Làm việc với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldDetails: TPdfFormFieldInfo | Returns TPdfFormFieldInfo for the current logical form field |
span class="keyword">function FocusedFormFieldIndex: Integer | Làm việc với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldName: WString | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
span class="keyword">function FocusedFormFieldText: WString | Làm việc với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldValue: WString | Trả về giá trị logic hiện tại của trường biểu mẫu thông qua FocusedFormFieldIndex mà không phụ thuộc vào caret tương tác |
FontAscent | Trả về ascent của phông chữ (khoảng cách từ đường cơ sở tới nét vươn cao nhất) của phông chữ thuộc đối tượng trang, được biểu diễn bằng PDF points và đã scale theo cỡ chữ do bên gọi cung cấp |
FontBaseName | Trả về tên cơ sở PostScript (mục /BaseFont trong PDF font dictionary) của phông được một page object sử dụng, bao gồm mọi hậu tố kiểu như -Bold hoặc ,Italic |
FontData | Truy cập theo chỉ số chỉ đọc tới các byte thô của chương trình phông nhúng (chỉ có dữ liệu khi phông được nhúng) |
FontDescent | Trả về descent của phông chữ (khoảng cách từ đường cơ sở xuống điểm thấp nhất của nét vươn xuống) của phông chữ thuộc object trang, được biểu diễn bằng point PDF và đã scale theo cỡ chữ do bên gọi cung cấp |
FontFamilyName | Trả về tên family kiểu chữ (ví dụ Helvetica, Times New Roman, Noto Sans CJK SC) của phông chữ mà một page object trên trang hiện tại đang dùng |
FontHandle | Trả về handle FPDF_FONT gốc của phông chữ được đối tượng trang sử dụng. Handle này cho phép người gọi nâng cao truy cập trực tiếp vào các API phông chữ PDFium chưa được thành phần bao bọc |
FontIsEmbedded | Cho biết phông chữ được đối tượng trang sử dụng có được nhúng bên trong PDF (True) hay chỉ được tham chiếu và phân giải lúc xem từ hệ điều hành (False) |
FontItalicAngle | Truy cập chỉ đọc theo chỉ số vào góc nghiêng của phông chữ theo độ (giá trị âm cho kiểu italic điển hình; 0 cho kiểu thẳng) |
FontSize | Trả về cỡ phông đã render, tính bằng point PDF, của một ký tự riêng lẻ trên trang hiện tại FontSize là bí danh của CharacterFontSize được giữ lại để tương thích ngược |
FontWeight | Trả về độ đậm kiểu CSS của phông chữ mà một page object trên trang hiện tại đang dùng. Giá trị điển hình là 400 cho regular và 700 cho bold |
FormField | Thuộc tính theo chỉ số — trả về một form field trên trang hiện tại |
FormFieldAt | Đọc hoặc ghi giá trị của trường biểu mẫu nằm tại tọa độ trang đã cho |
FormFieldCount | Số lượng widget trường biểu mẫu trên trang đang hoạt động |
FormFieldInfo | Bản ghi đầy đủ mô tả một form field tại chỉ số cho trước trên trang đang active |
FormFieldInfoAt | Bản ghi form field cho widget nằm tại tọa độ trang đã cho |
span class="keyword">function FormFieldTabOrder: TPdfIntegerArray | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">property FormFill | Interface that lets your application supply forms-related callbacks (Beep, Invalidate, OutputDocFile, etc.). |
FormHandle | Handle native của môi trường form-fill PDFium được gắn với tài liệu |
span class="keyword">property FormType | Cho biết tài liệu có chứa field AcroForm, XFA hay không có form nào cả |
span class="keyword">procedure GenerateFormAppearances | Tạo lại /AP (appearance stream) cho mọi widget biểu mẫu trên mọi trang bằng cách render từng trang qua FPDF_FFLDraw. Đây là lời gọi đi kèm được khuyến nghị cho các gán FormField[i] := value — nếu không có nó, giá trị biểu mẫu có thể chỉ hiện khi field được focus và bất kỳ thao tác flatten nào sau đó sẽ âm thầm làm mất giá trị. Hãy gọi sau mọi gán FormField[] và trước SaveAs / FlattenPage / FlattenAllPages |
span class="keyword">function GetPageBox | Đọc hình chữ nhật của page box được đặt tên trên trang hiện tại |
HasBookmarkChildren | Returns True when the given outline node has at least one child bookmark. |
HasFormFieldAt | Hit-test trả về True khi một widget field biểu mẫu phủ lên tọa độ trang đã cho |
Image | Thuộc tính theo chỉ số — trả về một image page object trên trang hiện tại (handle + bbox + bit depth + color space) |
ImageCount | Số lượng raster image XObject trên trang đang active |
ImportNPagesToOne | Builds a brand-new TPdf whose pages are NumX×NumY composites of the source document's pages, suitable for N-up printing layouts. |
ImportPages | Sao chép một hoặc nhiều trang từ một TPdf đang mở khác vào tài liệu này |
ImportPagesByIndex | Nhập một tập trang cụ thể từ một TPdf khác theo chỉ số 0-based, với khả năng điều khiển vị trí chèn trong tài liệu hiện tại |
span class="keyword">function ImportPreferences(Pdf: TPdf): Boolean | Bit-set controlling how ImportPages copies content (resources, named destinations, comments, etc.). |
span class="keyword">function InsertFormObjectFromXObject(XObject: TPdfXObject): FPDF_PAGEOBJECT | Chèn MỘT bản sao của trang được bọc bởi TPdfXObject vào trang hiện tại của tài liệu này, rồi trả về FPDF_PAGEOBJECT để bên gọi có thể định vị / co giãn / xoay nó |
IsTagged | Cho biết tài liệu có khai báo structure tree cho trợ năng hay không |
JavaScriptAction | Thuộc tính được đánh chỉ số — trả về một JavaScript action cấp tài liệu (name + Type + Source string) |
JavaScriptActionCount | Số JavaScript action cấp tài liệu được lưu trong PDF |
JavaScriptActions | Toàn bộ JavaScript action cấp tài liệu được trả về dưới dạng một mảng động duy nhất |
Keywords | Danh sách từ khóa do tác giả cung cấp từ document Info dictionary |
Language | Mã định danh ngôn ngữ tự nhiên được khai báo trong document catalog |
LineTo | Appends a straight line from the current point to (X, Y). |
LinkAnnotation | Thuộc tính được đánh chỉ số — trả về Link /Annot Subtype tường minh tại chỉ số đã cho, bao gồm action hoặc destination đích |
LinkAnnotationCount | Number of /Link annotation entries on a specific page. |
span class="keyword">procedure LoadCustomDocument(AStream: TStream; AOwnsStream: Boolean = False) | Tải một PDF từ bất kỳ TStream nào có thể seek bằng trình đọc khối theo nhu cầu của PDFium, nên các tài liệu nhiều GB và nguồn từ xa / cơ sở dữ liệu không cần sao chép toàn bộ vào bộ nhớ trước |
span class="keyword">procedure LoadDocument | Mở và tải tài liệu PDF từ FileName |
span class="keyword">property MetaText | Returns the document XMP metadata packet as a wide string. |
ModifiedDate | Dấu thời gian sửa đổi cuối được ghi trong document Info dictionary |
MovePages | Sắp xếp lại các trang của tài liệu này tại chỗ theo chỉ số 0-based, giữ nguyên số lượng trang |
MoveTo | Starts a new sub-path at the given page coordinate. |
ObjectBitmap | Thuộc tính được đánh chỉ số — trả về một image page object dưới dạng VCL TBitmap có thể render (giải mã mất mát từ JPX/CCITT/etc.) |
ObjectBounds | Tight axis-aligned bounding rectangle of a single page object on the current page, |
ObjectCount | Số lượng page object chỉ đọc (text, path, image, shading, form) trên trang hiện tại |
ObjectHandle | Con trỏ FPDF_PAGEOBJECT thô của PDFium cho đối tượng trang được chỉ định, dùng cho các lời gọi trực tiếp vào native PDFium C API |
ObjectTransparent | Cho biết một page object có tham gia vào transparency PDF hay không — thông qua |
ObjectType | Trả về danh mục của page object tại chỉ số đã chỉ định — text, path, image, shading hoặc form XObject. Phân loại này khớp với toán tử content-stream của PDF đã tạo ra object và cho phép bên gọi lặp qua mảng page object bằng một switch dispatch duy nhất |
span class="keyword">property OnFormFieldEnter | Được phát khi form-fill engine nhận focus vào một form field |
span class="keyword">property OnFormFieldExit | Fired when the form-fill engine loses focus on a form field. |
span class="keyword">property OnPageChange | Được phát khi Pdf.Page được gán sang một chỉ số trang khác |
span class="keyword">property OnUnsupportedFeature | Được phát khi tài liệu dùng một tính năng PDF mà PDFium không triển khai (ví dụ XFA full forms, 3D annotations, multimedia) |
Page | Handle trang PDFium native cho trang hiện đang hoạt động |
span class="keyword">property PageBounds[Box: TPdfPageBox]: TPdfRectangle | Thuộc tính cấp trang — hình chữ nhật cho page box được yêu cầu (MediaBox/CropBox/BleedBox/TrimBox/ArtBox) |
span class="keyword">property PageBox[Box: TPdfPageBox]: TPdfRectangle | Thuộc tính cấp trang — đọc hoặc ghi một hình chữ nhật page-box cụ thể trên trang hiện tại |
span class="keyword">property PageCount: Integer | Thuộc tính cấp trang — tổng số trang trong tài liệu đang mở |
PageHeight | Chiều cao của trang đang hoạt động tính bằng đơn vị không gian người dùng PDF (point = 1/72 inch) |
span class="keyword">property PageLabel: WString | Thuộc tính cấp trang — trả về nhãn trang người dùng nhìn thấy (chẳng hạn "iv" hoặc "A-3") thay vì chỉ số 0-based |
span class="keyword">property PageMode: TPageMode | Thuộc tính cấp trang — gợi ý /PageMode của tài liệu (Outlines, Thumbs, FullScreen, ...) |
span class="keyword">property PageNumber: Integer | Thuộc tính cấp trang — chỉ số trang 1-based của trang hiện tại (nên PageNumber = Page + 1) |
span class="keyword">property PageRotation: TRotation | Thuộc tính cấp trang — góc xoay áp dụng cho trang hiện tại khi render (ro0 / ro90 / ro180 / ro270) |
span class="keyword">function PageToDevice(PageX, PageY: Double; Left, Top, Width, Height: Integer; Rotation: TRotation; out X, Y: Integer): Boolean | Chuyển tọa độ trang của một điểm sang tọa độ màn hình |
span class="keyword">property PageWidth: Double | Thuộc tính cấp trang — chiều rộng của trang hiện tại tính bằng point (1 pt = 1/72 inch) |
function PageWordBoxes: TPdfWordBoxes | Trả về các bản ghi TPdfWordBox cho những từ trên trang TPdf hiện tại với dải ký tự và hình chữ nhật page-space |
span class="keyword">property Password | Decryption password assigned before Active := True. |
PdfAConformance | Mức tuân thủ PDF/A chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfA tường minh |
PdfEConformance | Mức tuân thủ PDF/E chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfE tường minh |
PdfRConformance | Mức tuân thủ PDF/R chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfR tường minh |
PdfUaConformance | Mức tuân thủ PDF/UA chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfUa tường minh |
PdfVTConformance | Mức tuân thủ PDF/VT chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfVT tường minh |
PdfVersion | Cờ chỉ đọc — phiên bản đặc tả PDF của tài liệu đang mở (ví dụ pv14, pv17, pv20) |
PdfXConformance | Mức tuân thủ PDF/X chỉ đọc của tài liệu đang mở hiện tại, không cần gọi ValidatePdfX tường minh |
span class="keyword">property Permissions | Returns the owner-password permission bits as decoded from the /Encrypt dictionary. |
PrintCopies | Số bản sao được gợi ý nhúng mà tác giả PDF muốn hộp thoại in mặc định dùng đến — mục /NumCopies trong từ điển /ViewerPreferences của tài liệu |
PrintPageRanges | Danh sách đã giải mã các dải trang đánh số từ 1 mà tác giả PDF muốn hộp thoại in gợi ý — mục /PrintPageRange trong từ điển /ViewerPreferences của tài liệu |
PrintPaperHandling | Decoded value of the document's /ViewerPreferences /Duplex hint — |
PrintScaling | Giá trị đã giải mã của gợi ý /ViewerPreferences /PrintScaling của tài liệu — cho biết tác giả PDF muốn hộp thoại in của trình xem mặc định về co giãn vừa trang do ứng dụng định nghĩa hay in trang ở kích thước do tác giả đặt |
Producer | Tên của thư viện hoặc bộ chuyển đổi PDF đã tạo ra tệp |
ReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
span class="keyword">function ReadablePageContent(PageNumber: Integer): TPdfReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
function ReadingUnits: TPdfReadingUnits | Tạo các bản ghi TPdfReadingUnit ở mức câu từ luồng nội dung có thể đọc của trang hiện tại cho các quy trình đọc-nghe hỗ trợ trợ năng |
Rectangle | Returns one text bounding rectangle from the current page text layout. |
span class="keyword">function RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | Đếm số vùng hình chữ nhật do một đoạn văn bản chiếm giữ. Hàm sẽ tự động gộp các hộp ký tự nhỏ thành một hộp lớn hơn nếu các ký tự đó nằm trên cùng một dòng và dùng cùng cài đặt phông |
span class="keyword">procedure ReloadPage | Tải lại trang hiện được chọn từ engine PDFium, làm mới bộ nhớ đệm đối tượng trang |
span class="keyword">procedure RemoveObject(Index: Integer; DestroyObject: Boolean = True) | Xóa đối tượng trang được chỉ định khỏi trang hiện tại Khi DestroyObject là True, đối tượng đã xóa sẽ được giải phóng sau khi xóa Luồng nội dung của trang được tạo lại tự động |
span class="keyword">procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []) | Render contents of a page to a device (screen, bitmap, or printer). |
RenderPageProgressive | Cancellable variant of RenderPage that drives PDFium's progressive rendering loop and polls an IPdfCancellationToken between iterations so long high-DPI renders can abort mid-page instead of blocking until completion. |
function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer): TBitmap | Renders any one-based page into a bitmap that fits within the requested thumbnail bounds |
span class="keyword">function RenderTile(Left, Top, Width, Height, PageWidth, PageHeight: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap | Kết xuất một vùng hình chữ nhật của trang thành một bitmap mới. Bitmap trả về phải được giải phóng thủ công |
span class="keyword">function SaveAs(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown): Boolean | Saves the copy of PDF document to the specified stream. If PdfVersion is pv13 through pv17, the saved output is normalized and validated for that target version, including existing catalog /Version overrides in incremental output. The validator covers the full PDF 1.1–1.7 / ISO 32000-1 feature timeline: filters (FlateDecode, JBIG2Decode, JPXDecode), object & xref streams, transparency (SMask, ca/CA, blend modes), Tagged PDF (StructTreeRoot, MarkInfo), color spaces (ICCBased, DeviceN), page boxes (BleedBox/TrimBox/ArtBox), output intents, optional content, AcroForm, CID/Type 0 and OpenType fonts, AES & AES-256 encryption (CFM AESV2/AESV3), all version-restricted annotation subtypes (Widget, Sound, Movie, FreeText, Line, Square, Circle, Highlight, Underline, StrikeOut, Stamp, Ink, Popup, FileAttachment, TrapNet, Squiggly, PrinterMark, Polygon, PolyLine, Caret, Screen, Watermark, 3D, Redact), version-restricted action types (SubmitForm, ResetForm, ImportData, Hide, Named, JavaScript, Trans, SetState, Rendition, GoToE, GoTo3DView), and catalog entries (Perms, Legal, Collection, Requirements, NeedsRendering). Anything that exceeds the chosen target version raises EPdfError. If the document has no existing OpenAction and the target version supports it, the saved PDF opens on the first page with Fit Height zoom. Trial builds apply the trial watermark during save. |
SaveAsPdfA | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/A-1b bằng cách hậu xử lý PDF nền với một bản cập nhật gia tăng chèn luồng siêu dữ liệu XMP, OutputIntent ICC sRGB và danh mục tài liệu đã cập nhật |
span class="keyword">function SaveAsPdfAToStream(Stream: TStream; const Options: TPdfASaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
SaveAsPdfE | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/E-1 bằng cách hậu xử lý PDF nền với một bản cập nhật gia tăng chèn các marker định dạng tệp PDF/E-1 (ISO 24517-1:2008) |
span class="keyword">function SaveAsPdfEToStream(Stream: TStream; const Options: TPdfESaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
SaveAsPdfR | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/R-1 (ISO 23504-1:2020, phần con của PDF dành cho truyền và lưu trữ ảnh raster dùng cho tài liệu quét) |
span class="keyword">function SaveAsPdfRToStream(Stream: TStream; const Options: TPdfRSaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
SaveAsPdfUa | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/UA-1 bằng cách hậu xử lý PDF nền với một bản cập nhật gia tăng chèn các marker định dạng tệp PDF/UA |
span class="keyword">function SaveAsPdfUaToStream(Stream: TStream; const Options: TPdfUaSaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
SaveAsPdfVT | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/VT-1 một tệp (ISO 16612-2:2010, phần con của PDF dành cho in biến đổi và giao dịch) |
span class="keyword">function SaveAsPdfVTToStream(Stream: TStream; const Options: TPdfVTSaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
SaveAsPdfX | Lưu tài liệu hiện tại thành tệp tuân thủ PDF/X-1a:2001, PDF/X-3:2002 hoặc PDF/X-4 bằng cách hậu xử lý PDF nền với một bản cập nhật gia tăng chèn các marker định dạng tệp PDF/X (họ ISO 15930) |
span class="keyword">function SaveAsPdfXToStream(Stream: TStream; const Options: TPdfXSaveOptions): Boolean | Biến thể trong bộ nhớ — ghi đầu ra vào bất kỳ TStream nào mà không cần staging qua đĩa |
span class="keyword">procedure SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | Đặt các cờ trường AcroForm cho trường biểu mẫu tại chỉ số annotation đã chỉ định trên trang hiện tại |
span class="keyword">procedure SetFormFieldFlagsAt(X, Y: Single; const Flags: TPdfFormFieldFlags) | Sets the Flags bit field on the form field at the given coordinates. |
span class="keyword">procedure SetPageBox(Box: TPdfPageBox; const Rectangle: TPdfRectangle) | Ghi một hình chữ nhật mới cho hộp trang được đặt tên (MediaBox / CropBox / BleedBox / TrimBox / ArtBox) trên trang hiện tại |
SetText | Adds a text page object at the given page coordinate. |
span class="keyword">procedure SetTextPositions(ObjectIndex: Integer; const Positions: TPdfSingleArray) | Đặt vị trí cho từng ký tự của đối tượng text đã chỉ định. Vị trí ký tự đầu tiên được ngầm hiểu là 0; Positions[0] đặt vị trí ký tự thứ hai, Positions[1] đặt ký tự thứ ba, và cứ tiếp tục như vậy. Giá trị tính bằng point và tương đối so với gốc của đối tượng text |
Signature | Indexed property — returns one digital-signature record (signer, reason, contact, byte range) |
SignatureCount | Số trường chữ ký số được nhúng trong tài liệu |
StructureElements | Thuộc tính có chỉ số - trả về các phần tử con của một phần tử cây cấu trúc logic (StructTree) |
Subject | Trả về giá trị của mục /Subject từ document information dictionary của PDF |
span class="keyword">function Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | Trích xuất chuỗi text từ trang. Các tham số StartIndex và Count quyết định ký tự nào sẽ được trích xuất. StartIndex là chỉ số bắt đầu từ 0 |
span class="keyword">function TextInRectangle(Left, Top, Right, Bottom: Double): WString | Trích xuất text trong một biên hình chữ nhật trên trang |
TextPage | Handle text-page native của PDFium cho trang đang active hiện tại |
span class="keyword">property Thumbnail | Trả về các byte thô của mục /Thumb cho trang hiện tại (preview được tính sẵn tùy chọn, thường là raster 64x64) |
Title | Trả về giá trị của mục /Title trong từ điển thông tin tài liệu PDF |
Transparent | Cho biết trang hiện đang active có chứa nội dung trong suốt hay không |
span class="keyword">procedure UpdatePage | Commits in-memory edits made through CreateAnnotation, AddImage, AddText, SetFormFieldFlagsAt, etc. to the underlying PDFium page. |
span class="keyword">property UserPermissions | Trả về các bit quyền theo user password (một tập con của Permissions) |
span class="keyword">function ValidatePdfA: TPdfAValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ PDF/A và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
span class="keyword">function ValidatePdfE: TPdfEValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
span class="keyword">function ValidatePdfR: TPdfRValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
span class="keyword">function ValidatePdfUa: TPdfUaValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
span class="keyword">function ValidatePdfVT: TPdfVTValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
span class="keyword">function ValidatePdfX: TPdfXValidationResult | Kiểm tra PDF đang mở để tìm các dấu hiệu tuân thủ và trả về kết quả có cấu trúc với mức tuân thủ đã phát hiện cùng tập các vấn đề cụ thể được tìm thấy |
ViewerPreference | Thuộc tính có chỉ mục — trả về giá trị nguyên của một khóa /ViewerPreferences (NumCopies, PrintScaling, v.v.) |
WebLink | URL và các hình chữ nhật bao của một web link được tự động phát hiện trên trang |
WebLinkCount | Số URL web được tự động phát hiện khi quét văn bản của một trang |
span class="keyword">property XFA | Trả về gói XML XFA được nhúng trong tài liệu (PDF/A 2.0 đã ngừng dùng định dạng này, nhưng các biểu mẫu do Acrobat tạo vẫn sử dụng nó) |
TPdfView là một điều khiển trực quan có thể cuộn để hiển thị và tương tác với tài liệu PDF. Nó cần một tham chiếu Pdf: TPdf
| API | Mô tả |
span class="keyword">property About: string | Documents the About member published by TPdfView. |
Active | Kích hoạt hoặc vô hiệu hóa trình xem, mở tài liệu PDF được liên kết và kết xuất trang đã chọn |
span class="keyword">property ActualSizeZoom[PageNumber: Integer]: Double | Hệ số zoom chỉ đọc dùng để hiển thị trang ở kích thước vật lý thật trên màn hình chính |
span class="keyword">procedure AddImage(const FileName: string; X, Y, Width, Height: Integer); overload | Thêm một ảnh vào trang hiện đang hiển thị bởi TPdfView, chuyển đổi một hình chữ nhật tọa độ khách của trình xem sang tọa độ trang PDF |
span class="keyword">function AddJpegImage(JpegImage: TStream; X, Y, Width, Height: Integer): Boolean | TPdfView wrapper that forwards to TPdf.AddJpegImage. |
span class="keyword">procedure AddPicture(Picture: TPicture; X, Y: Integer); overload | TPdfView wrapper that forwards to TPdf.AddPicture. |
Align | Controls how the PDF viewer is laid out inside its parent container. |
span class="keyword">property AllowUserPageChange: Boolean | Allows user input (mouse wheel, scroll bar drag, key bindings) to change the current page. |
span class="keyword">property AllowUserTextSelection: Boolean | Bật hoặc tắt việc chọn text do người dùng điều khiển trong viewer |
Anchors | Chỉ định những mép nào của trình xem sẽ giữ khoảng cách cố định với các mép tương ứng của cha nó khi cha được đổi kích thước |
span class="keyword">property Annotation[Index: Integer]: TPdfAnnotation | TPdfView wrapper that forwards to TPdf.Annotation. |
span class="keyword">property AnnotationCount: Integer | TPdfView wrapper that forwards to TPdf.AnnotationCount. |
span class="keyword">property AsyncRendering: Boolean | Cờ opt-in yêu cầu view vẽ một lớp phủ nhỏ "Loading..." trong lúc render dài để các ứng dụng tự dùng worker riêng cho render ngoài thread vẫn có cùng một dấu hiệu trực quan |
span class="keyword">property Bitmap[Index: Integer]: TBitmap | TPdfView wrapper that forwards to TPdf.Bitmap. |
span class="keyword">property BitmapCount: Integer | TPdfView wrapper that forwards to TPdf.BitmapCount. |
span class="keyword">property Canvas: TCanvas | Drawing canvas exposed by the control after a page is rendered. |
span class="keyword">property ChangePageOnMouseScrolling: Boolean | Trong chế độ SinglePage, điều khiển việc cuộn bằng con lăn ở mép trang có chuyển sang trang kế tiếp hay không |
span class="keyword">property Character[Index: Integer]: WideChar | TPdfView wrapper that forwards to TPdf.Character. |
span class="keyword">property CharacterAngle[Index: Integer]: Single | TPdfView wrapper that forwards to TPdf.CharacterAngle. |
span class="keyword">property CharacterCount: Integer | TPdfView wrapper that forwards to TPdf.CharacterCount. |
span class="keyword">property CharacterFontSize[Index: Integer]: Double | TPdfView wrapper that forwards to TPdf.CharacterFontSize. |
span class="keyword">property CharacterFontWeight[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.CharacterFontWeight. |
span class="keyword">property CharacterGenerated[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterGenerated. |
span class="keyword">function CharacterIndexAtPos(X, Y: Integer; ToleranceX, ToleranceY: Double): Integer | Trả về chỉ số ký tự trên trang hiện tại gần pixel màn hình (X, Y) nhất, hoặc -1 nếu không có ký tự nào đủ gần |
span class="keyword">property CharacterIsHyphen[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterIsHyphen. |
span class="keyword">property CharacterMapError[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.CharacterMapError. |
span class="keyword">property CharacterOrigin[Index: Integer]: TPoint | TPdfView wrapper that forwards to TPdf.CharacterOrigin. |
span class="keyword">property CharacterRectangle[Index: Integer]: TRect | TPdfView wrapper that forwards to TPdf.CharacterRectangle. |
span class="keyword">property Charcode[Index: Integer]: WideChar | TPdfView wrapper that forwards to TPdf.Charcode. |
span class="keyword">procedure ClearFormFieldFocus | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">procedure ClearHighlight | TPdfView wrapper that forwards to TPdfView.ClearHighlight. |
span class="keyword">procedure ClearReadingHighlight | Controls the TPdfView reading-highlight overlay used by synchronized text-to-speech playback |
procedure ClearReadingWord | Clears the current word-level reading cursor overlay on TPdfView |
span class="keyword">procedure ClearSelection | Clears the current text selection and invalidates the view. |
Color | Đặt màu nền được vẽ giữa các hình chữ nhật trang và quanh mép tài liệu |
Constraints | Xác định chiều rộng và chiều cao tối thiểu và tối đa mà trình xem PDF được phép đạt tới khi cha của nó được đổi kích thước |
span class="keyword">function CopySelectionToClipboard: Boolean | Copies the currently selected text to the Windows clipboard as CF_UNICODETEXT. |
constructor Create(AOwner: TComponent); override | Creates the TPdfView control and initializes rendering, scrolling, selection, and form interaction state |
span class="keyword">procedure CreateAnnotation(const Annotation: TPdfAnnotation) | TPdfView wrapper that forwards to TPdf.CreateAnnotation. |
span class="keyword">property CurrentCharIndex: Integer | Read-only zero-based character index under the current mouse cursor (or last hit-tested point). |
span class="keyword">procedure DeleteAnnotation(Index: Integer) | TPdfView wrapper that forwards to TPdf.DeleteAnnotation. |
destructor Destroy; override | Giải phóng tài nguyên trình xem, các buffer kết xuất, và các đăng ký tài liệu trước khi TPdfView bị hủy |
span class="keyword">function DeviceToPage(X, Y: Integer; out PageX, PageY: Double): Boolean; overload | Chuyển đổi một pixel màn hình (X, Y) bên trong khung xem thành một điểm không gian người dùng PDF trên trang hiện tại |
span class="keyword">property DisplayMode: TPdfDisplayMode | Chế độ bố cục: một trang, liên tục, hai trang, hai trang liên tục, có hoặc không có bìa |
span class="keyword">property DragCursor | Documents the DragCursor member published by TPdfView. |
span class="keyword">property DragKind | Documents the DragKind member published by TPdfView. |
span class="keyword">property DragMode | Documents the DragMode member published by TPdfView. |
Enabled | Điều khiển việc trình xem PDF có chấp nhận đầu vào từ chuột và bàn phím hay không |
span class="keyword">property Find: FPDF_SCHHANDLE | TPdfView wrapper that forwards to TPdf.Find. |
span class="keyword">function FindFirst(const Text: WString; Options: TSearchOptions= []; StartIndex: Integer= 0; DirectionUp: Boolean= True): Integer | Bắt đầu tìm kiếm văn bản đã chỉ định. StartIndex bắt đầu từ 0, -1 là cuối trang. Tham số DirectionUp quyết định hướng của thao tác tìm kiếm này |
span class="keyword">function FindNext: Integer | TPdfView wrapper that forwards to TPdf.FindNext. |
span class="keyword">function FindPrevious: Integer | TPdfView wrapper that forwards to TPdf.FindPrevious. |
span class="keyword">property FitMode: TPdfFitMode | Điều khiển cách trang hiện tại nằm trong vùng khách của trình xem; được áp dụng lại tự động khi Resize và khi PageNumber thay đổi để các tài liệu dài có kích cỡ trang hỗn hợp vẫn được căn khung |
span class="keyword">function FlattenPage(nFlag: Integer = FLAT_NORMALDISPLAY): Integer | TPdfView wrapper that forwards to TPdf.FlattenPage. |
span class="keyword">function FocusFormField(Index: Integer): Boolean | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">function FocusNextFormField: Integer | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">function FocusPreviousFormField: Integer | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldDetails: TPdfFormFieldInfo | Returns TPdfFormFieldInfo for the current logical form field |
span class="keyword">function FocusedFormFieldIndex: Integer | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldName: WString | Returns the current logical form field display name, preferring AlternateName and falling back to Name |
span class="keyword">function FocusedFormFieldText: WString | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
function FocusedFormFieldValue: WString | Trả về giá trị logic hiện tại của trường biểu mẫu thông qua FocusedFormFieldIndex mà không phụ thuộc vào caret tương tác |
span class="keyword">property FontAscent[Index: Integer; FontSize: Single]: Single | TPdfView wrapper that forwards to TPdf.FontAscent. |
span class="keyword">property FontBaseName[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FontBaseName. |
span class="keyword">property FontData[Index: Integer]: TBytes | TPdfView wrapper that forwards to TPdf.FontData. |
span class="keyword">property FontDescent[Index: Integer; FontSize: Single]: Single | TPdfView wrapper that forwards to TPdf.FontDescent. |
span class="keyword">property FontFamilyName[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FontFamilyName. |
span class="keyword">property FontHandle[Index: Integer]: FPDF_FONT | TPdfView wrapper that forwards to TPdf.FontHandle. |
span class="keyword">property FontIsEmbedded[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.FontIsEmbedded. |
span class="keyword">property FontItalicAngle[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.FontItalicAngle. |
span class="keyword">property FontSize[Index: Integer]: Double | TPdfView wrapper that forwards to TPdf.FontSize. |
span class="keyword">property FontWeight[Index: Integer]: Integer | TPdfView wrapper that forwards to TPdf.FontWeight. |
span class="keyword">function FormCanRedo: Boolean | Reports whether the focused AcroForm widget has at least one undone edit to redo. |
span class="keyword">function FormCanUndo: Boolean | Reports whether the focused AcroForm widget has at least one edit to undo. |
span class="keyword">property FormField[Index: Integer]: WString | TPdfView wrapper that forwards to TPdf.FormField. |
span class="keyword">property FormFieldAt[X, Y: Integer]: WString | TPdfView wrapper that forwards to TPdf.FormFieldAt. |
span class="keyword">property FormFieldCount: Integer | TPdfView wrapper that forwards to TPdf.FormFieldCount. |
span class="keyword">property FormFieldInfo[Index: Integer]: TPdfFormFieldInfo | TPdfView wrapper that forwards to TPdf.FormFieldInfo. |
span class="keyword">property FormFieldInfoAt[X, Y: Integer]: TPdfFormFieldInfo | TPdfView wrapper that forwards to TPdf.FormFieldInfoAt. |
span class="keyword">function FormFieldTabOrder: TPdfIntegerArray | Hoạt động với con trỏ focus logic của AcroForm trên trang hiện tại cho quy trình làm việc bằng bàn phím, giọng nói và khả năng truy cập |
span class="keyword">function FormRedo: Boolean | Redoes the most recently undone edit on the focused AcroForm widget, driving PDFium's per-widget redo history. |
span class="keyword">function FormUndo: Boolean | Undoes the most recent edit on the focused AcroForm widget, driving PDFium's per-widget undo history. |
span class="keyword">procedure GenerateFormAppearances | TPdfView wrapper that forwards to TPdf.GenerateFormAppearances. |
span class="keyword">function GetSelectedFormText: WString | Trả về văn bản hiện đang được chọn bên trong widget AcroForm đang focus trên trang đang hoạt động của khung xem |
span class="keyword">property HasFormFieldAt[X, Y: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.HasFormFieldAt. |
span class="keyword">function HasSelection: Boolean | Returns whether any text is currently selected in the viewer. |
span class="keyword">property HighlightColor: TColor | Màu của hình chữ nhật được vẽ lên mỗi kết quả khớp do HighlightSearchText trả về. Mặc định là clYellow; được công bố để ứng dụng có thể theo chủ đề cho phần tô sáng |
span class="keyword">function HighlightSearchText(const Text: WString; MatchCase: Boolean= False; MatchWholeWord: Boolean= False): Integer | TPdfView wrapper that forwards to TPdfView.HighlightSearchText. |
span class="keyword">property Image[Index: Integer]: TPdfImage | TPdfView wrapper that forwards to TPdf.Image. |
span class="keyword">property ImageCount: Integer | TPdfView wrapper that forwards to TPdf.ImageCount. |
span class="keyword">property LinkAnnotation[PageNumber, Index: Integer]: TLinkAnnotation | TPdfView wrapper that forwards to TPdf.LinkAnnotation. |
span class="keyword">function LinkAnnotationAtPos(X, Y: Integer; out PageNumber: Integer): Integer; overload | Returns the link-annotation index at the screen pixel (X, Y), or -1. |
span class="keyword">property LinkAnnotationCount[PageNumber: Integer]: Integer | TPdfView wrapper that forwards to TPdf.LinkAnnotationCount. |
span class="keyword">property LinkOptions: TPdfViewLinkOptions | Tập published điều khiển bốn kiểu link action của PDFium mà view sẽ tự động theo khi người dùng click link |
LoadingColor | Màu tô của phần giữ chỗ “loading” được vẽ trong khi trang vẫn đang được kết xuất |
LoadingText | Văn bản được hiển thị ở giữa trang trong khi kết xuất bất đồng bộ vẫn đang diễn ra |
property NightDuotoneInk: TColor | Controls the ink colour used by the reNightDuotone low-vision render option |
property NightDuotonePaper: TColor | Controls the paper colour used by the reNightDuotone low-vision render option |
span class="keyword">property ObjectBitmap[Index: Integer]: TBitmap | TPdfView wrapper that forwards to TPdf.ObjectBitmap. |
span class="keyword">property ObjectBounds[Index: Integer]: TPdfRectangle | TPdfView wrapper that forwards to TPdf.ObjectBounds. |
span class="keyword">property ObjectCount: Integer | TPdfView wrapper that forwards to TPdf.ObjectCount. |
span class="keyword">property ObjectHandle[Index: Integer]: Pointer | TPdfView wrapper that forwards to TPdf.ObjectHandle. |
span class="keyword">property ObjectTransparent[Index: Integer]: Boolean | TPdfView wrapper that forwards to TPdf.ObjectTransparent. |
span class="keyword">property ObjectType[Index: Integer]: TObjectType | TPdfView wrapper that forwards to TPdf.ObjectType. |
span class="keyword">property Options: TRenderOptions | Tập hợp các gợi ý kết xuất và tùy chọn hỗ trợ thị lực yếu sau khi TPdfView đã kết xuất |
span class="keyword">property Page: FPDF_PAGE | TPdfView wrapper that forwards to TPdf.Page. |
span class="keyword">property PageBorderColor: TColor | Màu của đường viền 1 pixel được vẽ quanh mỗi hình chữ nhật trang |
span class="keyword">property PageBounds: TPdfRectangle | TPdfView wrapper that forwards to TPdf.PageBounds. |
span class="keyword">property PageColor: TColor | Màu nền được vẽ bên dưới trang PDF đã kết xuất, tách biệt với Color của điều khiển bao quanh. Mặc định là clWhite để các trang PDF vẫn trắng như giấy ngay cả khi Color của điều khiển chủ dùng giao diện tối |
span class="keyword">property PageCount: Integer | TPdfView wrapper that forwards to TPdf.PageCount. |
span class="keyword">property PageHeight: Double | TPdfView wrapper that forwards to TPdf.PageHeight. |
span class="keyword">property PageHeightZoom[PageNumber: Integer]: Double | Hệ số zoom chỉ đọc vừa khít chiều cao trang vào view |
span class="keyword">property PageLabel: WString | TPdfView wrapper that forwards to TPdf.PageLabel. |
span class="keyword">property PageNumber: Integer | TPdfView wrapper that forwards to TPdf.PageNumber. |
span class="keyword">property PageRotation: TRotation | TPdfView wrapper that forwards to TPdf.PageRotation. |
PageShadowColor | Fill color of the drop shadow painted beneath each page rectangle. |
span class="keyword">property PageShadowSize: Integer | Độ rộng (tính bằng pixel) của bóng mềm được vẽ quanh mỗi trang trong các chế độ liên tục |
span class="keyword">function PageToDevice(PageX, PageY: Double; out X, Y: Integer): Boolean; overload | Inverse of DeviceToPage: converts a PDF user-space point to a screen pixel inside the view. |
span class="keyword">property PageWidth: Double | TPdfView wrapper that forwards to TPdf.PageWidth. |
span class="keyword">property PageWidthZoom[PageNumber: Integer]: Double | Hệ số zoom chỉ đọc vừa khít chiều rộng trang vào view |
function PageWordBoxes: TPdfWordBoxes | Trả về các record TPdfWordBox cho các từ trên trang hiện tại của TPdfView kèm phạm vi ký tự và hình chữ nhật theo page-space |
span class="keyword">property PageZoom[PageNumber: Integer]: Double | Zoom chỉ đọc cần để vừa trang hiện tại vào view ở DisplayMode hiện tại |
span class="keyword">procedure PaintSelection(SelectionStart, SelectionEnd: Integer; Mask: TColor) | TPdfView wrapper that forwards to TPdfView.PaintSelection. |
span class="keyword">property ParentShowHint | Documents the ParentShowHint member published by TPdfView. |
span class="keyword">property Pdf: TPdf | References the TPdf component có tài liệu được viewer kết xuất |
PopupMenu | Associates a TPopupMenu với trình xem PDF để khi nhấp chuột phải lên trang sẽ hiện một menu ngữ cảnh |
ReadableContent | Returns semantic readable content fragments for screen-reader, text-to-speech, and accessibility workflows |
span class="keyword">property ReadingHighlightColor: TColor | Controls the TPdfView reading-highlight overlay used by synchronized text-to-speech playback |
function ReadingUnits: TPdfReadingUnits | Builds sentence-level TPdfReadingUnit records from the current TPdfView page |
span class="keyword">property ReadingWordColor: TColor | Controls the overlay colour used for the current word-level reading cursor |
span class="keyword">property ReadingWordFollow: Boolean | Controls whether TPdfView scrolls the current spoken word into view while tracking reading |
span class="keyword">property Rectangle[Index: Integer]: TRect | TPdfView wrapper that forwards to TPdf.Rectangle. |
span class="keyword">function RectangleCount(StartIndex: Integer = 0; Count: Integer = MaxInt): Integer | TPdfView wrapper that forwards to TPdf.RectangleCount. |
span class="keyword">procedure ReloadPage | TPdfView wrapper that forwards to TPdf.ReloadPage. |
span class="keyword">procedure RemoveObject(Index: Integer; DestroyObject: Boolean = True) | TPdfView wrapper that forwards to TPdf.RemoveObject. |
span class="keyword">procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []) | Render contents of a page to a device (screen, bitmap, or printer). |
span class="keyword">function RenderTile(Left, Top, Width, Height, PageWidth, PageHeight: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap | Kết xuất một vùng hình chữ nhật của trang thành một bitmap mới. Bitmap trả về phải được giải phóng thủ công |
span class="keyword">property Rotation: TRotation | Visual rotation applied to the rendered page (ro0 / ro90 / ro180 / ro270). |
span class="keyword">procedure SelectAll | Chọn mọi ký tự trên các trang hiện đang được viewer hiển thị |
span class="keyword">function SelectAllFormText: Boolean | Chọn mọi ký tự bên trong widget AcroForm đang có focus trên trang đang hoạt động của view (tương đương Ctrl+A trong widget) |
span class="keyword">function SelectTextRange(Page, StartIndex, Count: Integer): Boolean | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
function SelectWordBox(const Word: TPdfWordBox): Boolean | Chọn phạm vi text được đại diện bởi một TPdfWordBox trên trang hiện tại của TPdfView |
function SelectWordSpan(const Words: TPdfWordBoxes; StartIndex, EndIndex: Integer): Boolean | Selects a same-page span of TPdfWordBox records as one TPdfView text selection |
span class="keyword">function SelectedText: WString | Trả về text đang được chọn hiện tại dưới dạng wide string |
span class="keyword">function SelectionCharCount: Integer | Returns the total number of characters currently selected. |
span class="keyword">property SelectionColor: TColor | Fill color for the user-drag text selection overlay. |
span class="keyword">function SelectionRanges: TPdfUserSelectionRanges | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
span class="keyword">function SelectionRectangles: TPdfRectangles | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
span class="keyword">procedure SetFormFieldFlags(Index: Integer; const Flags: TPdfFormFieldFlags) | TPdfView wrapper that forwards to TPdf.SetFormFieldFlags. |
span class="keyword">procedure SetFormFieldFlagsAt(X, Y: Integer; const Flags: TPdfFormFieldFlags) | TPdfView wrapper that forwards to TPdf.SetFormFieldFlagsAt. |
span class="keyword">procedure SetReadingHighlight(const Rects: TPdfRectangles; PageNumber: Integer) | Controls the TPdfView reading-highlight overlay used by synchronized text-to-speech playback |
procedure SetReadingWord(const Word: TPdfWordBox) | Highlights one TPdfWordBox as the current spoken word on TPdfView |
span class="keyword">function SetSelection(const Ranges: TPdfUserSelectionRanges): Boolean | Reads or writes the TPdfView programmatic text-selection model without requiring user mouse input |
ShowHint | Bật hoặc tắt bong bóng gợi ý hiển thị khi chuột di trên trình xem PDF |
span class="keyword">property SmoothScroll: Boolean | Enables timer-driven segmented animation for line/page scrollbar commands. Thumb tracking remains immediate. |
span class="keyword">property StructureElements: TPdfStructureElements | TPdfView wrapper that forwards to TPdf.StructureElements. |
TabOrder | Xác định vị trí của trình xem PDF trong vòng tab của form cha |
TabStop | Cho biết người dùng có thể đưa focus vào trình xem PDF bằng phím Tab hay không |
span class="keyword">function Text(StartIndex: Integer = 0; Count: Integer = MaxInt): WString | Lớp bao TPdfView chuyển tiếp lời gọi đến TPdf.Text |
span class="keyword">function TextInRectangle(Left, Top, Right, Bottom: Integer): WString; overload | TPdfView wrapper that forwards to TPdf.TextInRectangle. |
span class="keyword">property TextPage: FPDF_TEXTPAGE | Lớp bao TPdfView chuyển tiếp lời gọi đến TPdf.TextPage |
span class="keyword">property Thumbnail: TBitmap | TPdfView wrapper that forwards to TPdf.Thumbnail. |
span class="keyword">property Touch | Documents the Touch member published by TPdfView. |
function TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer | Ánh xạ một độ lệch ký tự trên trang tới TPdfWordBox chứa nó, tô sáng nó và trả về chỉ mục từ |
span class="keyword">property Transparent: Boolean | TPdfView wrapper that forwards to TPdf.Transparent. |
span class="keyword">procedure UpdatePage | TPdfView wrapper that forwards to TPdf.UpdatePage. |
Visible | Hiển thị hoặc ẩn trình xem PDF |
span class="keyword">property WebLink[PageNumber, Index: Integer]: TWebLink | TPdfView wrapper that forwards to TPdf.WebLink. |
span class="keyword">function WebLinkAtPos(X, Y: Integer; out PageNumber: Integer): Integer; overload | Returns the web-link index at the screen pixel (X, Y). |
span class="keyword">property WebLinkCount[PageNumber: Integer]: Integer | TPdfView wrapper that forwards to TPdf.WebLinkCount. |
span class="keyword">property WindowHandle: HWND | Native window handle of the control (Windows-only). |
span class="keyword">property Zoom: Double | Hệ số phóng đại, trong đó 1.0 = 100% (một điểm PDF = một pixel màn hình ở 72 DPI) |
TPdfReadingSession là một máy trạng thái đọc to trung lập với TTS, điều phối các khối TPdfSpokenText, các callback của bộ đọc giọng nói do host cung cấp và việc tô sáng con trỏ từ của TPdfView
TPdfThumbnailView là một điều khiển bảng bên có thể cuộn từ unit FPdfThumbnail. Nó liên kết với một thành phần TPdf và kết xuất một ảnh thu nhỏ cho mỗi hàng để điều hướng trang