Skip to content

Question ? Usage of latest version of fabric and pdf  #25

Description

@comcorba

Hello,
I have two points. I modified the codes to support latest libraries of pdfjs and fabric

Fabric gives error : Error loading data:, fabric.min.js:1:871 and it doesn't show pdf. Do you have plan to use latest versions of js libraries?

Second point is that : the pdf on the screen is not sharp and blur. How does resolution of pdf can be improved.

var pdfjsLib = window['pdfjs-dist/build/pdf'];
// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.worker.min.js';

https://cdnjs.cloudflare.com/ajax/libs/fabric.js/4.3.0/fabric.min.js
https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.min.js

Thanks
Turgut

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions