2010/6/7 Wei Min Teo <[email protected]> > > 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
