OpenType feature (Polish Kreska) ignored during PDF export

Hello.

We use GemBox.Document to merge Data into Word-Documents and then save as PDF.
We have noticed that special language specific characters like the polish kreska do not render as expected when saving to pdf.

In word, the kreska is rendered differently depending on what language is set for the text.
I found that we are able to set Language for Text-Runs according to CharacterFormat Class | GemBox.Document

So i tried both setting the document language of the original word document to polish, and also setting language via CharacterFormat for all Runs before saving as pdf.

Unfortunately in both cases the result is the same - the “french” accent is used instead of the correct polish kreska.

I have eliminated this being a font issue - since the same font renders correctly in word. Generally the font is also correct in the output pdf - aside from the “wrong” kreska.

It would be very good to know if this is a general current limitation, or if there is something that we are missing. Thank you very much.

Greetings

Hi,

Can you please send us your Word document so we can reproduce the issue?
Also, if you’re using a custom font (not one of the standard Windows installed fonts) please send it to us as well.

Regards,
Mario

Hello Mario.

I have just sent you the test-word file and access to the custom-font via the contact form.

Greetings.

Please use PdfSaveOptions.UseAdvancedTextFormatting:

var document = DocumentModel.Load("input.docx");
document.Save("output.pdf",
    new PdfSaveOptions() { UseAdvancedTextFormatting = true });

And try again with this NuGet package:

Install-Package GemBox.Document -Version 2026.6.135

Does this solve your issue?