How to Set the Button Field Text Orientation

Hi,

we have an existing pdf with a page rotated by 90 degrees. We want to add a button field with text to it. The orientation of text is 270 degrees by default and I want to set to 0 degrees. How to achieve this in pdf in .net

Thanks

@CRAsposeUser

Please attach this document.

Please find attached sample document. We have added a button with position, but the text is need to rotate to 90 degrees.
button_updated.pdf (1.6 MB)

ButtonField button = new ButtonField(pdfDoc.Pages[1], new Aspose.Pdf.Rectangle(600, 600, 550, 350));
button.PartialName = “button1”;
button.Value = “Return to report”;
// button.Contents = “Return to report”;
pdfDoc.Form.Add(button);

Thanks

@CRAsposeUser
Thank you for the information you provided, we will look into the matter and write to you.

@CRAsposeUser
The rotation of characters should be affected by button.Characteristics.Rotate as in the fragment

var pdfDoc = new Document(dataDir + "button_updated.pdf");
pdfDoc.Repair();            // <---- Added

var button = new ButtonField(pdfDoc.Pages[1], new Aspose.Pdf.Rectangle(600, 600, 550, 350));
button.PartialName = "button1";
button.Value = "Return to report";
button.Characteristics.Rotate = Rotation.on90; // <---- Added
// button.Contents = “Return to report”;
pdfDoc.Form.Add(button);

pdfDoc.Save(dataDir + "button_out.pdf");

But it does not affect the text. I will create a task for the development team about this.
Note that since there are some violations in the document structure, after loading it I call Repair().

@CRAsposeUser
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-59485

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.