You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi is there a code sample on how to add an image object as an annotation to an existing PDF page?
similar to adding text as an annotation done by:
const textAnnot = pdfDoc.context.obj({
Type: 'Annot',
Subtype: 'FreeText',
Name: new PDFString('correct'),
Contents: new PDFString(text),
Rect: [x-25, y+30, x+5, y+10],
DA: new PDFString(/${customFont.name}18 Tf 1 0 0 rg),
Opacity: 1,
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi is there a code sample on how to add an image object as an annotation to an existing PDF page?
similar to adding text as an annotation done by:
const textAnnot = pdfDoc.context.obj({
Type: 'Annot',
Subtype: 'FreeText',
Name: new PDFString('correct'),
Contents: new PDFString(text),
Rect: [x-25, y+30, x+5, y+10],
DA: new PDFString(
/${customFont.name}18 Tf 1 0 0 rg
),Opacity: 1,
});
Beta Was this translation helpful? Give feedback.
All reactions