I released a new version of my MailMerger application (http://rubyforge.org/projects/mailmergehelper/) . The application now uses java and ruby to automate the collection and processing of csv data to be merged. It uses a java class that can transform csv to ods (OpenOffice Calc document) and viceversa and html to ods. The Writer mail merge template must use a datasource that links to an ods spreadsheet. It works with OpenOffice 2.3. The program has helped me alot at work, where we use it to automatically take the html data produced by RenWeb's create-a-report and convert it to ods so that OO Writer can use it for mail merge. The program also allows for custom ruby scripts to process the data before is sent to Writer.
I also found that the best way of doing labels in OpenOffice is to download the Microsoft Word templates from the Avery website and then convert them into odt.
The following Powershell script will convert a batch of JPEG files to TIFF format: #This Code is released under MIT license [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") $files_folder = 'C:\path-where-your-jpg-files-are\' $pdfs = get-childitem $files_folder -recurse | where {$_.Extension -match "jpg"} foreach($pdf in $pdfs) { $picture = [System.Drawing.Bitmap]::FromFile( $pdf.FullName ) $tiff = $pdf.FullName.replace('.PDF','').replace('.pdf','').replace('.jpg','').replace('.JPG','') + '.tiff' $picture.Save($tiff) }
Comments