Free Support Forum -

Document.Save creates an invalid PDF when Charlotte Small Caps font is used

When I run the code below to save the
attached test document as a .pdf document, I get an error with the following exception message: “Item has already been added. Key in dictionary: ’ ’ Key being added: ’ '”), and the resulting saved pdf cannot be opened (Adobe Reader pops up a dialog that says: “There was an error opening this document. The file is damaged and could not be repaired.”).
From what I can tell, the problem has to do with the font used in the input document: “Charlotte Small Caps LET”. The font is installed and otherwise works fine. Saving the same Word document as PDF in Word produces a correct PDF document.

assembly version:

The font and a test .docx are attached.

Edin Zulich

P.S. Test code:

using System;

using Aspose.Words.Rendering;

namespace RenderTest {

class RenderTest {

static void Main(string[]
args) {
try {
Document doc = new

doc.Save(“RenderTestOutput.pdf”, SaveFormat.Pdf);

} catch (Exception e) {

Console.Error.WriteLine("Error: " + e.Message);



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

The issues you have found earlier (filed as 15433) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.