We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ERROR: invalidfont when printing with Preview in OSX Yosemite

I create a simple document using Aspose.PDF for .NET. When i print it through Preview in OSX (Yosemite) the printer gives the following error:

ERROR: invalidforn

I attached an image of the printed document and the generated PDF.

The printer is a Lexmark XS950de network attached printer.

Here’s the code to produce the error. I’m using the latest nuget package (11.4.0). The MemoryStream is returned through a WebApi controller.

var adress = “This is the address 123”;
var namn = “ÖÖÖÖÖööö”;

Document doc = new Document();
Page page = doc.Pages.Add();
TextState style = new TextState
FontSize = 12,
FontStyle = FontStyles.Regular,
LineSpacing = 4

var paragraph = new TextFragment(namn);
paragraph.IsInLineParagraph = true;
paragraph.Position = new Position(280, (page.Rect.URY - paragraph.Rectangle.Height) - 560);

TextFragment frag = new TextFragment(adress);
frag.IsInLineParagraph = true;
frag.Position = new Position(280, (page.Rect.URY - frag.Rectangle.Height) - 410);
var textBuilder = new TextBuilder(page);

var memStream = new MemoryStream();

Hi Björn,

Thanks for using our API’s.

I have tried printing the file using soft printer on MAC OS X El Capitan and I am unable to notice any problem. However for the sake of investigation, I have logged it as PDFNEWNET-40466 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.