Example #1
0
        public string GetXMPMetadata()
        {
            string     str      = "";
            PDMetadata metadata = this.pdfDocument.getDocumentCatalog().getMetadata();

            if (metadata != null)
            {
                try
                {
                    PDFHelper.DisplayTrialPopupIfNecessary();
                    str = PDFHelper.convertStreamToString(metadata.exportXMPMetadata());
                }
                catch (java.io.IOException oException)
                {
                    throw new System.IO.IOException(oException.getMessage());
                }
            }
            return(str);
        }