Hi,

 

Thanks for the reply. 

 

My concern is that using shell execute I won't be able to get a xcomponent 
object which i need to process the file. 

http://api.openoffice.org/docs/common/ref/com/sun/star/system/XSystemShellExecute.html
 

I think using the appropriate filter should work. Will go test it.

 

 
> Date: Thu, 17 Jun 2010 12:51:35 +0200
> From: boh...@gmail.com
> To: dev@api.openoffice.org
> Subject: Re: [api-dev] pdf import programmatically
> 
> 2010/6/7 Wei Min Teo <shaun...@hotmail.com>
> 
> >
> > Hi all,
> >
> > I am trying import pdf files to edit. I've installed the sun pdf import
> > with openoffice 3.1. Pdf files seem to open fine in draw when i open it from
> > the desktop.
> >
> > However, when i use the loadComponentFromURL method, it opens the file with
> > writer and encoded text appears. I've also tried passing in "MediaType" in
> > the mediadescriptor with the value of "simpress8" but it doesn't work.
> >
> > How can i programmatically force it to open with draw and return a
> > XComponent object?
> >
> 
> I guess you have to use
> http://api.openoffice.org/docs/common/ref/com/sun/star/system/XSystemShellExecute.html
> I don't know, I have never tried, but I found this webpage
> http://www.oooforum.org/forum/viewtopic.phtml?t=101602
> 
> 
> 
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Wei Min
> >
> > _________________________________________________________________
> > Hotmail: Trusted email with powerful SPAM protection.
> > https://signup.live.com/signup.aspx?id=60969
> >
> 
> 
> 
> -- 
> Knut Olav Bøhmer
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Reply via email to