Sebastian your request "I asked him if he is able to create a regular patch / 
SVN diff. 
Creating a patch / SVN in eclipse: Right click on the project => Team => Create 
Patch => save to file
(You need Subclipse or Subversive installed)", may be a bit beyond my expertise 
at this stage (but certainly willing to learn, but it may take time, so I would 
appreciate it if someone could take up the task this time). 

 

I actually used the linux "find" command, searching for "swftools_path" to find 
the areas that needed changing, taking a guess that it would be OK to change 
these files, and then used a text editor to make the changes, compiling them 
with "ant", thanks to Stephen's assistance in providing instructions on how to 
get ant to work. 

 

Eclipse is not (yet) installed to my PC and I am not at this time familiar with 
using the application.  Given time I could learn, but at this stage I would 
like to assist with making a few suggestions/requests for changes, that is 
about as far as my time can permit just now.  Having worked with GUI interfaces 
with Visual Basic a number of years ago, I have experience with designing easy 
to use interfaces.  I hope you don't mind, but I want to make a few requests. I 
am hoping people may accept my requests and implement them if they are simple 
to implement, and when they will take more time, then please still review their 
usefulness.

 

Thanks,

 

George Kirkham

 

IT Manager

Cooperative Research Centre For Greenhouse Gas Technologies (CO2CRC) 

NFF House, 14 - 16 Brisbane Avenue, Barton, ACT, 2600, Australia

T: (02) 6120 1600

F: (02) 6273 7181

E: [email protected], 

W: www.co2crc.com.au

 

 

From: [email protected] [mailto:[email protected]] 
Sent: Saturday, 5 May 2012 9:07 PM
To: [email protected]
Cc: [email protected]
Subject: Re: Code to increase the quality or resolution of converted PDF or 
PowerPoint files

 

Yes I think George already created a Jira Issue, however I asked him if he is 
able to create a regular patch / SVN diff. 
Creating a patch / SVN in eclipse: Right click on the project => Team => Create 
Patch => save to file
(You need Subclipse or Subversive installed)

Sebastian

2012/5/5 Alexei Fedotov <[email protected]>

Hello George,
thank you for your contribution.

Please could you use JIRA for Apache code contributions? We only can
accept contributions under Apache public license, and there is a
corresponding flag in JIRA.

--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/
+7 916 562 8095 <tel:%2B7%20916%20562%208095> 



