Summary
What is the naming convention for annotations?
Details
Annotation filenames are in the form of pp000000.ext where pp is the documents pathid, 000000 is the objectid, and the extension is .ano if the subpagenum is either 1 or 0. If the subpagenum is not 1 or 0, the 3-digit subpagenum itself will be used. The pathid, objectid, and subpagenum are encoded base 32 as follows:
Max Pathid 32^2 = 1024
Objectid 32^6 = 1073741824
Subpagenum 32^3 = 32768
When the objectid is greater than or equal to 1073741824, a new encoding scheme is used, the filename will begin with 'ZZ' and no pathid will be added. The number encoded for the objectid will be less the base of 1073741824.
Example:
Objectid = 1073741825
1073741825 / 1073741824 = 1
Annotation file name = zz000001.ext
If the subpagenums encoded extension name happens to be'.BIN', it will be changed to '.BI' to avoid confusion with document.bin files.
Note: Pathid is the document pathid not the annotation pathid.