[Mono-list] How to split input pptx file into a set of one slide files in C#

Ryan Boggs rmboggs at gmail.com
Sun Apr 15 17:44:17 UTC 2012


Hi,

If you are working strictly with Office 2007+ documents, you could
have a look at the OpenXML sdk.  I've been using it for a couple of
years with some of my projects to generate office documents without
the need of having Office installed on the machine or the use of the
office interop libraries.  I believe there are examples of using the
sdk for retrieving information from office documents.  The only thing
I am not sure about is how well it works on Mono but you could have
better results than relying on the interops.  Hope this helps.

Link to OpenXML SDK:
http://www.microsoft.com/download/en/details.aspx?id=5124

Resource site:
http://openxmldeveloper.org/

Thanks,
Ryan

On Sun, Apr 15, 2012 at 4:41 AM, Michael Stoll <unwichtig2 at mistoll.de> wrote:
> Hello,
>
> the pptx format is xml in a zip file. You can simply unzip it and modify the
> containing xml. There are some cross-references between the xml files, so it
> wont't be that easy as just copying/deleting a file.
> I'm sure there are some pptx / ppt libraries out there, which could
> faciliate your task. But AFAIK it's not part of Mono.
>
> There are also the Microsoft Office Interop Libraries (PIA), but that won't
> work on Linux. Maybe your code snippet is using PIA?
>
> Michael
>
> Am 11.04.2012 03:44, schrieb sp0065:
>
>> Hello,
>>
>> I need to split input pptx and possibly ppt files into a set of slides
>> each
>> stored in the separate output pptx (ppt) file. I need to do it on Linux
>> Ubuntu server without X. I want to run a program from a command line or
>> call
>> it from another program written in PHP.
>>
>> Is it possible to do it in C# and Mono? I am new to C# and Mono so if it
>> is
>> possible code examples would help.
>>
>> May be I need to delete all slides but one and then repeat for each
>> selected
>> slide? I found there is
>>
>> powerPoint.Slides(x).Delete
>>
>>
>> Thank you!
>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/How-to-split-input-pptx-file-into-a-set-of-one-slide-files-in-C-tp4547665p4547665.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list