GetPrefixByNamespaceURI

PdfXmpMetadata.GetPrefixByNamespaceURI method

通过命名空间 URI 获取前缀。

public string GetPrefixByNamespaceURI(string namespaceURI)
范围类型描述
namespaceURIString命名空间 URI。

返回值

前缀值。

例子

PdfXmpMetadata xmp = new PdfXmpMetadata("input.pdf");
Console.WriteLine(xmp.GetPrefixByNamespaceURI("http://ns.adobe.com/xap/1.0/"));

也可以看看