![]() ![]() I haven't tried it in Acrobat 9 to see if it's been fixed, but this is exactly the kind of thing that slips by from version to version. Unfortunately, the alignment parameter does not seem to work at all when set from JavaScript. If you set the Text size and font before setting the contents it works, instead of specifying it in the "addAnnot" function. This seems to be an issue with the ordering of operations. I suspect that I'm either missing something, or that these parameters aren't actually supported, or that the documentation isn't correct. ![]() These results are consistent with my other attempts to control font size and alignment. If I change the textSize or alignment parameters, I still get 9 point type, left-justified. My reading of the Scripting Reference tells me that I should get 10 point type, centered. What I get is an otherwise expected textbox with 9 point type, left justified. ![]() TextFont: font.Helv, // or, textFont: "Viva-Regular", Create FreeText annotation with Helvetica ![]() Get Acrobat Pro as part of Creative Cloud All Apps and save big. Here's a simple sample program that doesn't work, copied straight from the Acrobat JavaScript Scripting Reference, with the exception of the contents field, which I added: Always enjoy the latest technology from the most collaborative, work-from-anywhere-anytime PDF tool available on any device. I can control almost all of the properties of the annotation, except textSize and alignment. I'm trying to place a FreeText annotation on a number of drawings using javascript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |