PDF.zip (1.2 MB)
完全不能观看,这是什么原因
版本号:19.11.0.0
转换代码如下:
using (Aspose.Pdf.Document document = new Aspose.Pdf.Document(fileName))
{
document.EmbedStandardFonts = true;
document.FontUtilities.SubsetFonts(FontSubsetStrategy.SubsetAllFonts);
Console.WriteLine(“页数:” + document.Pages.Count());
string fileDir = Path.GetDirectoryName(fileName);
Aspose.Pdf.DocSaveOptions options = new Aspose.Pdf.DocSaveOptions();
options.RecognizeBullets = true;
options.AddReturnToLineEnd = true;
//options.TryMergeAdjacentSameBackgroundImages = false;
options.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Textbox;
options.Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX;
options.CustomProgressHandler = new Aspose.Pdf.UnifiedSaveOptions.ConversionProgressEventHandler(ShowProgressOnConsole);
document.Save(fileDir + "/out.docx", options);
document.FreeMemory();
document.Dispose();
}