<div dir="ltr"><div><div><div>Hi,<br><br>system("xdg-open abc.pdf"); is not good enough - this won't work on OSX or Windows. <br><br>You have to use XSystemShellExecute:<br>Reference<XSystemShellExecute> xSystemShellExecute(SystemShellExecute::create( ::comphelper::getProcessComponentContext() ) );<br>


xSystemShellExecute->execute( aFileName, OUString(), SystemShellExecuteFlags::URIS_ONLY );<br><br></div>see svx/source/core/extedit.cxx method ExternalToolEdit::threadWorker as an example where it is used.<br><br></div>

As for path and filename in PDFExport::Export you get "rFile" as parameter - this is the location where the file will be written to.<br><br></div>Regards, Tomaž<br><div>
<div><div><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 27, 2013 at 1:34 AM, Anurag Kanungo <span dir="ltr"><<a href="mailto:anuragkanungo@gmail.com" target="_blank">anuragkanungo@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br>Hi,<br><br>In bug<br><br><a href="https://bugs.freedesktop.org/show_bug.cgi?id=37222" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=37222</a><br>

<br></div>I was trying to resolve the bug , and got a little progress that whenever a user <br>
</div>exports the pdf , i am able to open a particular fixed pdf file .<br><br></div><div>In file filter/source/pdf/pdfexport.cxx,<br><br>i used there system("xdg-open abc.pdf");       //xdg-open because it can work with any desktop environment (i guess)<br>


<br></div><div>so it will always open abc.pdf file .<br><br><br></div><div><br></div>I am not able to open the newly saved pdf file , as i require the location and the name of the new pdf to open it , <br></div><div>and i also require to convert string to const char* , as string.c_str(); doesn't worked there .<br>


<br></div><div>Thank You .<br></div><div><br><br></div></div>
<br>_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br></blockquote></div><br></div>