FYI, for more on image scaling issues associated with Linux "headless"
operation of Sun Java, as related specifically to the xwiki openoffice
converter, see:
http://jira.xwiki.org/jira/browse/XWIKI-3216?focusedCommentId=37483&pag…
You might want to check on some missing environment variables or missed
setup options.
I believe OpenOffice is "thinking" at the wrong DPI ... since it doesn't
actually have a display from which to get a real DPI measurement.
Google says others have had these sorts of problems:
http://www.mail-archive.com/debian-openoffice@lists.debian.org/msg07491.html
And this
http://www.hippocms.org/display/CMS/How+to+configure+the+File+Import+Servic…
option "rescaleBitmaps" may be needed for correct handling of
"resolution independence".
Since we can't really know the end-resolution for importing an office
document, it's more reasonable to set it at a standard value for today's
display's, e.g. 100DPI. ... What is basically needed is to "synthesize" the
following X server setting normally in ~/.Xresources because this is
probably where OOo gets it's DPI value: "Xft.dpi: 100"
If I am correct with my conjecture, the following explains in more detail (
http://www.hippocms.org/display/CMS/How+to+configure+the+File+Import+Service)
..................
When you upload a document you can specify three additional parameters by
suffixing them to the URL using standard URL parameter syntax:
- rescaleBitmaps of type boolean. This parameter defaults to false.
Normally bitmaps are extracted as is. This could lead to bitmaps that are
smaller or larger than they appear in the document. By setting this
parameter to true, the bitmaps will be rescaled to the size specified in the
document using the dots per inch (DPI) specified by dpiForBitmaps.
- convertWmfsToBitmaps of type boolean. This parameter default to false.
Some files contain images in the Windows Meta Files format. These files
cannot be used as is for web pages. By setting this parameter to true the
Windows Meta Files will be converted to bitmaps. The DPI specified by
dpiForBitmaps is used to determine the size of the bitmap to produce.
- dpiForBitmaps of type integer. This parameter defaults to 96.
The DPI to use for rescaling bitmaps and converting Windows Meta Files to
bitmaps. This parameter is only applicable if one of the options above is
enabled.
Note that no error will be returned if invalid values are passed for the
parameters. Instead the default values will be used.
[ Show
»<http://jira.xwiki.org/jira/browse/XWIKI-3216?focusedCommentId=37483&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_37483>]
Niels Mayer,
http://nielsmayer.com<http://jira.xwiki.org/jira/secure/ViewProfile.jspa…
a comment - 18/Feb/09
00:09 You might want to check on some missing environment variables or
missed setup options. I believe OpenOffice is "thinking" at the wrong DPI
... since it doesn't actually have a display from which to get a real DPI
measurement. Google says others have had these sorts of problems:
http://www.mail-archive.com/debian-openoffice@lists.debian.org/msg07491.htm…
this
http://www.hippocms.org/display/CMS/How+to+configure+the+File+Import+Servic…
option "rescaleBitmaps" may be needed for correct handling of
"resolution independence". Since we can't really know the end-resolution
for
importing an office document, it's more reasonable to set it at a standard
value for today's display's, e.g. 100DPI. ... What is basically needed is to
"synthesize" the following X server setting normally in ~/.Xresources
because this is probably where OOo gets it's DPI value: "Xft.dpi: 100" If I
am correct with my conjecture, the following explains in more detail (
http://www.hippocms.org/display/CMS/How+to+configure+the+File+Import+Service)
.................. When you upload a document you can specify three
additional parameters by suffixing them to the URL using standard URL
parameter syntax:
- rescaleBitmaps of type boolean. This parameter defaults to false.
Normally bitmaps are extracted as is. This could lead to bitmaps that are
smaller or larger than they appear in the document. By setting this
parameter to true, the bitmaps will be rescaled to the size specified in the
document using the dots per inch (DPI) specified by dpiForBitmaps.
- convertWmfsToBitmaps of type boolean. This parameter default to false.
Some files contain images in the Windows Meta Files format. These files
cannot be used as is for web pages. By setting this parameter to true the
Windows Meta Files will be converted to bitmaps. The DPI specified by
dpiForBitmaps is used to determine the size of the bitmap to produce.
- dpiForBitmaps of type integer. This parameter defaults to 96.
The DPI to use for rescaling bitmaps and converting Windows Meta Files to
bitmaps. This parameter is only applicable if one of the options above is
enabled. Note that no error will be returned if invalid values are passed
for the parameters. Instead the default values will be used.