import type { IDOCDocument } from 'modern-idoc'
const pdf: IDOCDocument = {
children: [
{
style: { width: 300, height: 600 },
children: [
{
style: {
rotate: 60,
width: 50,
height: 50,
},
background: '/example.png',
},
{
style: {
rotate: 40,
left: 100,
top: 100,
fontSize: 20,
color: '#FF00FF',
},
text: 'test',
},
{
style: {
left: 200,
top: 100,
width: 100,
height: 200,
fontSize: 22,
},
text: [
{
letterSpacing: 3,
fragments: [
{
content: 'He',
color: '#00FF00',
fontSize: 12,
},
{ content: 'llo', color: '#000000' },
],
},
{ content: ', ', color: '#FF0000' },
{ content: 'World!', color: '#0000FF' },
],
},
],
},
],
}
modern-idoc
0.3.3 • Public • Published Package Sidebar
Install
npm i modern-idoc
Repository
Homepage
Weekly Downloads
303
Version
0.3.3
License
MIT
Unpacked Size
71.9 kB
Total Files
9