#include "l_bitmap.h"
L_LTFIL_API L_INT L_SaveXMPMetadata(pszXmlSrc, pszDst)
Saves all XMP metadata from the source XML file to the destination image file.
Character string containing the name of the XML source file that contains the XMP metadata.
Character string containing the name of the destination image file to which the metadata will be saved.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The file referenced by pszXmlSrc
must contain valid XMP data.
The file referenced by pszDst
must be a file format that supports XMP. For example PNG, PDF, JPEG, TIFF and SVG.
To determine if a file format supports XMP, use L_FileMetaDataItemsSupported.
Required DLLs and Libraries
Win32, x64, Linux.
This example demonstrates all of the functions related to XMP MetaData.
It extract XMP MetaData from a source file to a XML file,
then add/update XMP MetaData to a destination file using XML MetaData file.
L_INT SaveXMPMetadata(L_TCHAR* pSrcFile, L_TCHAR* pXmlFile, L_TCHAR* pDstFile)
{
L_INT nRet;
//Extract XMP MetaData & save it to a XML file.
nRet = L_ExtractXMPMetadata(pSrcFile, pXmlFile);
if(nRet != SUCCESS)
return nRet;
/*
Add/Update MetaData in the XML file using any XML parser(if needed).
*/
//Save XMP MetaData to a destination file using XML file that contains XMP MetaData.
nRet = L_SaveXMPMetadata(pXmlFile, pDstFile);
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document