I am trying this:
import { PdfViewerComponent, FormFields, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, Inject } from '@syncfusion/ej2-react-pdfviewer';
Report is a base 64 data blob of the PDF..
<PdfViewerComponent ref={(scope) => { this.viewer = scope; }} id="container" documentPath={report} >
<Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, FormFields]} />
PdfViewerComponent>
nothing happens .. just shows loading and no errors
Also.. how can I set the width.. I am adding this to a mobile/responsive web page and did not see an example to change the width of the viewer?
I tried to set the width: style={{ 'width': '240px' }}
but the the pdf 'frame' stays super wide and the view is narrow.. it is not scaling down (still no pdf just talking about the frame)
I have the report in hand as a buffer..