You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Susheel Jalali <Su...@CoscendCommunications.com> on 2015/08/11 22:07:39 UTC

Downloading (through File Explorer) a file saved from whiteboard

Dear Maxim and fellow Developers,

We are seeking your guidance to add a new action to the context menu in 
File Explorer in OM-3.0.7 snapshot.  Users upload a file (in any format) 
in their desktop to file explorer and then load it to whiteboard.  Users 
modify this file on whiteboard and save the whiteboard in file 
explorer.  Our users would like to download this saved / modified file 
in either picture (JPG, PNG) or PDF format to their desktop.

When a file is uploaded by a user, in code files 
(imageFileExplorerItem.lzx, documentFileExplorerItem.lzx), the Context 
Menu to include "Download" options are like:
     <contextmenuitem caption="$once{ canvas.getLabelName(867) }"
        onselect="parent.parent.parent.downloadImageByName()" />

The file baseFileExplorerItem.lzx defines two methods 
(downloadDocumentByName  and downloadImageByName) that are called from 
the above context menus.

When the file is saved from Whiteboard to File Explorer, what is the 
parameter that saves this filename and in which code file?  We learned 
that baseDrawSave.lzx  saves in WML format that is not usable by users 
to download.  Can we use "addPrintList()" method of "PrintService.java" 
to download the file in either picture or PDF format?

-- 

Sincerely,

Susheel Jalali

Coscend Communications Solutions
Web site:www.CoscendCommunications.com 
<http://www.coscendcommunications.com/>
------------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
Messages from Coscend Communications Solutions' posted at: 
http://www.CoscendCommunications.com/Terms_and_Conditions.html 
<http://www.coscendcommunications.com/Terms_and_Conditions.html>


Re: Downloading (through File Explorer) a file saved from whiteboard

Posted by Maxim Solodovnik <so...@gmail.com>.
Download as PNG/JPG/PDF was commented out due to its bad quality and
instability
I currently have no time to re-implement/investigate it
you can try to do it by your own :)

to investigate you can start from WebContent/src/base/mainMethods.lzx line
~465

On Wed, Aug 12, 2015 at 2:07 AM, Susheel Jalali <
Susheel.Jalali@coscendcommunications.com> wrote:

> Dear Maxim and fellow Developers,
>
> We are seeking your guidance to add a new action to the context menu in
> File Explorer in OM-3.0.7 snapshot.  Users upload a file (in any format) in
> their desktop to file explorer and then load it to whiteboard.  Users
> modify this file on whiteboard and save the whiteboard in file explorer.
> Our users would like to download this saved / modified file in either
> picture (JPG, PNG) or PDF format to their desktop.
>
> When a file is uploaded by a user, in code files
> (imageFileExplorerItem.lzx, documentFileExplorerItem.lzx), the Context Menu
> to include "Download" options are like:
>     <contextmenuitem caption="$once{ canvas.getLabelName(867) }"
>        onselect="parent.parent.parent.downloadImageByName()" />
>
> The file baseFileExplorerItem.lzx defines two methods
> (downloadDocumentByName  and downloadImageByName) that are called from the
> above context menus.
>
> When the file is saved from Whiteboard to File Explorer, what is the
> parameter that saves this filename and in which code file?  We learned that
> baseDrawSave.lzx  saves in WML format that is not usable by users to
> download.  Can we use "addPrintList()" method of "PrintService.java" to
> download the file in either picture or PDF format?
>
> --
>
> Sincerely,
>
> Susheel Jalali
>
> Coscend Communications Solutions
> Web site:www.CoscendCommunications.com <
> http://www.coscendcommunications.com/>
> ------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
> Messages from Coscend Communications Solutions' posted at:
> http://www.CoscendCommunications.com/Terms_and_Conditions.html <
> http://www.coscendcommunications.com/Terms_and_Conditions.html>
>
>


-- 
WBR
Maxim aka solomax