happypdf / mergeXmpExtensionFragments
Function: mergeXmpExtensionFragments()
ts
function mergeXmpExtensionFragments(extras, preserved): string[];Defined in: src/api/pdfa/xmp.ts:125
Merge one-shot extension fragments with preserved foreign descriptions. Fragments in extras win over preserved ones that declare the same non-owned namespace URI, so repeated convertToPDFA({ extensions }) calls do not duplicate Factur-X / custom schemas.
Parameters
| Parameter | Type |
|---|---|
extras | string[] | undefined |
preserved | string[] |
Returns
string[]