We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73b2fad commit 0e95464Copy full SHA for 0e95464
‎examples/src/text.js‎
@@ -1,6 +1,6 @@
1
import { readFile, writeFile } from 'node:fs/promises';
2
3
-import { PdfMaker, rows, span, text } from '../../src/index.ts';
+import { PdfMaker, rows, span, text } from 'pdfmkr';
4
5
const document = {
6
defaultStyle: {
@@ -64,9 +64,9 @@ const document = {
64
// Text alignment
65
rows(
66
[
67
- span('Text can be left-aligned …', { textAlign: 'left' }),
68
- span('centered,', { textAlign: 'center' }),
69
- span('… or right-aligned', { textAlign: 'right' }),
+ text('Text can be left-aligned …', { textAlign: 'left' }),
+ text('centered,', { textAlign: 'center' }),
+ text('… or right-aligned', { textAlign: 'right' }),
70
],
71
{ margin: { y: 10 } },
72
),
0 commit comments