We tried to export a text string that contained a █ character to a PDF file inside a .Net Framework 5 C# project.
When we save the PDF we get a “Object reference not found” error.
However, when we convert the █ character to - for instance - a letter like an “X” the PDF is generated without any issues.
Is there a way to workaround this issue and be able to include these special characters?
Unfortunately I’m not able to do that.
Some additional information that might be of help: we are running .Net 5 inside a Linux container (Debian).
When I remove the █ characters the code above runs without issue, keeping it in returns a “Object reference not set to an instance of an object”
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.