Created attachment 56458 [details] LibreOffice Draw file that can be used to reproduce the problem Problem description: Steps to reproduce: 1. Create a document with a callout containing a gradient going from dark at the top to light at the bottom. 2. Use File > Export to export to one of the above formats. 3. Open the resulting file in GIMP or another program. Current behavior: The gradient when opened in the other program looks messed up, with lots of horizontal lines across it. Expected behavior: The gradient when opened in the other program should be smooth, looking like it did in LibreOffice Draw. Platform (if different from the browser): Windows 7 Home 64-bit. Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
Created attachment 56459 [details] PDF file resulting from export, with gradient showing horizontal lines
Reproduced with LibreOffice 3.5.0rc3 7e68ba2-a744ebf-1f241b7-c506db1-7d53735 Ubuntu 10.04.3 x86 Linux 2.6.32-38-generic Russian UI
I load this gradient in acroread and I see a reasonably linear gradient. Are you sure you're not just seeing rendering artifacts in the viewer ? :-) It is possible of course that we do some subsetting of gradients inside the VCL rendering rather than writing them out to PDF as gradients, worth digging into: vcl/source/gdi/pdfwriter.cxx to see what is going on there.
The issue seems to be on the side of the pdf viewer. I tested a bunch of document, and Adobe Reader displays gradients just fine when Evince, ImageMagick and pdftocairo fail (visible horizontal lines). On a side note the function handling gradients in pdfwriter_impl2.cxx (PDFWriterImpl::playMetafile) has 2 ways to draw them and use USE_PDFGRADIENTS constant to decide which implementation to use. As USE_PDFGRADIENTS is always unset (AFAIK), maybe some cleanup here is necessary ?
@Richard Corner: this problem should be fixed in the next LibreOffice version (at least for linear and axial gradients). You can also help by testing daily versions (http://dev-builds.libreoffice.org/daily/master/) to make sure your problem is properly fixed. Thanks!
Created attachment 91911 [details] ODG PDF comparison tested your ODG file with LibO 4.1.4.2 under Win7 64bit and exported it to PDF. output file has smooth gradient like the original. see my screenshot. I mark this as RESOLVED WORKSFORME