pdf frame
v2.2.0

www.pdf-frame.org
| 包裹 | 版本 |
|---|---|
| PDF框架票 | |
| pdf-frame-nuxt |
PDF-Frame是客戶端PDF/Canvas渲染的JavaScript Web框架。憑藉其聲明的HTML語法和語義,它提供了一種簡單有效的方法來定義PDF/Canvas圖形內容。它遵循類似於SVG的語法,並為Vue,Nuxt和React(正在進行的工作)等流行框架提供了組件支持。 PDF框架由I2DJ提供支持,目前支持將輸出作為PDF和帆布格式。
< pdfFrame type =" canvas " width =" 595 " height =" 841 " >
< i-g :transform =" { translate: [100, 200], scale: [2, 3], rotate: [ 45, 0, 0] } " >
< i-text :x =" 30 " :y =" 60 " :text =" 'Page 1 Title' " :width =" 530 " :style =" {font: '25px Arial', align: 'center'} " > </ i-text >
< i-rect :x =" 30 " :y =" 100 " :width =" 535 " :height =" 700 " :style =" { fillStyle:'#f0f0f0' } " > </ i-rect >
< i-image src =" src/assets/i2d-frame.svg " :width =" 200 " :x =" 175 " :y =" 100 " > </ i-image >
</ i-g >
</ pdfFrame > < pdfFrame type =" pdf " width =" 595 " height =" 841 " >
< i-g :transform =" { translate: [100, 200], scale: [2, 3], rotate: [ 45, 0, 0] } " >
< i-text :x =" 30 " :y =" 60 " :text =" 'Page 1 Title' " :width =" 530 " :style =" {font: '25px Arial', align: 'center'} " > </ i-text >
< i-rect :x =" 30 " :y =" 100 " :width =" 535 " :height =" 700 " :style =" { fillStyle:'#f0f0f0' } " > </ i-rect >
< i-image src =" src/assets/i2d-frame.svg " :width =" 200 " :x =" 175 " :y =" 100 " > </ i-image >
</ i-g >
</ pdfFrame > < pdfFrame type =" pdf " width =" 595 " height =" 841 " >
<!-- Page Templates -->
< i-page-template id =" temp-1 " >
< i-rect :x =" 0 " :y =" 0 " :width =" 595 " :height =" 841 " :style =" { fillStyle:'#ffffff' } " > </ i-rect >
< i-text :x =" 30 " :y =" 30 " :text =" 'Header Text' " :width =" 530 " :style =" {font: '15px Arial'} " > </ i-text >
< i-text :x =" 30 " :y =" 810 " :text =" 'Footer Text' " :width =" 530 " :style =" {font: '15px Arial'} " > </ i-text >
</ i-page-template >
<!-- Page 1 -->
< i-page p-template =" temp-1 " >
< i-g :transform =" { translate: [100, 200], scale: [2, 3], rotate: [ 45, 0, 0] } " >
< i-text :x =" 30 " :y =" 60 " :text =" 'Page 1 Title' " :width =" 530 " :style =" {font: '25px Arial', align: 'center'} " > </ i-text >
< i-rect :x =" 30 " :y =" 100 " :width =" 535 " :height =" 700 " :style =" { fillStyle:'#f0f0f0' } " > </ i-rect >
</ i-g >
</ i-page >
<!-- Page 2 -->
< i-page p-template =" temp-1 " >
< i-text :x =" 30 " :y =" 60 " :text =" 'Page 2 Title' " :width =" 530 " :style =" {font: '25px Arial', align: 'center'} " > </ i-text >
< i-image src =" src/assets/i2d-frame.svg " :width =" 200 " :x =" 175 " :y =" 100 " > </ i-image >
</ i-page >
</ pdfFrame > 歡迎捐款!如果您想為PDF框架做出貢獻,請按照貢獻。 md中的指南。
該項目已根據MIT許可獲得許可。有關更多詳細信息,請參見許可證文件。
有關任何查詢或支持,請聯繫[email protected] 。