On Fri, May 4, 2012 at 8:36 AM, George Kirkham <[email protected]> wrote:
> Hi,
>
>
>
> I have that the SWFTools -j (JPEG Quality) and zoom  (dpi) options do a
> great job in converting text. Currently I have the zoom set to 300 but have
> not tested greatly to see if there are any issues like very large files or
> very slow connections caused by this.
>
>
>
> To allow these two settings to be user adjustable by the OpenMeetings
> administrator, I used the below code.
>
>
>
> Two Questions:
>
> 1)      I would appreciate it if this change could be added to the
> OpenMeetings source.
>
> 2)      Could someone add code to validate that the values when changed by
> the administrator, are integers between the acceptable ranges, e.g. for
> zoom, between 50 and 600.
>
>
>
> /singlewebapp/src/install_step1_EN.vm
>
> ./src/.svn/text-base/install_step1_EN.vm.svn-base
>
>
>
>     <fieldset id="userConf1">
>
>                                 <legend>Converters</legend>
>
>                                 <li>
>
>                         <label for="swftools_path">SWFTools Path</label>
>
>                                 <input name="swftools_path"
> id="swftools_path" size="27"
>
>                                 title="Enter the path to swftools for
> example C:/swftools (Windows) or leave blank if swftools is a known to your
> system path" type="text" />
>
>                                 <p><i>You can test if swftools is installed
> into system path by opening a shell or cmd-prompt and type pdf2swf<br/>
>
>                                                 If this shows a list of
> options leave this field blank otherwise you have to specify the path to
> pdf2swf on your system<br/>
>
>                                                 see also <a
> href="http://incubator.apache.org/openmeetings/installation.html";
> target="_blank">Installation</a></i></p>
>
>         </li>
>
>                 <li>
>
>                         <label for="swftools_zoom">SWFTools Zoom</label>
>
>                                 <input name="swftools_zoom"
> id="swftools_zoom" size="4"  value="100"
>
>                                 title="Enter the dpi that swftools will use
> for PDF to SWF conversion" type="text"            />
>
>                                 <p><i>You can test if swftools is installed
> into system path by opening a shell or cmd-prompt and type pdf2swf<br/>
>
>                                                 Enter the dpi that swftools
> will use for PDF to SWF conversion. Default is 100 dpi.<br/>
>
>                                                 see also <a
> href="http://incubator.apache.org/openmeetings/installation.html";
> target="_blank">Installation</a></i></p>
>
>
>
>         </li>
>
>                 <li>
>
>                         <label for="swftools_jpegquality">SWFTools JPEG
> Quality</label>
>
>                                 <input name="swftools_jpegquality"
> id="swftools_jpegquality" size="3" value="85"
>
>                                 title="Enter the quality of embedded jpeg
> pictures to quality. 0 is worst (small), 100 is best (big). (default:85)"
> type="text" />
>
>                                 <p>
>
>                                 <i>You can test if swftools is installed
> into system path by opening a shell or cmd-prompt and type pdf2swf<br/>
>
>                                                 Enter the quality of
> embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big).
> (default:85)<br/>
>
>                                                 see also <a
> href="http://incubator.apache.org/openmeetings/installation.html";
> target="_blank">Installation</a></i>
>
>                                 </p>
>
>         </li>
>
>
>
> =====================================================================================================
>
>
>
> ./src/org/openmeetings/app/installation/ImportInitvalues.java:298:
>
> ./src/org/openmeetings/app/installation/.svn/text-base/ImportInitvalues.java.svn-base:298
>
>
>
>                                 cfgManagement.addConfByKey(3,
> "swftools_zoom", cfg.swfZoom, null,
>
>                                                                 "dpi for
> conversion of PDF to SWF");
>
>
>
>                                 cfgManagement.addConfByKey(3,
> "swftools_jpegquality", cfg.swfJpegQuality, null,
>
>                                                                 "compression
> quality for conversion of PDF to SWF");
>
>
>
> ----------------------------------------------------------------------------------
>
>
>
> ./src/org/openmeetings/app/installation/InstallationConfig.java:20:
>
> ./src/org/openmeetings/app/installation/.svn/text-base/InstallationConfig.java.svn-base:20:
>
>                 //SWFTools PDF to SWF conversion settings
>
>                 public String swfZoom = "";
>
>                 public String swfJpegQuality = "";
>
>
>
>                                                                 + ",
> mailUseTls=" + mailUseTls + ", swfZoom=" + swfZoom
>
>                                                                 + ",
> swfJpegQuality=" + swfJpegQuality  + ", swfPath=" + swfPath
>
>
>
>
>
>
>
> ----------------------------------------------------------------------------------
>
> ./src/org/openmeetings/servlet/outputhandler/Install.java
>
> ./src/org/openmeetings/servlet/outputhandler/.svn/text-base/Install.java.svn-base:245
>
>
>
>
> cfg.swfZoom = httpServletRequest.getParameter("swftools_zoom");
>
>
> cfg.swfJpegQuality =
> httpServletRequest.getParameter("swftools_jpegquality");
>
>
>
> ----------------------------------------------------------------------------------
>
> =====================================================================================================
>
> ./src/org/openmeetings/app/documents/GenerateSWF.java:
>
> ./src/org/openmeetings/app/documents/.svn/text-base/GenerateSWF.java.svn-base:
>
>
>
>
>
>                 private String getSwfZoom() {
>
>                                 String valueForSwfZoom =
> cfgManagement.getConfValue("swftools_zoom", String.class, "");
>
>                                 // WARNING CODE NOT COMPLETE: If SWFTools
> zoom (dpi) should be an integer between 50 and  600 with a default value of
> 100 dpi
>
>                                 if (valueForSwfZoom.equals("")) {
>
>                                                 valueForSwfZoom = "100";
>
>                                 }
>
>                                 return valueForSwfZoom;
>
>                 }
>
>
>
>                 private String getSwfJpegQuality() {
>
>                                 String valueForSwfJpegQuality =
> cfgManagement.getConfValue("swftools_jpegquality", String.class, "");
>
>                                 // WARNING CODE NOT COMPLETE: If SWFTools
> JPEG Quality should be an integer between 1 and 100, with a default value of
> 85
>
>                                 if (valueForSwfJpegQuality.equals("")) {
>
>                                                 valueForSwfJpegQuality =
> "85";
>
>                                 }
>
>                                 return valueForSwfJpegQuality;
>
>                 }
>
>
>
>                 public HashMap<String, String> generateSwf(String
> current_dir,
>
>                                                 String originalFolder,
> String destinationFolder, String fileNamePure) {
>
>
>
>                                 // Create the Content of the Converter
> Script (.bat or .sh File)
>
>                                 String[] argv = new String[] {
>
>
> getPathToSwfTools() + "pdf2swf" + execExt, "-s",
>
>
> "insertstop", // insert Stop command into every frame
>
>
> "-s","poly2bitmap",
> //http://www.swftools.org/gfx_tutorial.html#Rendering_pages_to_SWF_files
>
>                                                                 "-i", //
> change draw order to reduce pdf complexity
>
>                                                                 "-j", " " +
> getSwfJpegQuality(), // JPEG Quality to 100
>
>                                                                 "-s", "
> zoom=" + getSwfZoom(), // set zoom dpi to 200
>
>
> originalFolder + fileNamePure + ".pdf",
>
>
> destinationFolder + fileNamePure + ".swf" };
>
>
>
>                                 return
> ProcessHelper.executeScript("generateSwf", argv);
>
>                 }
>
>
>
> =====================================================================================================
>
>
>
>
>
> Thanks,
>
>
>
> George Kirkham
>
>
>
> IT Manager
>
> Cooperative Research Centre For Greenhouse Gas Technologies (CO2CRC)
>
> NFF House, 14 - 16 Brisbane Avenue, Barton, ACT, 2600, Australia
>
> T: (02) 6120 1600 <tel:%2802%29%206120%201600> 
>
> F: (02) 6273 7181 <tel:%2802%29%206273%207181> 
>
> E: [email protected],
>
> W: www.co2crc.com.au
>
>
>
>
>
> From: George Kirkham [mailto:[email protected]]
> Sent: Wednesday, 2 May 2012 4:58 PM
> To: [email protected]
> Subject: RE: How to increase the quality or resolution of converted PDF or
> PowerPoint files
>
>
>
> Maxim,
>
>
>
> You said "Sebastian already add converter parameter".
>
>
>
> Can you tell me where to set the parameter, what it is called, and in which
> version it was introduced? - that would be very helpful.
>
>
>
> Thanks,
>
>
>
> George Kirkham
>
>
>
> IT Manager
>
> Cooperative Research Centre For Greenhouse Gas Technologies (CO2CRC)
>
> NFF House, 14 - 16 Brisbane Avenue, Barton, ACT, 2600, Australia
>
> T: (02) 6120 1600 <tel:%2802%29%206120%201600> 
>
> F: (02) 6273 7181 <tel:%2802%29%206273%207181> 
>
> E: [email protected],
>
> W: www.co2crc.com.au
>
>
>
>
>
> From: Maxim Solodovnik [mailto:[email protected]]
> Sent: Wednesday, 2 May 2012 3:42 PM
> To: [email protected]
> Subject: Re: How to increase the quality or resolution of converted PDF or
> PowerPoint files
>
>
>
> Sebastian already add converter parameter
>
> please check the latest build
>
> On Wed, May 2, 2012 at 12:37 PM, George Kirkham <[email protected]>
> wrote:
>
> Hi,
>
>
>
> To explain why I would like to increase the PowerPoint slide conversion
> process, please review the following clips from screen shots of an actual
> PowerPoint presentation slide and that of the slide as it is in
> OpenMeetings.
>
>




-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock <https://twitter.com/#%21/dead_lock> 
http://www.openmeetings.de <http://www.openmeetings.de> 
http://www.webbase-design.de <http://www.webbase-design.de> 
http://www.wagner-sebastian.com <http://www.wagner-sebastian.com> 
[email protected] <mailto:[email protected]> 

Reply via email to