Re: Re : Re: Re : Re: Re : Re: Re : Re: Re : Re: [openmeetings-user] Re : Openmeetings : import and export files (PDF)

29 views
Skip to first unread message

seba....@gmail.com

unread,
Jun 13, 2011, 10:18:54 AM6/13/11
to openmeet...@googlegroups.com
Did you succeed to activate the SVG Export functionality and invoke
the Servlet with some URLs ?
Or how do you managed to be able to work with the servlet?
Does it change anything if you write System.out.println instead of log.debug ?

Sebastian


2011/6/13 Guillaume <guigui...@gmail.com>:
> In the file ExporttoImage, there is some instructions of logs but I never
> see logs of this file in the console debug.
>
> For example :
> ("log.debug("pBean.getWidth(),pBean.getHeight()"+pBean.getWidth()+","+pBean.getHeight())
> ); line 115 ExporttoImage
>
> It is normally?
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/openmeetings-user/-/IEZA-IGZlVsJ.
> To post to this group, send email to openmeet...@googlegroups.com.
> To unsubscribe from this group, send email to
> openmeetings-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>

--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba....@gmail.com

Guillaume

unread,
Jun 13, 2011, 10:39:08 AM6/13/11
to openmeet...@googlegroups.com
For the moment, i don't succeed to activate the svg export according the feature which i want to bring.

I just want to see the call of functions in order to understand better the functionnement.

But in my console (terminal Ubuntu), I see the log when i save a file :

DEBUG 06-13 15:19:02.614 ConferenceLibrary.java 4450422 705 org.openmeetings.app.remote.ConferenceLibrary [NioProcessor-1] - saveAsObject :2: java.util.ArrayList
DEBUG 06-13 15:19:02.614 ConferenceLibrary.java 4450422 709 org.openmeetings.app.remote.ConferenceLibrary [NioProcessor-1] - saveAsObject1
DEBUG 06-13 15:19:02.623 ConferenceLibrary.java 4450431 715 org.openmeetings.app.remote.ConferenceLibrary [NioProcessor-1] - ### this is my working directory: /home/guillaume/workspace/ROOT_OM/dist/red5/webapps/openmeetings/upload/
DEBUG 06-13 15:19:02.632 LibraryDocumentConverter.java 4450440 52 org.openmeetings.app.documents.LibraryDocumentConverter [NioProcessor-1] - filePath: /home/guillaume/workspace/ROOT_OM/dist/red5/webapps/openmeetings/upload/
DEBUG 06-13 15:19:02.679 FileExplorerItemDaoImpl.java 4450487 43 org.openmeetings.app.data.file.dao.FileExplorerItemDaoImpl [NioProcessor-1] - .add(): adding file dessin2.pdf
DEBUG 06-13 15:19:02.923 FileExplorerItemDaoImpl.java 4450731 72 org.openmeetings.app.data.file.dao.FileExplorerItemDaoImpl [NioProcessor-1] - .add(): file dessin2.pdf added as 9
DEBUG 06-13 15:19:03.133 ConferenceLibrary.java 4450941 844 org.openmeetings.app.remote.ConferenceLibrary [NioProcessor-1] - room_id 7
etc ....

But I never see when the process of export svg begin and i don't know the reason.

Have you got any suggestions ?


seba....@gmail.com

unread,
Jun 13, 2011, 10:40:13 AM6/13/11
to openmeet...@googlegroups.com
yeah,

because you never invoked the servlet you've of course never see that
log in the console.

Sebastian

2011/6/13 Guillaume <guigui...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/openmeetings-user/-/Kb0EEyUXhmcJ.

Guillaume

unread,
Jun 13, 2011, 10:51:43 AM6/13/11
to openmeet...@googlegroups.com
Ok i have to invoke the servlet in order to activate the svg export.

I've got a very few knowledge about servlet so it's a little difficult.

It is possible to invoke a servlet without urls ?

seba....@gmail.com

unread,
Jun 13, 2011, 10:53:58 AM6/13/11
to openmeet...@googlegroups.com
no,

that is basically the use-case of a servlet => you always invoke it by an URL.

Sebastian

2011/6/13 Guillaume <guigui...@gmail.com>:


> Ok i have to invoke the servlet in order to activate the svg export.
>
> I've got a very few knowledge about servlet so it's a little difficult.
>
> It is possible to invoke a servlet without urls ?
>

> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/openmeetings-user/-/IfMy-MUEx7AJ.

Guillaume

unread,
Jun 13, 2011, 11:12:21 AM6/13/11
to openmeet...@googlegroups.com
I'll try to learn more informations about servlets before working on this feature.

But i don't understand when it is necessary to invoke a servlet in order to export the files.

Can you explain me rapidly this proceed please?

Thanks

seba....@gmail.com

unread,
Jun 13, 2011, 11:13:55 AM6/13/11
to openmeet...@googlegroups.com
you want a download, you cannot send any file to a user without
requesting it with an URL.
For the client when he invokes the servlet it looks like a usual file
download, while on server side the file is actually created on the fly
by the servlet.

Sebastian

2011/6/13 Guillaume <guigui...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/openmeetings-user/-/5KN5plqgPGUJ.

Guillaume

unread,
Jun 13, 2011, 11:38:41 AM6/13/11
to openmeet...@googlegroups.com
Ok it's cool i understand well.

I suppose that the url in question in the client side is :  ( var downloadurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport+canvas.httpRootKey+'ExportToImage?' +
                                        'fileName=' + parent.savefileName +
                                        '&hash='+value +
                                        '&exportType=' + parent.exportType +
                                        '&sid='+canvas.sessionId; ) ?  => baseDrawSave.lzx

And the servlet is invoked by :  lz.Browser.loadURL(downloadurl,"_BLANK"); ?

Thanks




seba....@gmail.com

unread,
Jun 13, 2011, 11:43:25 AM6/13/11
to openmeet...@googlegroups.com
yes,

but as I have written earlier, you need to invoke this method in the
PrintService first, to create the *hash* for the servlet. Otherwise
the servlet cannot find out where to get the whiteboard-objects that
it should render.

Sebastian

2011/6/13 Guillaume <guigui...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/openmeetings-user/-/Xeh1VCRgMOQJ.

Reply all
Reply to author
Forward
0 new messages