Welcome to OpenXML Developer Sign in | Join | Help

change the size of video bounding box inside pptx file

Last post 09-08-2008, 9:47 AM by Ankush Bhatia. 1 replies.
Sort Posts: Previous Next
  •  08-13-2008, 10:24 AM 3567

    change the size of video bounding box inside pptx file

    hi all,

    Iam working in an application about inserting a video into PowerPoint presentation (pptx file) programatically using open xml library.

    When you put a video inside pptx slide, you can see that this video is inserted within a bounding box .

    Iam asking how can I change the size (width and height) of  video bounding  box programatically.

    thanks,

    saad

  •  09-08-2008, 9:47 AM 3665 in reply to 3567

    Re: change the size of video bounding box inside pptx file

    Hi,

    I am not sure if you have found the solution or not. Anyway here is my thought

    When you insert a video in a Presentation, it creates a <p:pic> element in slidex.xml where x is the slide number in which you have inserted the slide.

    Now this element contains a child element <a:xfrm> something like this

     <a:xfrm>

      <a:off x="3048000" y="2286000" />

      <a:ext cx="62860000" cy="68100000" />

      </a:xfrm>

    You can change a:off  and a:ext elements attributes to change the size.

    Thanks

    Ankush

     

View as RSS news feed in XML