I’m trying out your product. I use the sample code below on a windows 8.1 pro and received the “Font Helvetica is absent.” exception. Please let me know how to proceed.
void Main()
{
string dataDir =@“c:”;
// Instantiate Pdf object
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
// Bind the source PCL file
pdf.BindPCL(dataDir + “test.pcl”);
// Save the resultant PDF document
pdf.Save(dataDir + “output.pdf”);
}
Stack Trace:
at Aspose.Pcl.Util.PDFFontHelper.ThrowFontAbsentException(String fontName, String subFontName)
at Aspose.Pcl.Util.PDFFontHelper.findFittedFontName(String fontName, Boolean canBeNull, Boolean fixedSpacing)
at Aspose.Pcl.Util.PDFFontHelper.changeCurrentFont(String name, Boolean bold, Boolean italic, Single size, Boolean primary)
at Aspose.Pcl.Command.Printer.Font.FontSelectionCommand.changeComposerSettings(Composer composer)
at Aspose.Pcl.Composer.PDFComposer.processCommand(PCLCommand pclCommand)
at Aspose.Pcl.Composer.PDFComposer.Run()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
at Aspose.Pcl.Util.PDFFontHelper.findFittedFontName(String fontName, Boolean canBeNull, Boolean fixedSpacing)
at Aspose.Pcl.Util.PDFFontHelper.changeCurrentFont(String name, Boolean bold, Boolean italic, Single size, Boolean primary)
at Aspose.Pcl.Command.Printer.Font.FontSelectionCommand.changeComposerSettings(Composer composer)
at Aspose.Pcl.Composer.PDFComposer.processCommand(PCLCommand pclCommand)
at Aspose.Pcl.Composer.PDFComposer.Run()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()