try_generate_xmp_packet


Description:

[ Version ( since = "0.12.2" ) ]
public string? try_generate_xmp_packet (XmpFormatFlags xmp_format_flags, uint32 padding) throws Error

Encode the XMP packet as a null-terminated string.

Note:

Use [method@Metadata.try_generate_xmp_packet] instead.

Parameters:

this

An instance of [class@GExiv2.Metadata]

xmp_format_flags

One of XmpFormatFlags

padding

The padding before the closing `<?xpacket>` tag

Returns:

Encode the XMP packet and return as a null-terminated string.