BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi,
I have several .docx documents/reports that need to be converted to .pdf files. Converting works as layout & text are converted from .docx to .pdf.
Although, inside the docuements, there are symbol characters (checked/unchecked symbols, Unicode xF0FD (Checked) & Unicode xF0A8 (Not Checked)), using Windings font. There characters do not exit on the converted documents - their positions appear blank.
I am using the following code to convert documents:
try
{
FileInfo fi = new FileInfo(OriginalFilename);
Stream docFile = new FileStream(OriginalFilename, FileMode.Open);
WordDocument docWord = null;
switch (fi.Extension)
{
case ".doc":
docWord = new WordDocument(docFile, FormatType.Doc);
break;
case ".docx":
docWord = new WordDocument(docFile, FormatType.Docx);
break;
default:
log.Warn(string.Format("Invalid extension: {0}", fi.Extension));
if (!acceptedExtensions.Contains(fi.Extension))
throw new ArgumentOutOfRangeException(fi.Extension);
break;
}
using (DocToPDFConverter converter = new DocToPDFConverter())
{
PdfDocument docPdf = converter.ConvertToPDF(docWord);
docPdf.Save(ConvertedFilename);
docPdf.Close(true);
docPdf = null;
}
docWord.Close();
docWord = null;
docFile.Close();
docFile = null;
return true;
}
catch (Exception ex)
{
log.Error(ex.ToString());
return false;
}
Any pointers on overcoming this problem?
Thanks,
George J.
Hi,
In the archive attached, there are the original .docx file, as well as the .pdf file I get from the conversion.
On Syncfusion Dashboard, I get: Essential Studio Version: 11.2.0.25.
George J.
Hi,
Is there an update on this issue?
George J.