title: Add custom attribute to the PDFService class Nopcommerce 3.0
body: <p>I have a custom attribute that i wish to add to the PDF Invoice in nopcommerce,</p>
  
  <p>i have ran the site with breakpoints in place and can confirm the variable i need to pass is:</p>
  
  <p>"docId"</p>
  
  <p>i have added this code to the PdfService class under the PrintOrderToPdf Method,</p>
  
  <pre><code>List&lt;string&gt; values = _productAttributeParser.ParseValues(item.AttributesXml, punchOutDocumentId);
  
  String docID = String.Empty;
  if(values.Count &gt; 0)
  {
       docID = values.First();
  }
  cell = new PdfPCell(new Phrase(docID));
  cell.HorizontalAlignment = Element.ALIGN_CENTER;
  productsTable.AddCell(cell);
  </code></pre>
  
  <p>from looking at the AttributesXML object i found:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;Orders Version="3.00"&gt;&lt;Order&gt;
  
  &lt;AttributesXml&gt;&amp;lt;Attributes&amp;gt;&amp;lt;ProductVariantAttribute ID="2147483646"&amp;gt;&amp;lt;ProductVariantAttributeValue&amp;gt;&amp;lt;Value&amp;gt;e8bb4282-43de-4baf-aece-5baed6163e03&amp;lt;/Value&amp;gt;&amp;lt;/ProductVariantAttributeValue&amp;gt;&amp;lt;/ProductVariantAttribute&amp;gt;&amp;lt;ProductVariantAttribute ID="2147483645"&amp;gt;&amp;lt;ProductVariantAttributeValue&amp;gt;&amp;lt;Value&amp;gt;D-6DB2F2E5&amp;lt;/Value&amp;gt;&amp;lt;/ProductVariantAttributeValue&amp;gt;&amp;lt;/ProductVariantAttribute&amp;gt;&amp;lt;/Attributes&amp;gt;&lt;/AttributesXml&gt;
  </code></pre>
  
  <p>i need to show the attribute with the id of:</p>
  
  <p>2147483645 - it starts with D-</p>