<div dir="ltr"><div><div><div>Hi,<br><br></div>Please check, <br><a href="https://gerrit.libreoffice.org/3709" target="_blank">https://gerrit.libreoffice.org/3709</a><br>i am stuck due to static .<br></div>I am not able to figure out another way to resolve it. <br>
</div>Guide if possible .<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:33 PM, 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><div>Hi, <br></div>Thanks for the guidance ,<br><br></div>please check <a href="https://gerrit.libreoffice.org/3693" target="_blank">https://gerrit.libreoffice.org/3693</a><br>
<br></div>
I was able to export the pdf file , so i created a checkbox in " export as pdf " dialog stating "View pdf after export "<br><br></div>So, if a user ticks it , pdf file is exported and opened<br></div>
<div> else file is only exported<br><br></div><div>but for this i used a global variable ,<br><br></div><div>As i wasn't able to find out that how to pass a value that checkbox is ticked or not from the impdialog.cxx to pdffilter.cxx<br>
<br></div><div>impdialog.cxx >> contains checkbox code<br><br></div><div>pdffilter.cxx >> contians opening a pdf code<br><br></div><div>Please guide ,<br></div><div>May be it could be too easy , but i wasn't able to figure out , so i used global variable . <br>
</div><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 9:55 PM, Tomaž Vajngerl <span dir="ltr"><<a href="mailto:quikee@gmail.com" target="_blank">quikee@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>Hi,<br><br></div><div>Please, unless explicitly asked, always make sure that LO development mailing list is in the CC of the mail when replying (or "reply to all").<br>
</div><div><br>
</div>Actually you have to go to pdffilter.cxx -> PDFFilter::implExport. You will have to get the "URL" from the rDescriptor which contains the location and filename of the PDF that will be saved. To get it you have to do something similar to how "OutputStream", "FilterData", "StatusIndicator",... are done:<br>
<br>if ( pValue[ i ].Name == "URL" )<br> pValue[ i ].Value >>= aUrl;<br><br></div>aUrl should be a OUString.<br><br></div>Regards, Tomaž<br><div><br><br><br></div></div><div><div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">
On Mon, Apr 29, 2013 at 4:10 PM, 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><div><div>Hi,<br><br></div>Thank you for the reply,<br><br></div>Well i used,<div><br><br>Reference<XSystemShellExecute> xSystemShellExecute(SystemShellExecute::create( ::comphelper::getProcessComponentContext() ) );<br>
</div>
xSystemShellExecute->execute(rFile, "", SystemShellExecuteFlags::URIS_ONLY );<br><br></div>in sal_Bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >& rFilterData )<br>
<br><br></div>after including the header and namespace for xSystemShell<br><br></div>but on executing(Export a pdf file) , it shows rFile to be a tmp file,<br><br>gvfs-open: file:///tmp/lu305f9i.tmp/lu305faq.tmp: error opening location: Error when getting information for file '/tmp/lu305f9i.tmp/lu305faq.tmp': No such file or directory<br>
<br><br></div>How to get the exact file path, which is entered by user .<br><div><br><br><div><br><br><div><div><div><br><br></div></div></div></div></div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 2:55 PM, Tomaž Vajngerl <span dir="ltr"><<a href="mailto:quikee@gmail.com" target="_blank">quikee@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>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"><div><div>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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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></div></div>_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>