You are viewing limited content. For full access, please sign in.

Question

Question

Rotate Text Box Annotation

asked on November 14, 2017

How do I rotate the textbox annotation to be vertical using SDK script?

 

Priya

0 0

Replies

replied on November 14, 2017

Set the Direction property on the TextBoxAnnotation object:

DocumentInfo doc = Document.GetDocumentInfo(entryId, session);
PageInfo page = doc.GetPageInfo(1);

foreach (AnnotationBase ann in page.GetAnnotations())
{
    if (ann.AnnotationType == AnnotationType.TextBox)
    {
        TextBoxAnnotation textbox = (TextBoxAnnotation)ann;
        textbox.Direction = TextDirection.BottomToTop;
        textbox.Save();
    }
}
page.Save();

 

0 0
replied on November 15, 2017

Thanks.

 

Priya

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.