Hi team
I need to convert exist pdf to image
this exist pdf has three pages
but after convert to JPEG
there have some display promblems in the third JPEG
the Chinese Traditional word display have problems in the third JPEG
but first,second page display Chinese Traditional word is good
How do I solve it???
I try to change the font
below is my code
Spire.Pdf.PdfDocument pdfsrc = new PdfDocument(fileInfo.FullName);
PdfUsedFont[] fonts = pdfsrc.UsedFonts;
Font font1 = new Font("Arial Unicode MS", 11f);
PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font1, true);
foreach (PdfUsedFont font in fonts)
{
font.Replace(trueTypeFont);
}
for (int i = 0; i < pdfsrc.Pages.Count; i++)
{
sDestFilePathTemp = string.Format("{0}_{1}.jpg", fileInfoOut.FullName, i + 1);
Image img = pdfsrc.SaveAsImage(i);
img.Save(sDestFilePathTemp, System.Drawing.Imaging.ImageFormat.Jpeg);
}
I get exception
The font being replaced is not a standard font of Type 1 font or a non-embeded TrueType font
I find it happend to change MingLiU font
I use spire.pdf 5.3.2 from Nuget
(packages\Spire.PDF.5.3.2\lib\net46\Spire.Pdf.dll)
Spire.Pdf.dll version is 5.3.2.2046
How do I solve it??
I already upload the exist PDF file