VUE PDF VIEWER MOVILE
MP VUE 2 PDF VIEWER usando servicio de la fiscalía.
PDF-VIEWER
How to use
1.- Install component
$ npm i mp-v2-gpdf-viewer
2.- use in your project
<template>
...
<MpV2GpdfViewer
url="https://jl.fiscalia.gob.bo/appfiles/actividades/2022/08/18/actividad_62fe3d37953817.87504352.pdf"
:download="true"
/>
...
</template>
<script setup>
import MpV2GpdfViewer from 'mp-v2-gpdf-viewer'
</script>
Componentes
<MpV2GpdfViewer
url="https://mi-url.pdf"
:download="true"
:hideToolbar="true"
>
</MpV2GpdfViewer>
Params
- url: string pdf url
- download: boolean default false (download pdf)
- hideToolbar: boolean default false (hide toolbar only in chrome browser)
- intents: number default 3 (show btn to download in mobiles)
- handTool: boolean default false
- hideSidebarButton: boolean default false
- hideFindButton: boolean default false
- hidePagingButtons: boolean default false
- hideZoomButtons: boolean default false
- hidePresentationModeButton: boolean default false
- hideOpenFileButton: boolean default false
- hidePrintButton: boolean default false
- hideDownloadButton: boolean default false
- hideBookmarkButton: boolean default false
- hideSecondaryToolbarButton: boolean default false
- hideRotateButton: boolean default false
- hideHandToolButton: boolean default false
- hideScrollingButton: boolean default false
- hideSpreadButton: boolean default false
- hidePropertiesButton: boolean default false
- useBrowserLocale: boolean default false
- fetchBase64: Object {} default {base64: true}
fetchBase64: {
base64: false,
requestURL:
"https://url",
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer token",
},
data: {
//post request
},
dataResponse: "response.base64",
}
Publicar en npm
-
cambiar version
-
npm publish