title: Generate Pdf with Arabic fonts
body: <p>I want to download a pdf file with Arabic fonts in react and haven't found any solution. I am currently using jsPdf but it's not rendering Arabic font's properly</p>
  
  <pre><code>let doc = new PDFDocument
  let doc = new pdf();
  doc.setFontSize(10);
  doc.rect(20, 20, doc.internal.pageSize.getWidth() - 40, 
  doc.internal.pageSize.getHeight() - 40, 'S');
  doc.setTextColor(128,0,128);
  doc.text("Date", 30, 25);
  doc.text(this.state.date, 50, 25);
  doc.text("السلام عليكم", 30, 35);
  doc.text("Quantity", 120, 35);
  let distance = 30;
  doc.save("data.pdf");
  </code></pre>
  
  <p>Thanks in advance</p>