arkokoley / pdfvuer

A PDF viewer for Vue using Mozilla's PDF.js that supports both Vue2 and Vue3
https://arkokoley.github.io/pdfvuer
MIT License
918 stars 131 forks source link

Zoom in/ Zoom out #5

Open arkokoley opened 6 years ago

arkokoley commented 6 years ago

Allow setting zoom factor through props.

tanshiqi commented 6 years ago

maybe this ?

_.each(parent.$children, function(pdf){
    pdf.drawScaled(0.8)
})
arkokoley commented 6 years ago

@tanshiqi Can you contribute code snippets highlighting this?

FossPrime commented 6 years ago

Perhaps it might be wise to modularize the controls like this https://youtu.be/7YZ5DwlLSt8?t=1971

alex-eri commented 3 years ago

i used

            :resize="true"

and scale parent container.