Get an error if I try to make a pdf file (Download Catalog as PDF)
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at iTextSharp.text.pdf.RandomAccessFileOrArray.ReadUnsignedShort()
at iTextSharp.text.pdf.TrueTypeFont.get_BaseFont()
at iTextSharp.text.pdf.TrueTypeFont.Process(Byte[] ttfAfm, Boolean preload)
at iTextSharp.text.pdf.TrueTypeFontUnicode..ctor(String ttFile, String enc, Boolean emb, Byte[] ttfAfm, Boolean forceRead)
at iTextSharp.text.pdf.BaseFont.CreateFont(String name, String encoding, Boolean embedded)
at SmartStore.Services.Common.PdfService.GetFont()
at SmartStore.Services.Common.PdfService.PrintProductsToPdf(Stream stream, IList`1 products, Language lang)
at SmartStore.Admin.Controllers.ProductController.DownloadCatalogAsPdf()
Migrated from CodePlex: Issue #166 from Scholten, on 11/16/2013 2:39:08 PM
Get an error if I try to make a pdf file (Download Catalog as PDF)
System.IO.EndOfStreamException: Attempted to read past the end of the stream. at iTextSharp.text.pdf.RandomAccessFileOrArray.ReadUnsignedShort() at iTextSharp.text.pdf.TrueTypeFont.get_BaseFont() at iTextSharp.text.pdf.TrueTypeFont.Process(Byte[] ttfAfm, Boolean preload) at iTextSharp.text.pdf.TrueTypeFontUnicode..ctor(String ttFile, String enc, Boolean emb, Byte[] ttfAfm, Boolean forceRead)
at iTextSharp.text.pdf.BaseFont.CreateFont(String name, String encoding, Boolean embedded, Boolean cached, Byte[] ttfAfm, Byte[] pfb, Boolean noThrow, Boolean forceRead)
at iTextSharp.text.pdf.BaseFont.CreateFont(String name, String encoding, Boolean embedded)
at SmartStore.Services.Common.PdfService.GetFont() at SmartStore.Services.Common.PdfService.PrintProductsToPdf(Stream stream, IList`1 products, Language lang)
at SmartStore.Admin.Controllers.ProductController.DownloadCatalogAsPdf()