Apache OpenOffice (AOO) Bugzilla – Issue 41495
Impress HTML/WebCast (impress_html_Export) exporting not working
Last modified: 2017-05-20 11:27:26 UTC
The filter options for impress html webcast exporting are not yet documented, see issue# 41395. But with the draft list of impress_html_Export filter options, and I assume that those properties in the draft list need to be feed into FilterData, and they are specific to export filter "impress_html_Export". I had tried with the following code, but the result is just an empty html file. Please let me know if you need additional test file. PropertyValue[] exportProps = new PropertyValue[3]; exportProps[ 0 ] = new PropertyValue(); exportProps[ 0 ].Name = "Overwrite"; exportProps[ 0 ].Value = Boolean.TRUE; exportProps[ 1 ] = new PropertyValue(); exportProps[ 1 ].Name = "FilterName"; exportProps[ 1 ].Value = exportFilterName; // for WebCast exporting... PropertyValue[] dataProps = new PropertyValue[6]; dataProps[0] = new PropertyValue(); dataProps[0].Name = "PublishMode"; dataProps[0].Value = new Long(2); dataProps[1] = new PropertyValue(); dataProps[1].Name = "Format"; dataProps[1].Value = new Long(1); dataProps[2] = new PropertyValue(); dataProps[2].Name = "IndexURL"; dataProps[2].Value = "mpc.html"; dataProps[3] = new PropertyValue(); dataProps[3].Name = "WebCastCGIURL"; dataProps[3].Value = "mpc-listener.html"; dataProps[4] = new PropertyValue(); dataProps[4].Name = "WebCastTargetURL"; dataProps[4].Value = "mpc-presenter.html"; dataProps[5] = new PropertyValue(); dataProps[5].Name = "WebCastScriptLanguage"; dataProps[5].Value = "mpc-perl.pl"; exportProps[2] = new PropertyValue(); exportProps[2].Name = "FilterData"; exportProps[2].Value = dataProps; try{ xComponent = initDocument(fullSourceFilePath, importProps); XStorable xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, xComponent); xStorable.storeToURL(storeURL, exportProps); System.out.println("Saved to: " + fullTargetFilePath); }catch(IllegalArgumentException e_args) { System.out.println("Not of the specified filter type, ignore."); e_args.printStackTrace(); return; .... Christian Lippka wrote: >Hi Yu, > >sorry for the late reply. Where working hard on the upcoming beta >release > >Chen, Yu wrote: > > >>Hello, I am working on a program that automates the HTML/WebCast >>exporting... Is it achievable?? >> >> >Yes, you can use the html export, please see the documentation in >the sdk on how to use export filters. The name of this export filter >is "impress_html_Export". > > > >>Now I have the followings from Common.properties,/ for portion >>component.group[Filter].group[HTML].group[Export], /but I don't see any >>filterData parameters on how to configure WebCast exporting. Any one >>have any insights? Am I looking into the proper properties files, or is >>webcast exporting even supported yet in SO API? >> >> > >Yes, I'm afraid theire not documentet yet. I have submitted an issue >to myself for this. I have put you on the cc of issue 41395 so you will >be informed on any changes. > >Since it make take some time until I fully document all properties, >I made a draft of all available properties, maybe that helps you already. > >Regards, >Christian > >service ??? >{ > /** 0 html > 1 frames > 2 webcast > 3 kiosk > */ > [property] long PublishMode; > > /** > */ > [property] string IndexURL; > > /** > 0 gif > 1 jpg > */ > [property] long Format; > > /** > */ > [property] string Compression; > > /** > */ > [property] long Width; > > /** > */ > [property] long UseButtonSet; > > /** > */ > [property] boolean IsExportNotes; > > /** > */ > [property] boolean IsExportContentsPage; > > /** > */ > [property] string Author; > > /** > */ > [property] string EMail; > > /** > */ > [property] string HomepageURL; > > /** > */ > [property] string UserText; > > /** > */ > [property] boolean EnableDownload; > > /** > */ > [property] long BackColor; > > /** > */ > [property] long TextColor; > > /** > */ > [property] long LinkColor; > > /** > */ > [property] long VLinkColor; > > /** > */ > [property] long ALinkColor; > > /** > */ > [property] boolean IsUseDocumentColors; > > /** > */ > [property] long KioskSlideDuration; > > /** > */ > [property] boolean KioskEndless; > > /** > */ > [property] string WebCastCGIURL; > > /** > */ > [property] string WebCastTargetURL; > > /** > */ > [property] string WebCastScriptLanguage; > >}; > >
With a little more effort twisting with the params, I found "impress_html_Export" without "FilterData" work fine, it exports to regular html files with the navigator buttons. But with additonal "FilterData" properties, it only exports empty html file.
Yes correctly, the dialog uses the "FilterData" but the actuall export is gettings it's filter data properties directly from the media descriptor. I have no Idea how this can actually work together
Created attachment 72686
Reset assigne to the default "issues@openoffice.apache.org".