npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

xcc-pdf-editor

v1.0.1

Published

vue2 pdf editor component

Downloads

57

Readme

xcc-pdf-editor

  • power by vue2
  • thanks https://github.com/ShizukuIchi/pdf-editor
  • thanks https://github.com/ndinhquan1998/vue-pdf-editor-module

npm

https://www.npmjs.com/package/xcc-pdf-editor

DEMO

xcc-pdf-editor

使用

  • package.json添加依赖并安装 / npm i xcc-pdf-editor
  • 解压node_modules中xcc-pdf-editor下的xcc-pdf-editor.7z到项目根目录的public下,xcc-pdf-editor.7z中为资源文件。
  • main.js 引入并 Vue.use
  • Webpack配置中指定makeTextPDF.min.js的加载器为file-loader
    {
          test: /makeTextPDF\.min\.js$/,
          loader: 'file-loader'
    }

eg

    <XccPdfEditor
    width="100%" <!--组件尺寸 默认100%-->
    height="100%" <!--组件尺寸 默认100%-->
    :show-choose-file-btn="true"  <!--展示文件选择按钮 默认false-->
    :show-customize-editor="true"  <!--展示自定义编辑栏目 默认true-->
    :show-customize-editor-add-text="true" <!--添加文本 默认true-->
    :show-customize-editor-add-img="true"  <!--添加图片 默认true-->
    :show-customize-editor-add-draw="true"  <!--添加笔迹 默认true-->
    :show-line-size-select = 'false' <!--行间距选择 默认true-->
    :show-font-size-select= 'false' <!--字号选择 默认true-->
    :show-font-select="false"   <!--字体选择 默认true-->
    :show-rename="true"   <!--展示重命名栏 默认true-->
    :show-save-btn="false"  <!--展示保存按钮 默认true-->
    :save-to-upload="true"  <!--false 直接下载; true 触发onSave2Upload事件 默认false->
    :init-file-src="'【pdf url】'"   <!--初始化文件地址-->
    :init-file-name="initFileName" <!--初始化文件名称-->
    :init-text-fields = "【text array】"  <!--初始化文本数组-->
    :init-image-urls = "【image url array】"   <!--初始化图片数组-->
    :init-image-scale = "0.2" <!--初始化图片的缩放级别 默认原尺寸的 0.2倍-->
    :seal-image-show="true" <!--是否展示签章示例 默认false-->
    :seal-image-hidden-on-save="true" <!--签章示例在保存时是否隐藏 默认false-->
    @onSave2Upload="【save callback】"  <!--保存回调 载荷为:pdfBytes 和 fileName-->
    >
    </XccPdfEditor>