annot.fitByContent({nSet:1width | 2height, anchorPoint})
[javascript FR] method to run "Fit by Text Content" on an annotation
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Mathew
- User
- Posts: 894
- Joined: Thu Jun 19, 2014 7:30 pm
[javascript FR] method to run "Fit by Text Content" on an annotation
The built-in tool "Fit by text content" is very useful when adding/editing text in markups: I'm hoping for a way for a script to be able to run that on FreeText annotations (typewriter, text box, callout):
annot.fitByContent({nSet:1width | 2height, anchorPoint})

annot.fitByContent({nSet:1width | 2height, anchorPoint})