コード例 #1
0
        public PDFAnnotationList GetAnnotations(Dictionary <string, byte[]> library_items_annotations_cache)
        {
            if (null == annotations)
            {
                annotations = new PDFAnnotationList();
                PDFAnnotationSerializer.ReadFromDisk(this, annotations, library_items_annotations_cache);
                annotations.OnPDFAnnotationListChanged += annotations_OnPDFAnnotationListChanged;
            }

            return(annotations);
        }
コード例 #2
0
        public void SaveToMetaData()
        {
            // Save the metadata
            PDFMetadataSerializer.WriteToDisk(this);

            // Save the annotations
            if (null != annotations && annotations.Count > 0)
            {
                PDFAnnotationSerializer.WriteToDisk(this);
            }

            // Save the highlights
            if (null != highlights && highlights.Count > 0)
            {
                PDFHighlightSerializer.WriteToDisk(this);
            }

            // Save the inks
            if (null != inks)
            {
                PDFInkSerializer.WriteToDisk(this);
            }
        }