Hi
I have an error when I try to test the pdf viewer component.
package.json
"@syncfusion/ej2-angular-pdfviewer": "^18.4.31",
Net core 3.1
https://www.syncfusion.com/kb/11063/how-to-create-the-pdf-viewer-web-service-application-in-net-core-3-0-and-above-version
home.component.html
<ejs-pdfviewer id="pdfViewer"
[serviceUrl]="service"
[documentPath]="document"
style="height:640px;display:block"></ejs-pdfviewer>
home.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
})
export class HomeComponent implements OnInit {
public service = 'https://localhost:5001/PdfViewer';
public document = '01810_ru_ZH_Samara_V1_WIFI.pdf';
constructor() {}
ngOnInit() { }
}
Angular error ( in chrome console)
{type: "https://tools.ietf.org/html/rfc7231#section-6.5.1",…}
errors: {$.zoomFactor: [,…]}
$.zoomFactor: [,…]
0: "The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,System.String]. Path: $.zoomFactor | LineNumber: 0 | BytePositionInLine: 59."
status: 400
title: "One or more validation errors occurred."
traceId: "|54936ac6-4bea9b799053059d."
type: "https://tools.ietf.org/html/rfc7231#section-6.5.1"
Best Regards
Diego