FILESIZE

Syntax:

FILESIZE [ switches ]

Description: Retrieves the size of the current document in bytes.
Note: : This information is not stored inside the document's XML. It needs to be obtained from the file system.

Field Value: The size of the current document in bytes.

Switches: Zero or one numeric-formatting-switch or general-formatting-switch and zero or one of the following field-specific-switches.

\k

Round to the nearest kilobyte.

\m

Round to the nearest megabyte.

example:
FILESIZE \# #,##0
FILESIZE \k
FILESIZE \m

the results are:

4,660,736
4661
5