Home/ Reference/ Document

doc.ReferencePoint

Reference point for transforms. It anchors SetPosition and SetSize and follows the cdrReferencePoint enum.

Signature

doc.ReferencePoint

Notes

Reference point for transforms. It anchors SetPosition and SetSize and follows the cdrReferencePoint enum.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
# reference point: which corner or centre SetPosition / SetSize uses
# 5 = centre (differs per version, read it back after setting)
doc.ReferencePoint = 5
print("Reference point: ", doc.ReferencePoint)

About this section: Document

Document — documents and file handling.

Other entries in this section