Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu May 06, 2021 1:59 am

Here is the sample.

PdfTrueTypeFont font2 = new PdfTrueTypeFont(new Font("Arial", 18f, FontStyle.Bold));
this.Page.Canvas.DrawString("®", font, brush, 0, 0);

The string show "R" in pdf not "®"

a7363779@gmail.com
 
Posts: 2
Joined: Thu May 21, 2015 9:34 am

Thu May 06, 2021 3:03 am

Hello,

Thanks for your inquiry!

Please use PdfTrueTypeFont font2 = new PdfTrueTypeFont(new Font("arial", 18f, FontStyle.Bold),true); to add trademark symbol to your PDF.

If you encounter any issue in the future, just feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Thu May 06, 2021 5:36 am

It works.
Thank you :)

a7363779@gmail.com
 
Posts: 2
Joined: Thu May 21, 2015 9:34 am

Thu May 06, 2021 6:09 am

Hello,

Thanks for your feedback!

Glad to hear the code is working!

If you encounter any questions about our products in the future, please feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF