ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
iSetAdditionalXMP (Function)
In french: iDéfinitXMPSupplémentaire
Adds XMP tags to the metadata of the generated PDF file.
Caution: This function is only valid when exporting a printout as a PDF. It has no effect in other cases.
Example
// Type of PDF
iParameterPDF(iPDFA3b)
 
// PDF destination
iDestination(iGenericPDF, "c:\path\pdf.pdf")
 
// add Factur-X properties to the PDF metadata
let sMeta=[
<rdf:Description rdf:about="" xmlns:fx="urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#">
<fx:ConformanceLevel>BASIC</fx:ConformanceLevel>
<fx:DocumentFileName>factur-x.xml</fx:DocumentFileName>
<fx:DocumentType>INVOICE</fx:DocumentType>
<fx:Version>1.0</fx:Version>
</rdf:Description>
 
<rdf:Description rdf:about=""
 xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
 xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
 xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#">
 
<pdfaExtension:schemas>
 <rdf:Bag>
  <rdf:li rdf:parseType="Resource">
   <pdfaSchema:schema>Factur-X PDFA Extension Schema</pdfaSchema:schema>
   <pdfaSchema:namespaceURI>urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#
</pdfaSchema:namespaceURI>
   <pdfaSchema:prefix>fx</pdfaSchema:prefix>
   <pdfaSchema:property>
    <rdf:Seq>
     <rdf:li rdf:parseType="Resource">
      <pdfaProperty:name>DocumentFileName</pdfaProperty:name>
      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
      <pdfaProperty:category>external</pdfaProperty:category>
      <pdfaProperty:description>name of the embedded XML invoice file</pdfaProperty:description>
     </rdf:li>
     <rdf:li rdf:parseType="Resource">
      <pdfaProperty:name>DocumentType</pdfaProperty:name>
      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
      <pdfaProperty:category>external</pdfaProperty:category>
      <pdfaProperty:description>INVOICE</pdfaProperty:description>
     </rdf:li>
     <rdf:li rdf:parseType="Resource">
      <pdfaProperty:name>Version</pdfaProperty:name>
      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
      <pdfaProperty:category>external</pdfaProperty:category>
      <pdfaProperty:description>The actual version of the Factur-X XML schema
</pdfaProperty:description>
     </rdf:li>
     <rdf:li rdf:parseType="Resource">
      <pdfaProperty:name>ConformanceLevel</pdfaProperty:name>
      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
      <pdfaProperty:category>external</pdfaProperty:category>
      <pdfaProperty:description>The conformance level of the embedded Factur-X data
</pdfaProperty:description>
     </rdf:li>
    </rdf:Seq>
   </pdfaSchema:property>
  </rdf:li>
 </rdf:Bag>
</pdfaExtension:schemas>
</rdf:Description>
]
 
iSetAdditionalXMP(sMeta)
 
// add an attachment
iAddAttachment("c:\path\factur-x.xml", "factur-x.xml", "text/xml")
 
iPrintReport(RPT_Invoice)
Syntax
iSetAdditionalXMP(<XMP tags>)
<XMP tags>: Character string
XMP tags to add to the <rdf:RDF> node of the PDF file's metadata.
This string is added within the RDF block of the generated PDF file. If the generated PDF is an A1 or A3 PDF, this parameter will be added after the tags indicating that the PDF is an A1 (or A3) PDF.
Business / UI classification: Neutral code
Component: wd290prn.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help