Hi Guys,
We’ve migrated from version 10.6 to 18.9.
Using exactly the same word file to convert it into a PCL file we noticed a behavior change. The version 10.6 the performance was much better than 18.9 (32 sec. vs 207 sec, respectively). The file size resulting is almost the same.
As an alternative, we tried using Save method. Even though the performance has increased substantially (from 207 sec. to 1 sec.) the file size resulting has increased in size from 806KB to 4.0703KB.
Is there a way to:
- Have the same Print method performance as before version upgrade; OR
- Have same file size generation with Save.
Important note: we have a temporary license meanwhile our purchase is being processed. Is it possible to have any realtion?
This is the code snippet:
Aspose.Words.Document doc = new Aspose.Words.Document(TempDoc);
if (doc.HasMacros)
{
doc.RemoveMacros();
}
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
ps.PrinterName = PRTPCL;
ps.PrintFileName = FilePCL;
ps.PrintToFile = true;
doc.Print(ps);
doc.Save(FilePCL,Aspose.Words.SaveFormat.Pcl);
Att,
@jsantaelena
Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.
HI Tahir, thanks heaps for prompt response.
Please find attached the test file.
Some additional informaiton regarding our environemnt:
Microsoft Visual Studio 2008
.Net Framework 3.5
Aspose.Words for .net 18.9
Temprary License.
Att
0006AD6D.zip (81.6 KB)
@jsantaelena
Thanks for sharing the detail. We are working over your query and will get back to you soon.
@jsantaelena
Thanks for your patience. Please note that performance and memory usage all depend on complexity and size of the documents you are generating.
We have tested the scenario using the latest version of Aspose.Words for .NET 18.10 and have not found the shared issue. Please use Aspose.Words for .NET 18.10.
We have logged this problem in our issue tracking system as WORDSNET-17662. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.
Thanks
May I ask you to test with 18.9 as well?
@jsantaelena
Thanks for your inquiry. We have tested the scenario at Windows 10 with 8GB Ram using following code example. Aspose.Words 18.9 takes around 30 seconds at our end.
Document doc = new Document(MyDir + "0006AD6D.doc");
if (doc.HasMacros)
{
doc.RemoveMacros();
}
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
ps.PrinterName = "Microsoft XPS Document Writer";
ps.PrintFileName = MyDir + "PrintFileName 10.6.pcl";
ps.PrintToFile = true;
doc.Print(ps);
@jsantaelena
Thanks for your patience. It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-17662) as ‘Not a Bug’.
The file size is justified. The size of output PCL file depends on content of source file. In this case we have a complex file content. If we convert this file by another way e.g. like described here:
How to Create PCL file from MS word
The output file size will be around 6MB.