PdfSaveOptions.MetadataSyncMode Property

Note: This API is now obsolete.

Gets or sets the value indicating how values in XMP Metadata and Document Info should be synchronized.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[ObsoleteAttribute("This property is obsolete and will be removed in the next version of the library. Please synchronize Document Info and XMP Metadata explicitly using PdfDocument.SyncMetadata method instead.")]
public PdfMetadataSyncMode MetadataSyncMode { get; set; }
VB
<ObsoleteAttribute("This property is obsolete and will be removed in the next version of the library. Please synchronize Document Info and XMP Metadata explicitly using PdfDocument.SyncMetadata method instead.")>
Public Property MetadataSyncMode As PdfMetadataSyncMode
	Get
	Set

Property Value

Type: PdfMetadataSyncMode
The value indicating how values in XMP Metadata and Document Info should be synchronized.

Remarks

Default value: PreferMetadata.

By default, library will synchronize XMP Metadata and Document Info using XMP metadata values from XmpPdfSchema as source of the information. If any of the XmpPdfSchema fields is null then library will use corresponding field of Info as source of the information.

For Author name, for example, library will try Author property first, then Author (if Author is null). After that all fields with similar purpose that are not null (like PdfDocument.Metadata.DublinCore.Creator or PdfDocument.Metadata.Core.Author) will be updated.

See Also