Apache OpenOffice (AOO) Bugzilla – Issue 69028
Filterdata for GraphicProfider
Last modified: 2017-05-20 11:28:03 UTC
For importing en exporting Images from a writerdoc with changing the Fileformat and the Pixelsize we can can use 2 methods: Using a hidden DrwawDoc and t:he ".drawing.GraphicExportFilter" or using "Provider.storeGraphic" . Both methods are using a filter with some "filterdata" 1: drawing.GraphicExportFilter xExporter = createUnoService( "com.sun.star.drawing.GraphicExportFilter" ) xExporter.SetSourceDocument( xObject ) Dim aArgs (2) as new com.sun.star.beans.PropertyValue Dim aURL as new com.sun.star.util.URL sFileUrl = ConvertToURL(sFileUrl) aArgs(0).Name = "FilterName" aArgs(0).Value = "jpg" aArgs(1).Name = "URL" aArgs(1).Value = sFileUrl aArgs(2).Name = "FilterData" >> "PixelWidth" and "PixelHeight" aArgs(2).Value = aFilterData ' xExporter.filter( aArgs() ) Here we end up with a JPG imagefile with the correct Pixelsizes 2: "Provider.storeGraphic" . Dim oPropsUIT(2)as new com.sun.star.beans.PropertyValue oPropsUIT(0).Name = "URL" oPropsUIT(0).Value = sURLuit ' oPropsUIT(1).Name = "SizePixel" ' oPropsUIT(1).Value = asize oPropsUIT(1).Name = "MimeType" oPropsUIT(1).Value = "image/jpeg" >> loads the "jpg" filter oPropsUIT(2).Name = "FilterData" >> "PixelWidth" and "PixelHeight" oPropsUIT(2).Value = aFilterData() oProvider.storeGraphic( graph , oPropsUIT()) Here we end up with a JPG imagefile but with NO correct pixelsize (who is still the orginal size of the imported image) is supose the "filterdata" is not transmited to the filter ??? SO: - Is the "Provider.storeGraphic" not using the same Filters as the "drawing.GraphicExportFilter" ? - Is ther a bug when transfering the filterdata with "Provider.storeGraphic" ?
accepted
set target to 2.x
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".