J
justjunktome
Hi,
I am developing an C#.net application to extract embedded object from
Office Files(DOC,XLS,PPT)
I am having problem extracting PDF files from PPT file.
My PPT file has PDF file attached to it. I am doing like this:
foreach (PPT.Slide slide in presentation.Slides)
{
foreach (PPT.Shape shape in slide.Shapes)
{
Microsoft.Office.Interop.PowerPoint.OLEFormat format =
shape.OLEFormat;
string progId = format.ProgID;
if(progId.StartsWith("Word.Document"))
{
//Deal with DOC file inside.
}
else if
(progId.StartsWith("AcroExch.Document"))
{
//Which OLEObject should i use
here. ?
//I dont know how to save this
oleobject...?
format.OLEObject
}
}
}
All i want is to save the PDF file somewhere in the disk so that i can
deal with it later.
Any tips or pseudo code will be greatly appreciated.
Thank You
miztaken
I am developing an C#.net application to extract embedded object from
Office Files(DOC,XLS,PPT)
I am having problem extracting PDF files from PPT file.
My PPT file has PDF file attached to it. I am doing like this:
foreach (PPT.Slide slide in presentation.Slides)
{
foreach (PPT.Shape shape in slide.Shapes)
{
Microsoft.Office.Interop.PowerPoint.OLEFormat format =
shape.OLEFormat;
string progId = format.ProgID;
if(progId.StartsWith("Word.Document"))
{
//Deal with DOC file inside.
}
else if
(progId.StartsWith("AcroExch.Document"))
{
//Which OLEObject should i use
here. ?
//I dont know how to save this
oleobject...?
format.OLEObject
}
}
}
All i want is to save the PDF file somewhere in the disk so that i can
deal with it later.
Any tips or pseudo code will be greatly appreciated.
Thank You
miztaken