Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mp-v2-gpdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mp-v2-gpdf-viewer

A single pdf viewer using google viewer

  • 0.1.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

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
<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

Keywords

FAQs

Package last updated on 25 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc