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
We have PDF blobdata and that is assigned to PDFViewer as below and that is used to preview PDF file but that PDF file is displaying as blank and when we try to select on it, it seems some data is present. So, some styles are overridden in PDF viewer. If we try to download that PDF file from PDF Viewer, then also PDF file is displayed correctly.
```
var binaryImg = atob("@PDFBLOBDATA");
var length = binaryImg.length;
var arrayBuffer = new ArrayBuffer(length);
var uintArray = new Uint8Array(arrayBuffer);
for (var i = 0; i < length; i++) {
uintArray[i] = binaryImg.charCodeAt(i);
}
console.log("Ln 951");
var currentBlob = new Blob([uintArray], { type: 'application/pdf' });
url = URL.createObjectURL(currentBlob);
this.pdfMisuraSrc = url;
this.misuraPdfViewer.pdfSrc = url; // pdfSrc can be Blob or Uint8Array
this.misuraPdfViewer.downloadFileName = this.misuraDocumentResponse.FileName;
this.misuraPdfViewer.refresh();
Identified that if a pdf document contains "Monospace" font family, then getting blank in pdf file. Is there any known issue regarding "Monospace" font family ?
Is this type of issue fixed in any latest version of ng-pdfjs-viewer version ?
We have PDF blobdata and that is assigned to PDFViewer as below and that is used to preview PDF file but that PDF file is displaying as blank and when we try to select on it, it seems some data is present. So, some styles are overridden in PDF viewer. If we try to download that PDF file from PDF Viewer, then also PDF file is displayed correctly.
var binaryImg = atob("@PDFBLOBDATA");
var length = binaryImg.length;
var arrayBuffer = new ArrayBuffer(length);
var uintArray = new Uint8Array(arrayBuffer);
<ng2-pdfjs-viewer #misuraPdfViewer [viewBookmark]="true" [downloadFileName]="misurafilename"
The text was updated successfully, but these errors were encountered: