title: Matplotlib output to PDF for Corel Draw
body: <p><strong>Update</strong>: The fonts issue was actaully solved by using rc("pdf", fonttype=42) but unfortunately it is combined with another - whenever is used any type of marker I tried CorelDraw comes with error "File is corrupted".  </p>
  
  <p>When I output my charts from Matplotlib into PDF I am not able to open it in Corel Draw. I highly suspect that the major issue might be with texts / fonts.</p>
  
  <p>Simple code example which I need update to make PDF with text and markers import correctly in Corel Draw:</p>
  
  <pre><code>from matplotlib.backends.backend_pdf import PdfPages
  import matplotlib.pyplot as plt
  from matplotlib import rc
  rc("pdf", fonttype=42)
  
  with PdfPages("simple.pdf") as pdf:
    points_y = points_x = [1,2,3]
    plt.plot(points_x, points_y, marker="o")
    pdf.savefig()
    plt.close()
  </code></pre>
  
  <p>Example of Corel vs Matplotlib / PDF Reader when not used rc("pdf", fonttype=42) and marker. If marker used PDF doesn't open and CorelDraw says "File is corrupted".
  <a href="https://i.stack.imgur.com/3t1ez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3t1ez.png" alt="Example of Corel vs Matplotlib / PDF Reader"></a></p>