Agregar valor con nombre en metadatos XMP de EPS | Nodo.js

Para agregar un valor nombrado en metadatos XMP del archivo EPS, es necesario llamar a AsposexmpadDNamedValue y pasar el contenido del archivo, su nombre y el nombre del archivo de resultados.

El resultado JSON contiene el nombre del archivo en FileNAmerSult.


El siguiente fragmento de código muestra cómo agregar un valor con nombre en metadatos XMP en el archivo EPS en node.js:

 1const AsposePage = require('asposepagenodejs');
 2
 3const ps_file = "./data/program_13.ps";
 4
 5console.log("Aspose.Page for Node.js via C++ examples.");
 6
 7AsposePage().then(AsposePageModule => {
 8
 9    const input = [
10      ["xmpTPg:MaxPageSize", [["stDim:newKey", "NewValue"],["stDim:newKey2", "NewValue2"]] ],
11      ["xmpTPg:SwatchGroups", [["xmpG:newKey", "NewValue"]] ]
12    ];
13    const JSON = AsposePageModule.AsposeXMPAddNamedValue(ps_file, "result3.eps", input);
14    console.log("AsposeXMPAddNamedValue => %O",  JSON.errorCode == 0 ? JSON.fileNameResult : JSON.errorText);
15
16},
17    reason => {console.log(`The unknown error has occurred: ${reason}`);}
18);

Consulte Agregar valor con nombre en metadatos XMP en Java y .NET.

Puede descargar los ejemplos y archivos de datos de GitHub.

Have any questions about Aspose.Page?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.