Free Support Forum - aspose.com

Rotation and MovePosition

Hi

I need to stamp (or adhere text to) multiple size documents, ranging from 8x11 to 28x40, in the same relative locations (upper right hand corner, midway up right side, etc). The documents come oriented the same way to me, so that all the text and the images are "right side up" and readable, but their internal rotation can be 0, 90, or 270, which means the 0,0 point, or origin, can be in any of the 4 corners of the document.

Can I use the MovePosition method to force the origin to be in the lower left corner and then do all my coordinate calculation based on that?

Thanks

Steve

Hi Steve,

The origin of the document is already considered (0,0) i.e. lower-left corner of the document. However, you can use MovePosition to another specified point. You can also use SetOrigin method of the Stamp class while adding a stamp on a page.

Moreover, please download the latest version of Aspose.Pdf.Kit for .NET and try at your end to see if it satisfies your requirement. If you find any issue, please do let us know.
Regards,