Skip to content

Commit cb6c2f9

Browse files
committed
chore: readme
1 parent 1cb55da commit cb6c2f9

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,25 @@ $pdf.new()
9999
</script>
100100
```
101101

102+
## New
103+
104+
```ts
105+
pdfeasy.new({
106+
margins: {
107+
top: 10,
108+
bottom: 10,
109+
left: 10,
110+
right: 10
111+
},
112+
size: "a5"
113+
});
114+
```
115+
102116
## Content
103117

104118
```ts
105119
pdfeasy.add([
106-
{ raw: 'Hello PDFEasy!', text: { font: 'Roboto' } }, // text with custom font,
120+
{ raw: 'Hello PDFEasy!', text: {} }, // common text
107121
{ raw: 'https://i.imgur.com/path.png', image: {} }, // external image
108122
{ stack: [ // stack for paragraph's
109123
{ raw: 'A ', text: {} },

0 commit comments

Comments
 (0)