Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Throws exception converting when Html to Pdf for custom fonts

$
0
0
Hi I am trying to export HTML to PDF document. Sometimes HTML contain custom fonts that is not installed on the machine. In such case Aspose.Pdf throws exception. I have already set IsFontNotFoundExceptionThrown flag to false. I am using Aspose.Pdf version 8.8.0 Exception details: System.ApplicationException was unhandled by user code HResult=-2146232832 Message=The embedded font 'crisp' is not found. Make sure that you set correct path to the font file. Source=Aspose.Pdf StackTrace: at . . (String , Boolean , String , Exception ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . (String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . (TextInfo ) at . . (Text , Pdf ) at . . (Pdf , Section , Table , Row , Cell , Text , , , Boolean ) at . . (Pdf , Section , HeaderFooter , Table , Row , Cell , Text , , , Boolean ) at . . (Pdf , Section , Table , Row , Cell , , ) at . . (Pdf , Section , Table , Row , , ) at . . (Pdf doc, Section currentPart, HeaderFooter hf, Table table, assignInfo, useType, Boolean isFirst, & breakTableNextPart) at . . (Pdf , Section , ) at . . (Pdf ) at . . ( , Pdf ) at Aspose.Pdf.Generator.Pdf.Save(Stream stream) at HelpSTAR.BusinessRule.Core.clsRequestViewer.ExportRequestDetailsToPdf(Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\BusinessRule\Core\clsRequestViewer.cs:line 1137 at HelpSTAR.Server.Factory.ServiceRequestFactory.ExportRequestDetailsToPdf(Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\HelpSTAR.Server.Factory\ServiceRequestFactory.cs:line 5951 at HelpSTAR.Server.Services.LongTimeTransactionScopeService.ExportRequestDetailsToPdf(String userSessionKey, Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\HelpSTAR.Server\Services\LongTimeTransactionScopeService.svc.cs:line 289 at SyncInvokeExportRequestDetailsToPdf(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) InnerException: System.ApplicationException HResult=-2146232832 Message=Font 'crisp' not found. Please make sure the customer font file is correctly set. Source=Aspose.Pdf StackTrace: at . . ( , String , String , Boolean ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) InnerException: Thanks, Binoy

Viewing all articles
Browse latest Browse all 3131

Trending Articles