示例#1
0
        /// <summary>
        /// Reads the compressed annotation data
        /// </summary>
        private Annotation[] ReadAnnotationData()
        {
            if (Length == 0)
            {
                return(new Annotation[0]);
            }

            using (DjvuReader reader = GetAnnotationDataReader(_dataLocation))
            {
                // Decode the annotation text
                string annotationText = reader.ReadUnknownLengthString();
                return(DecodeAnnotationText(annotationText));
            }
        }