var annot = this.addAnnot({
page: 0,
type: "Text",
point: [72,500],
popupRect: [72, 500,6*72,500-2*72],
popupOpen: true,
noteIcon: "Help"
});
var spans = new Array();
spans[0] = new Object();
spans[0].text = "Attention:\r";
spans[0].textColor = color.blue;
spans[0].textSize = 18;
spans[1] = new Object();
spans[1].text = "Adobe Acrobat 6.0\r";
spans[1].textColor = color.red;
spans[1].textSize = 20;
spans[1].alignment = "center";
spans[2] = new Object();
spans[2].text = "will soon be here!";
spans[2].textColor = color.green;
spans[2].fontStyle = "italic";
spans[2].underline = true;
spans[2].alignment = "right";
// Now give the rich field a rich value
annot.richContents = spans;
출처 : https://www.gdpicture.com/forum/viewtopic.php?t=6250#p19870
'S.W. > PDF' 카테고리의 다른 글
[PDF/Javascript] FDF/XFDF - Import / Export String/File (0) | 2021.08.06 |
---|---|
[PDF/Javascript] Add Navigation Buttons To All Pages (0) | 2021.08.06 |
[PDF/Javascript] ADOBE - Acrobat DC Javascript 문서 (0) | 2021.08.06 |
[PDF/Javascript] getAnnots (Annotion, Comment, Markup, 주석) (0) | 2021.08.06 |
[PDF/Javascript] addAnnot - FreeText, PolyLine (0) | 2021.08.06 |