【问题标题】:How to render ₹ symbol in PDF in C# using PDFsharp如何在 C# 中使用 PDFsharp 在 PDF 中呈现 ₹ 符号
【发布时间】:2017-07-09 11:09:02
【问题描述】:

我想使用 C# 在 PDF 中呈现 ₹。 而不是这个,我得到了?。

在表单中可以打印如何呈现 ₹,但我仅在使用 PDF 时遇到此问题。

Attached image

【问题讨论】:

    标签: winforms c#-4.0 pdfsharp


    【解决方案1】:

    确保在 PDFsharp 中启用了 Unicode,并确保使用的字体包含该符号。

    既然你得到“?”而不是符号,您很可能只需要设置 PdfFontEncoding.Unicode 选项,如示例中所示。

    查看此示例:
    http://pdfsharp.net/wiki/Unicode-sample.ashx

    【讨论】:

      猜你喜欢
      • 2018-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 2018-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多