problems exporing spreadsheet to JPEG

Oliver Kowalke oliver.kowalke at gmail.com
Thu Aug 30 17:18:44 UTC 2018


Hi,
I'd like to export an spreadsheet to JPEG.
Unfortunately only 7 of 17 columns are contained int the jpeg file.
Is it possible to remove the padding? The jpeg should only contain the
table without space at it s borders?
The function for exporting the spreadsheet looks like this:

void
export2jpeg( Reference< XMultiServiceFactory > const& xMainComponent,
                     std::string const& documentFile) {
    Reference< XStorable > xStore{ xMainComponent, UNO_QUERY };
    Sequence< PropertyValue > storeProps{ 1 };
    storeProps[0].Name = OUString::createFromAscii("FilterName");
    storeProps[0].Name = "FilterName";
    storeProps[0].Value <<= OUString::createFromAscii("JPEG - Joint
Photographic Experts Group");
    xStore->storeToURL( OUString::createFromAscii( documentFile.c_str() ),
storeProps);
}

Thank you in advance.
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20180830/e6905efa/attachment.html>


More information about the LibreOffice mailing list