Skip to content

Commit 0e95464

Browse files
committed
🩹 Small fix in text example
1 parent 73b2fad commit 0e95464

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎examples/src/text.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFile, writeFile } from 'node:fs/promises';
22

3-
import { PdfMaker, rows, span, text } from '../../src/index.ts';
3+
import { PdfMaker, rows, span, text } from 'pdfmkr';
44

55
const document = {
66
defaultStyle: {
@@ -64,9 +64,9 @@ const document = {
6464
// Text alignment
6565
rows(
6666
[
67-
span('Text can be left-aligned …', { textAlign: 'left' }),
68-
span('centered,', { textAlign: 'center' }),
69-
span('… or right-aligned', { textAlign: 'right' }),
67+
text('Text can be left-aligned …', { textAlign: 'left' }),
68+
text('centered,', { textAlign: 'center' }),
69+
text('… or right-aligned', { textAlign: 'right' }),
7070
],
7171
{ margin: { y: 10 } },
7272
),

0 commit comments

Comments
 (0)