Using pdfjs for electron Vue

Time:2021-9-15

https://github.com/mozilla/pdf.js

Version: 2.9

install

npm i pdfjs-dist

introduce

import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf.js'

pdfjsLib.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')

Recommended Today

Beautify your code VB (VBS) code formatting implementation code

However, vb.net does have many new functions that VB6 does not have. The automatic typesetting of code is one, which is the function we want to realize today – VB code formatting.Let’s look at the effect: Before formatting: Copy codeThe code is as follows: For i = 0 To WebBrowser1.Document.All.length – 1 If WebBrowser1.Document.All(i).tagName = […]