{"_id":"@alexdee2007/quasar-app-extension-qpdfviewer","_rev":"1-cb1deb29b96a23da52507681b854a41d","name":"@alexdee2007/quasar-app-extension-qpdfviewer","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@alexdee2007/quasar-app-extension-qpdfviewer","version":"2.0.0","description":"QPdfviewer is an app extension for viewing PDF files","author":{"name":"Jeff Galbraith","email":"jeff@quasar.dev"},"main":"src/index.js","scripts":{"lint":"eslint --ext .js,.vue src","lint-fix":"eslint --ext .js,.vue src --fix","build-demo":"cd ./demo && yarn build && cd .. && cp ./_redirects ./demo/dist/spa && rm -r -f ./docs && cp -r ./demo/dist/spa/. ./docs","test":"echo \"No test specified\" && exit 0"},"engines":{"node":">= 8.9.0","npm":">= 5.6.0","yarn":">= 1.6.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/quasarframework/app-extension-qpdfviewer/issues"},"repository":{"type":"git","url":"git+https://github.com/quasarframework/app-extension-qpdfviewer.git"},"homepage":"https://github.com/quasarframework/app-extension-qpdfviewer","license":"MIT","keywords":["quasar","app","app extension","extension","pdf","viewer"],"devDependencies":{"@babel/eslint-parser":"^7.17.0"},"gitHead":"5d17756a4a41aedf6cda0ccd3ac77fcae9ceee30","_id":"@alexdee2007/quasar-app-extension-qpdfviewer@2.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-oLZFYnE3F4nAER8pnIaksBl9rjju1lI3TLDA00Gn09jpp9O+ueDxYKmfrJ3oxwpcV8YQ43lCXC1ZU+pOdgvj9A==","shasum":"6ec9d801e2a1790392331eb72b57a1d9c9faf455","tarball":"https://registry.npmjs.org/@alexdee2007/quasar-app-extension-qpdfviewer/-/quasar-app-extension-qpdfviewer-2.0.0.tgz","fileCount":373,"unpackedSize":14571622,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm+wNBe4SGC3jzsLiC3rvyUWbkZ1cxMWfnd7lTaA5QuQIgNujQtzhdd/kgdoHH8GcvpH4lP114s2V3v/JyxARZTFg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfKzcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSGRAAhSOyB+s4bcPlDFoIGORRIAYPCz+ZbpIejMkjaERCRTOq+jis\r\na9dc5kIrSuhqL8deJo6Mj7v06QSrJH1QollFfKFjdR1ACHc5oq5Jk0/FyJ01\r\nDFmDcob0FfUDx+UVJFgQIiWO3aaok7WAIMbaN8MgJoEZZ8FEvE8vslMIDca2\r\nHP1dydbdzAdybBFKMiKP+AVG5coZglbL21TSEEU/zWSm4Vzm/Ps2Ufcf07D8\r\nsGexUf1k5iXUqP8wVTm73IsogUttBkLqBzZUJUqQrulYUD1xzvTHZhJCUQkb\r\ngnBIF8+4K3n5R2XbNvo+fGP8O2UIB9qMASwVfr9fYrEfPVg4twTbe8SIpIbc\r\n1EUMv7Wm+lQAToewzBfdxbSPUqbw2kWgaDc0MONfEEJip4CSB3k0/ZghYhJQ\r\nNo07tjg7wlG8/TG0fY+FhAD6lN4EUDJJkti0lWpnTUSPLSjq7jXIsF9bovLG\r\n6mmsoUvXEW2bYMXXftM3YTivj2BlEkLZBixEKPAtUhBUMEpTXSUiPJFg5rtj\r\n/LBmrmBkpK6L+oJvdDFoAwYm8yMwf+WvFpFJLTX/Tlpc5Zd2eI89XqTK7sOS\r\ncPIqyhygAaWkyvFVTSk0nENwfdw1ii/PCxA4lv/QRKTu8mvQMajcQfiKdYny\r\nn8LDbD+5mRU5Cx7dRC0B3hZGqp0ZwQQqeFk=\r\n=u6Lx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexdee2007","email":"alexdee2007@bk.ru"},"directories":{},"maintainers":[{"name":"alexdee2007","email":"alexdee2007@bk.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quasar-app-extension-qpdfviewer_2.0.0_1669115100200_0.396503206157929"},"_hasShrinkwrap":false},"2.0.1":{"name":"@alexdee2007/quasar-app-extension-qpdfviewer","version":"2.0.1","description":"QPdfviewer is an app extension for viewing PDF files","author":{"name":"Jeff Galbraith","email":"jeff@quasar.dev"},"main":"src/index.js","scripts":{"lint":"eslint --ext .js,.vue src","lint-fix":"eslint --ext .js,.vue src --fix","build-demo":"cd ./demo && yarn build && cd .. && cp ./_redirects ./demo/dist/spa && rm -r -f ./docs && cp -r ./demo/dist/spa/. ./docs","test":"echo \"No test specified\" && exit 0"},"engines":{"node":">= 8.9.0","npm":">= 5.6.0","yarn":">= 1.6.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/quasarframework/app-extension-qpdfviewer/issues"},"repository":{"type":"git","url":"git+https://github.com/quasarframework/app-extension-qpdfviewer.git"},"homepage":"https://github.com/quasarframework/app-extension-qpdfviewer","license":"MIT","keywords":["quasar","app","app extension","extension","pdf","viewer"],"devDependencies":{"@babel/eslint-parser":"^7.17.0"},"gitHead":"903b19f2944961408c1b86d3d1ababf158b1a3f2","_id":"@alexdee2007/quasar-app-extension-qpdfviewer@2.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-63dXW3hdY2CADUHodlEquGdUPyleVYG/pW6oo8T0zQ9nA2Yy1Off5s79SL79IhkdUd3ImESs8+t1TiLM1/a3Mg==","shasum":"7a9b9875f894e19b85a7b9dfe42afc5ba775d3c3","tarball":"https://registry.npmjs.org/@alexdee2007/quasar-app-extension-qpdfviewer/-/quasar-app-extension-qpdfviewer-2.0.1.tgz","fileCount":373,"unpackedSize":14571694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXT0GKTUh+tJjd88tHbaqM8wHjpN8MkGrWMNak2ldAlAiAtCxVxfTqwToZ5TmYo0pNNg8TLNeIl3fs1da33zaKifw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfLF/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9eg/+L1eMk1AWei3PNGumWp+glP1xwlR+YIlC9E1e35YfAB2fS4DY\r\nkfFSWiaxOamVaA5UOYLEm/YbCkskfILaSgYLyJlepfyGNemWPIvoh1gfHJdM\r\ns8ELcRwCjo+esLj9yFnEE3woTkFTrTZTKgabAC80bss8QKntl/IoDgU6bzeB\r\nxXF0GozO9m8DAz6F/W9aneNwVmSOczJZLWxJj+3yUQfUo2fSMGIAx6gEvPM/\r\n8UbqFGZBr9syeLs9N5uzAmwBChWSuJwDwoVMui6nKYdk4CwEwvqLg/wfX2yd\r\nZbBijP/l1yTeN4BdSBKzIsO2TWA5uV8CfAqK8N2JbKBsAAv3awp+MMuBZXzW\r\nrVqWaLX/8CpoX6X96iN62O+idBskW8GtnWnUlXGKfpGF44I93aKCB3K/Vppi\r\nkr3mgfhN9ULnjr6Fo7epSCqTZCFRXmBlNLvCmu0PtbHnYqw9YPy6+la+aSQE\r\nwhg/CMWdjIJoOcP/7rfKwGkdnTPO2NpZpG+eGktI9aoL9MrUT0lBXSY+bG71\r\nSAClxKSRT/60rsJ99CpssuMclsODR8oVSt8zsJWhYo6yeL78K2Z4zIVQz8hz\r\nTBx+DpOm4wN9jQ17uOY1OtopV3Syy8lyGgi0TF0MnTo/rmGHH8qjCmmMqgKi\r\nZd1HrUPOoCryFzNjpMyhQoOVGrAzhWzin7Y=\r\n=InsL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexdee2007","email":"alexdee2007@bk.ru"},"directories":{},"maintainers":[{"name":"alexdee2007","email":"alexdee2007@bk.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quasar-app-extension-qpdfviewer_2.0.1_1669116287200_0.912414491770422"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-22T11:05:00.135Z","2.0.0":"2022-11-22T11:05:00.551Z","modified":"2022-11-22T11:24:47.677Z","2.0.1":"2022-11-22T11:24:47.579Z"},"maintainers":[{"name":"alexdee2007","email":"alexdee2007@bk.ru"}],"description":"QPdfviewer is an app extension for viewing PDF files","homepage":"https://github.com/quasarframework/app-extension-qpdfviewer","keywords":["quasar","app","app extension","extension","pdf","viewer"],"repository":{"type":"git","url":"git+https://github.com/quasarframework/app-extension-qpdfviewer.git"},"author":{"name":"Jeff Galbraith","email":"jeff@quasar.dev"},"bugs":{"url":"https://github.com/quasarframework/app-extension-qpdfviewer/issues"},"license":"MIT","readme":"QPdfViewer (@quasar/qpdfviewer)\n===\n\n![npm (scoped)](https://img.shields.io/npm/v/@quasar/quasar-app-extension-qpdfviewer@next?style=plastic)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/quasarframework/app-extension-qpdfviewer.svg)]()\n[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/quasarframework/app-extension-qpdfviewer.svg)]()\n[![npm](https://img.shields.io/npm/dt/@quasar/quasar-app-extension-qpdfviewer.svg)](https://www.npmjs.com/package/@quasar/quasar-app-extension-qpdfviewer)\n\nQPdfViewer is an `UI App Extension` for [Quasar Framework v1](https://v1.quasar-framework.org/). It will not work with legacy versions of Quasar Framework.\n\nThis work is currently in `beta` and there are expected changes while things get worked out. Your help with testing is greatly appreciated. Suggestions and PRs welcomed.\n\n# Info\nQPdfViewer allows you to have PDF in your web pages.\n\n# Install\nTo add this App Extension to your Quasar application, run the following (in your Quasar app folder):\n```\nquasar ext add @quasar/qpdfviewer@next\n```\n\n# Uninstall\nTo remove this App Extension from your Quasar application, run the following (in your Quasar app folder):\n```\nquasar ext remove @quasar/qpdfviewer\n```\n\n# Describe\nYou can use `quasar describe QPdfViewer`\n\n# Test Project\nIn **demo** folder of **app-extension-qpdfviewer**.\n\n# Docs and Demo\nCan be found [here](https://qpdfviewer.netlify.app/)\n\n# Example Code\nBe sure to check out the Test Project for more examples.\n\n```html\n<q-pdfviewer\n  src=\"'https://www.ets.org/Media/Tests/GRE/pdf/gre_research_validity_data.pdf'\"\n  type=\"pdfjs\"\n  content-class=\"absolute\"\n/>\n\nor\n\n<template>\n  <div class=\"container q-pa-lg\">\n    <q-pdfviewer\n      :src=\"src\"\n      type=\"html5\"\n      content-class=\"fit container\"\n      inner-content-class=\"fit container\"\n    />\n  </div>\n</template>\n\n<script>\nexport default {\n  name: 'Container',\n  props: {\n    src: String\n  }\n}\n</script>\n\n<style>\n.container {\n  max-width: 50%;\n  max-height: 70%;\n  min-width: 400px;\n  min-height: 600px;\n  width: 100%;\n  height: 100%;\n}\n</style>\n\n```\n\nUsing blob data (for `type=\"html5\"` only):\n\n```js\nfetchPDF (payload) {\n  axios.post('/my/url/to/pdf', payload, { responseType: 'blob' })\n    .then(res => {\n      // create the blob\n      const blob = new Blob([res.data], { type: res.data.type })\n      // set reactive variable\n      pdfSrc = window.URL.createObjectURL(blob)\n    })\n    .catch(err => {\n      $q.notify({\n        message: 'Error downloading PDF',\n        type: 'negative',\n        textColor: 'white',\n        color: 'negative',\n        icon: 'error',\n        closeBtn: 'close',\n        position: 'top'\n      })\n    })\n}\n```\n\n---\nNOTE:\n  QPdfviewer now has support for native HTML5 PDF viewer and for PDFJS. Use `type=\"html5\"` or `type=\"pdfjs\"`. If you previously had this app extension, and want to use the pdfjs, you will need to re-install it. An update will not get the PDFJS for you. If you update, you can run `quasar ext invoke @quasar/qpdfviewer` instead of re-installing.\n\n---\nNOTE:\n  QPdfviewer uses the `<object>` tag for displaying the PDF (`type=\"html5\"` only). Should the browser not support this, the fallback is to use an `<iframe>`. And, should this also not be supported by the browser, then some text will be displayed with a link to the PDF so the user can download it for off-line viewing.\n\n  When using PDFJS, the PDF is always displayed in an `<iframe>`.\n\n---\nNOTE:\n  QPdfviewer now works with Electron, but you have to use `type=\"pdfjs\"` to get this functionality.\n\n---\n\n# QPdfviewer Vue Properties\n| Vue&nbsp;Property | Type\t| Description |\n|---|---|---|\n| src | String | Path to the PDF source |\n| type | String | PDF engine to use (values: `html5` or `pdfjs`) |\n| error-string | String | Set this if you wish to change from the default error string |\n| load | Function | The function to be called when the pdf document has been loaded |\n| error | Function | The function to be called when the pdf document has an error |\n| content-class | [String, Object, Array] | Style definitions to be attributed to the PDF container |\n| content-style | [String, Object, Array] | Style definitions to be attributed to the PDF container |\n| inner-content-class | [String, Object, Array] | Style definitions to be attributed to the PDF object |\n| inner-content-style | [String, Object, Array] | Style definitions to be attributed to the PDF object |\n\nQPdfViewer has no events or slots.\n\n# Donate\nIf you appreciate the work that went into this App Extension, please consider [donating to Quasar](https://donate.quasar.dev).\n","readmeFilename":"README.md"}