# `printed`
A simple Canvas API to generate self-contained PDF/SVG/HTML documents suitable for print.
`printed` provides an immediate graphical context API for drawing vectorial content inside a multi-page PDF, HTML or SVG.
It is intended to provide a barebones API, and need text-aware APIs on top of it.
Its API is similar to the HTML5 Canvas 2D API.
_The ultimate goal would be to generate technical documentation or user manuals with it, but for that you
would need a text layout library._
## Features
- [x] **TrueType and OpenType font embedding** in order to have fully reproducible vectors
- [x] PDF 1.4 output
- [x] SVG 1.1 output
- [x] HTML5 output through SVG embedding
[See features of the 2D renderer...](https://github.com/p0nce/printed/blob/master/canvas/printed/canvas/irenderer.d)
## Goals
- Simplicity
- Reproducibility
- Common denominator API, support many vectorial formats before being a rich API.
## How to add as DUB dependency
With dub.sdl:
```
dependency "printed:canvas" version="~>1.0"
```
With dub.json:
```json
"dependencies": { "printed:canvas": "~>1.0" }
```
没有合适的资源?快使用搜索试试~ 我知道了~
使用D和Canvas风格的API生成PDF/SVG/HTML 现在有一个流文档发射器 -D-下载
共33个文件
d:20个
json:7个
md:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 19 浏览量
2023-03-16
22:43:31
上传
评论
收藏 137KB ZIP 举报
温馨提示
(更多详情、使用方法,请下载后细读README.md文件) 'printed 一个简单的 Canvas API,用于生成适合打印的独立 PDFSVGHTML 文档。 printed提供直接图形上下文 API,用于在多页 PDF、HTML 或 SVG 中绘制矢量内容。它旨在提供准系统 API,并且需要在其之上的文本感知 API。 它的 API 类似于 HTML5 Canvas 2D API。 最终目标是用它生成技术文档或用户手册,但为此您需要一个文本布局库。 特征 TrueType 和 OpenType 字体嵌入以获得完全可重现的向量 PDF 1.4 输出 SVG 1.1 输出 通过 SVG 嵌入的 HTML5 输出 查看 2D 渲染器的功能... 目标 简单 再现性 Common denominator API,在成为丰富的 API 之前支持多种矢量格式。 如何添加为 DUB 依赖 使用 dub.sdl: dependency \\printedcanvas\\ version=\\~1.0\\ 使用 dub.json: \\dependencies\\ { \\printe
资源推荐
资源详情
资源评论
收起资源包目录
使用D和Canvas风格的API生成PDFSVGHTML。现在有一个流文档发射器。.zip (33个子文件)
printed-master
canvas
printed
canvas
irenderer.d 11KB
pdfrender.d 44KB
image.d 3KB
svgrender.d 16KB
package.d 457B
htmlrender.d 1KB
internals.d 870B
dub.json 2KB
htmlcolors
printed
htmlcolors
package.d 19KB
font
printed
font
fontregistry.d 8KB
opentype.d 29KB
package.d 235B
examples
nested-transforms
dub.json 209B
source
app.d 1KB
text-baseline
dub.json 205B
source
app.d 3KB
md2pdf
dub.json 215B
image.jpg 39KB
input.md 701B
source
main.d 7KB
renderer-specific-features
dub.json 218B
source
app.d 783B
simple
dub.json 198B
source
app.d 2KB
embed-image
dub.json 203B
flower.jpg 11KB
source
app.d 2KB
dman.png 28KB
.gitignore 207B
README.md 1KB
flow
printed
flow
style.d 6KB
document.d 16KB
package.d 285B
共 33 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功