I'm working with these components
"@syncfusion/ej2-angular-dropdowns": "^17.4.44",
"@syncfusion/ej2-angular-grids": "^17.4.41",
"@syncfusion/ej2-angular-navigations": "^17.3.34",
"@syncfusion/ej2-angular-pivotview": "^17.4.41",
But after updating pivotview to a newer version, just to be able to show labels on top of bar charts, my grid export buttos stopped working and started to throw this error "cyclic object value", so i updated all the syncfusion libraries to a newer version which is 19.1.69 because i'm working with 11.2.13 angular version.
After the update i'm getting this error
Type 'PdfTrueTypeFont' is not assignable to type 'PdfStandardFont | PdfTrueTypeFont'.
in my function that generates the pdfExport properties, i'm creating a new PdfTrueTypeFont as in the documentation but is not working, below is the code for the pdfExportProperties.
return {
theme: {
header: {
fontName: 'Calibri', fontSize: 6, bold: true,
},
record: {
fontName: 'Calibri', fontSize: 6, bold: false
},
caption: {
fontName: 'Calibri', fontSize: 6, bold: false
}
},
header: {
fromTop: 0,
height: 80,
contents: [
{
type: 'Text',
value: "Name",
position: { x: 250, y: 0 },
style: { textBrushColor: '#000000', fontSize: 23 },
font: new PdfTrueTypeFont(base64font, 12) ,
}
]
},
fileName: "pdfdocument.pdf",
pageSize: 'Letter',
hierarchyExportMode: 'Expanded',
pageOrientation: 'Landscape',
};
Thanks, it worked, but there is an issue with grouping columns in data grid component, if my column has a blank space throws this error
ERROR DOMException: Element.querySelector: '.e-groupdroparea div[ej-mappingname=Column name]' is not a valid selector. I downgraded to
18.4.47 where everything works