Importance of importing 'pdfjs-dist/web/pdf_viewer.css'
rxw1 opened this issue · 2 comments
rxw1 commented
Hello Sir,
it may be just me, but I guess it should be stated somewhere quite prominently that since commit a2c662e from July 10, 2023,
import 'pdfjs-dist/web/pdf_viewer.css';
is necessary if any of text-layer
or annotation-layer
are used; otherwise, the canvas and the layers won't overlay at all. Or would it be
import '@tato30/vue-pdf/style.css'
? But I can't find that one anywhere except in the updated examples in /docs
.
Best regards
TaTo30 commented
That is explained in the documentation website and the css import could be from '@tato30/vue-pdf/style.css'
or 'pdfjs-dist/web/pdf_viewer.css'
both should works; but you're right, that info should be stated in the README too.
TaTo30 commented
that info should be stated in the README too.
README updated.