There is an issue where If generating HTML with GroupDocs.Viewer .Net 20.1.0 from a source PDF file, it will not generate Japanese Space correctly. Looking at the HTML it is shown as a square (missing character).
In IE 11 this renders as extra lines around the missing character. While in Firefox and Chrome based browsers nothing is shown.
I have attached the files i used to test with Files.zip (45.0 KB)
Example source code is as following
SaveOutputParameters output = null;
using (var stream = File.OpenRead(".\\Data\\日本語のスペーステスト年月日.docx"))
{
LoadOptions lo = new LoadOptions();
lo.WarningCallback = new WarningMessage();
Aspose.Words.Document wordDoc = new Aspose.Words.Document(stream, lo);
PdfSaveOptions saveOptions = new PdfSaveOptions();
output = wordDoc.Save(".\\Data\\日本語のスペーステスト年月日.pdf", saveOptions);
}
GroupDocs.Viewer.Options.LoadOptions loadOptions = new GroupDocs.Viewer.Options.LoadOptions()
{
Encoding = Encoding.UTF8,
};
using (var stream = File.OpenRead(".\\Data\\日本語のスペーステスト年月日.pdf"))
{
using (var viewer = new GroupDocs.Viewer.Viewer(() => stream, () => loadOptions))
{
GroupDocs.Viewer.Options.HtmlViewOptions options = GroupDocs.Viewer.Options.HtmlViewOptions.ForEmbeddedResources(".\\data\\lines_pdf_page_{0}.html");
// generate the pages.
viewer.View(options, new int[1] { 1 });
}
}