Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFFileAttachment.Size Property

Returns the file attachment’s size in bytes.

#Declaration

Delphi
property Size: Integer read;

#Property Value

Type Description
Integer

A file size, in bytes.

#Remarks

The Attachments page on the PDF Viewer control’s Navigation pane shows the Size property value in the file attachment’s hint:

Attachment Hint Example

Note

The Size property returns 0 if a PDF document stores no size for the file attachment. In this case, the file attachment’s hint includes no size string, and you need to call the Length function and pass the Data property value as its parameter to identify the attached file’s size.

See Also