Skip to content

Commit c91236d

Browse files
authored
Merge pull request #594 from Pawel-IT/patch-1
Fixed non-working stamp example
2 parents b7bb6f6 + a23ad1f commit c91236d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

website/src/content/docs/snippet/plugins/plugin-annotation.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ const pngBuffer = await fetch('/my-stamp.png').then(r => r.arrayBuffer());
100100
annotationApi.importAnnotations([
101101
{
102102
annotation: {
103-
type: 26, // PdfAnnotationSubtype.STAMP
103+
id: "fd6605fe-8deb-4596-8984-eb04c8a4f2b0",
104+
type: 13, // PdfAnnotationSubtype.STAMP
104105
rect: { origin: { x: 100, y: 200 }, size: { width: 50, height: 50 } },
105106
// ... other annotation properties
106107
},

0 commit comments

Comments
 (0)