Issue while printing pdf files from Blob agnular

后端 未结 1 1605
花落未央
花落未央 2020-12-12 03:11

I have an Api that returns the data in the format of

{ fileName: string, blob: Blob }[]

I want to print all these files, so I am using

相关标签:
1条回答
  • 2020-12-12 03:37

    Pdf file takes time to load thats why it was showing blank document, So i used print-js to solve this issue.

    how to import

    import * as printJS from "print-js";
    

    how to use

    const blobUrl = URL.createObjectURL(_fileInfo.blob);
    printJS(blobUrl);
    
    0 讨论(0)
提交回复
热议问题