/// <summary>
            ///Update ApplicationRecord/EnvelopeRecord datasets of IPTC metadata
            /// </summary>
            public static void UpdateIPTCMetadataOfApplicationRecord()
            {
                try
                {
                    //ExStart:UpdateIPTCMetadataOfApplicationRecord

                    // initialize JpegFormat
                    JpegFormat jpegFormat = new JpegFormat(Common.MapSourceFilePath(filePath));

                    // initialize dataset
                    IptcApplicationRecord applicationRecord = new IptcApplicationRecord();

                    // update category
                    applicationRecord.Category = "category";

                    // update copyright notice
                    applicationRecord.CopyrightNotice = "Aspose";

                    // update release date
                    applicationRecord.ReleaseDate = DateTime.Now;

                    // update iptc metadata
                    jpegFormat.UpdateIptc(applicationRecord);

                    // and commit changes
                    jpegFormat.Save();

                    //EXEnd:UpdateIPTCMetadataOfApplicationRecord
                }
                catch (Exception exp)
                {
                    Console.WriteLine(exp.Message);
                }
            }
            /// <summary>
            /// Updates IPTC metadata of Jpeg file
            /// </summary>
            public static void UpdateIPTCMetadataOfJPEG()
            {
                try
                {
                    //ExStart:UpdateIPTCMetadataOfJPEG

                    // initialize JpegFormat
                    JpegFormat jpegFormat = new JpegFormat(Common.MapSourceFilePath(filePath));

                    // initialize IptcCollection
                    IptcCollection collection = new IptcCollection();

                    // add string property
                    collection.Add(new IptcProperty(2, "category", 15, "formats"));

                    // add integer property
                    collection.Add(new IptcProperty(2, "urgency", 10, 5));

                    // update iptc metadata
                    jpegFormat.UpdateIptc(collection);

                    // and commit changes
                    jpegFormat.Save();
                    //ExEnd:UpdateIPTCPhotoMetadataFromXMP
                }
                catch (Exception exp)
                {
                    Console.WriteLine(exp.Message);
                }
            }