Unplanned
Last Updated: 10 Jan 2022 11:35 by ADMIN
note prj
Created on: 10 Jan 2022 11:18
Category: PdfProcessing
Type: Bug Report
1
PdfProcessing: Document with Korean font with FontFile3 and subtype CIDFontType0C is wrongly exported

When exporting a specific document with a CIDFontType0 font (Korean TAWBUL+HGGGothicssiP80g or BPRSCV+HGGGothicssiP60g) the document is wrongly exported which leads to missing content.

Workaround:
After import you can change the font:

pdfDocument = provider.Import(memory);

FontBase malgunGothicFont;
FontsRepository.TryCreateFont(new FontFamily("Malgun Gothic"), out malgunGothicFont);

foreach (RadFixedPage page in pdfDocument.Pages)
{
	foreach (ContentElementBase element in page.Content)
	{
		TextFragment textFragment = element as TextFragment;
		if (textFragment != null && (textFragment.Font.Name == "TAWBUL+HGGGothicssiP80g" || textFragment.Font.Name == "BPRSCV+HGGGothicssiP60g"))
		{
			textFragment.Font = malgunGothicFont;
		}
	}
}

0 comments