Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147641 | Sep 18,2019 12:02 PM UTC | Sep 20,2019 10:03 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: PivotView |
this.pdfExportProperties = {
theme: {
header: {font: new PdfTrueTypeFont(this.iransans, 12) },
caption: { font: new PdfTrueTypeFont(this.iransans, 10) },
record: { font: new PdfTrueTypeFont(this.iransans, 9) }
}
};
this is error :
TestComponent_Host.ngfactory.js? [sm]:1 ERROR Error: Can not read TTF font data
at TtfReader.push../node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/fonts/ttf-reader.js.TtfReader.checkPreambula (default~goal-goal-module~test-test-module.js:127710)
at TtfReader.push../node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/fonts/ttf-reader.js.TtfReader.readFontDictionary (default~goal-goal-module~test-test-module.js:127655)
at TtfReader.push../node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/fonts/ttf-reader.js.TtfReader.initialize (default~goal-goal-module~test-test-module.js:127647)
at new TtfReader (default~goal-goal-module~test-test-module.js:127587)
at UnicodeTrueTypeFont.push../node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/fonts/unicode-true-type-font.js.UnicodeTrueTypeFont.Initialize (default~goal-goal-module~test-test-module.js:128995)
at new UnicodeTrueTypeFont (default~goal-goal-module~test-test-module.js:128962)
at PdfTrueTypeFont.push../node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/fonts/pdf-true-type-font.js.PdfTrueTypeFont.createFontInternal (default~goal-goal-module~test-test-module.js:124517)
at new PdfTrueTypeFont (default~goal-goal-module~test-test-module.js:124483)
at TestComponent.push../src/app/test/test.component.ts.TestComponent.ngOnInit (test-test-module.js:223431)
at checkAndUpdateDirectiveInline (vendor.js:83437)
what is the problem ? Note also that the words that become pdf s are Arabic words.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.