그림 확대/축소비율 컨트롤

안녕하세요. 현재 Python에서 한글 프로그램을 제어하는 프로그램을 개발 중입니다.

그림을 삽입한 후 모든 그림의 확대/축소 비율을 일정한 크기로 설정하고 싶은데, 저 부분이 아무리 실행해도 변환이 안되더라구요..

PictureToOriginal, WidthHeight 변환 모두 해봤는데 소용이 없었습니다. 혹시 해결책 아시는 분 계실까요?

act_shape = hwp.CreateAction("ShapeObjDialog")
pset_shape = act_shape.CreateSet()
act_shape.GetDefault(pset_shape)

pset_shape.SetItem("Width", (int)(pset_shape.Item("Width")*11.8/12.7))
pset_shape.SetItem("Height", (int)(pset_shape.Item("Height")*11.8/12.7))
act_shape.Execute(pset_shape)

안녕하세요

직접 전체 컨트롤을 돌면서 적용해야 할 것 같습니다.
아래 코드 참고하시면 좋을 것 같습니다.

감사합니다.

ctrl = hwp.HeadCtrl
while ctrl is not None:
    if ctrl.CtrlID == "gso":          # 그리기 개체(그림)
        prop = ctrl.Properties        # 현재 속성 읽기
        w = prop.Item("Width")        # 단위는 HWPUNIT
        h = prop.Item("Height")
        prop.SetItem("Width",  int(w * 11.8 / 12.7))
        prop.SetItem("Height", int(h * 11.8 / 12.7))
        ctrl.Properties = prop        # ★ 수정한 prop을 다시 대입해야 반영됩니다
    ctrl = ctrl.Next