Ejemplo n.º 1
0
        internal PDFInkList GetInks(Dictionary <string, byte[]> library_items_inks_cache)
        {
            if (null == inks)
            {
                inks = new PDFInkList();
                PDFInkSerializer.ReadFromDisk(this, inks, library_items_inks_cache);
                inks.OnPDFInkListChanged += inks_OnPDFInkListChanged;
            }

            return(inks);
        }
Ejemplo n.º 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);
            }
        }