I used the pdf.js plug-in in the vue project, but I want to change its default window size?

problem description


what I want is the entire black area of the document, the solution, the pdf.js, used by my vue framework plug-in

the environmental background of the problems and what methods you have tried

just started using this plug-in. After reading some of it on the Internet, I couldn"t find any relevant content

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

        <div class="content">
          <iframe src="../../../static/2.pdf" width="100%" height="100%">
            This browser does not support PDFs. Please download the PDF to view it: 
            <a href="/test.pdf" rel="external nofollow" width="1174px">Download PDF</a>
          </iframe>
        </div>

if you have installed pdf.js, you can directly < iframe > use

what result do you expect? What is the error message actually seen?

what I want is that the document covers the entire black area,

topic description

sources of topics and their own ideas

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Mar.03,2022
Menu