0.2.12 • Published 9 months ago

modern-idoc v0.2.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Usage

import type { IDOCDocument } from 'modern-idoc'

const pdf: IDOCDocument = {
  children: [
    {
      style: {
        width: 300,
        height: 600,
      },
      children: [
        {
          style: {
            rotate: 60,
            width: 50,
            height: 50,
          },
          image: '/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',
            },
          ],
        },
      ],
    },
  ],
}
0.2.12

9 months ago

0.2.11

9 months ago

0.2.10

9 months ago

0.2.8

10 months ago

0.2.7

10 months ago

0.2.5

10 months ago

0.2.4

10 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago