GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - xuejike/web_print_service: 网页打印控件:Web打印服务

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.vs
.vs
 
 
packages
packages
 
 
printWin
printWin
 
 
README.md
README.md
 
 
printWin.exe
printWin.exe
 
 
printWin.sln
printWin.sln
 
 

Repository files navigation

网页打印控件

1.打印协议说明

1.1 基本打印

发送Http请求到本地 http://127.0.0.1:19999/?paperWidth=纸张宽度&paperHeight=纸张高度 post域中写需要打印的图片的Base64格式数据。

1.2 多页打印

多页打印只需在Post域中的打印图片数据使用 # 隔开就行。

1.3 安装

只需下载打开运行 printWin.exe

2.打印JS插件

JS插件使用html2canvas 工具将当前页面需要打印的内容生成图片并生成Base64数据,然后使用jquery 发送给本地地址。 js插件文件存在demo中

    jkPrint({
        width:150,//纸张宽度
        height:60,//纸张高度
        page:".print-page", //自动获取class 为printPage的Html元素进行打印,多个printPage 会自动进行分页
        success:function(){
            //打印成功的回调
        },
        error:function(error){
            //打印失败的回调
        }
    })

About

网页打印控件:Web打印服务

Topics

printerwebweb-print

Resources

Readme
Activity

Stars

40 stars

Watchers

4 watching

Forks

18 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.