You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
My pdf comes in as a byte array. I'm trying to show it using your viewer. My Controller code:
lwsService.getdocument(id) .success(function (response) { var fileName = response[0].FileName; var fileImage = base64ArrayBuffer(response[0].binFileImage); var fileURL = new Blob([fileImage], { type: 'application/pdf' }); $scope.pdfURL = URL.createObjectURL(fileURL);
The code to convert the byte array is:
` function base64ArrayBuffer(arrayBuffer) {
var base64 = ''
var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
My HTML is:
<pdfviewer src="{{pdfURL}}" on-page-load='pageLoaded(page,total)' id="viewer" load-progress='loadProgress(loaded, total, state)'></pdfviewer>
Nothing displays.
The text was updated successfully, but these errors were encountered: