You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/02/26 07:38:55 UTC

DO NOT REPLY [Bug 52255] RFE: XWPFPictureData should allow registration of new image formats

https://issues.apache.org/bugzilla/show_bug.cgi?id=52255

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Yegor Kozlov <ye...@dinom.ru> 2012-02-26 06:38:55 UTC ---
As of r1293748, POI supports TIFF, EPS, BMP and WPG images. The fix applies to
all OOXML modules: XSSF, XWPF and XSLF.
The full list of supported formats is
emf|wmf|pict|jpeg|png|dib|gif|tiff|eps|bmp|wpg. DXF, CGM and CDR are not
supported by MS Office 2007 / 2010 by default, you have to install an image
filter to import those formats and internally MS Office converts them to either
PNG or EMF. So if you need to import a file from Autocad or CorelDraw, convert
it first to one of the supported formats by POI.

> It seems that, with the exception of tiff, Word immediately converts the images
> to emf or png.

yes, MS Office does so, but if you programmatically insert images in a raw form
then MS Office is fine to show them. I guess internally MS Office  handles all
vector formats as EMF/WMF. Other formats are converted either when inserting or
on the fly.  

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org