Issue 81097

Summary: pdf export - selection of text coding (CMYK or RGB)
Product: Writer Reporter: klepsland <klepslan>
Component: save-exportAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: gleppert, irne.barnard, issues, jbf.faure, klaus.kusche, rgb.mldc, rpr.nospam
Version: OOo 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description klepsland 2007-08-28 19:04:56 UTC
pdf export from writer results in RGB coding of text.
A user interface to select text coding is wanted (CMYK or RGB).
(OOo 2.2.1)
Comment 1 michael.ruess 2007-08-29 06:18:16 UTC
Reassigned to HI.
Comment 2 h.ilter 2007-08-29 14:23:33 UTC
Reassigned to requirements
Comment 3 toshio 2008-08-29 01:45:15 UTC
I think OpenOffice needs ability to export pdf also as gray /100% black only
colorspace, because now it exports as RGB and output pdf must be converted to be
printed with offset printing technique 
Comment 4 rogalik 2008-09-09 08:18:22 UTC
*** Issue 81097 has been confirmed by votes. ***
Comment 5 klepsland 2008-09-13 09:49:44 UTC
It seems that the options for pdf export should be:
  - don't convert colours
  - convert to CMYK
  - convert to RGB
  - convert to grey
  - convert to black-and-white  (set black level: 0,...,254)
Comment 6 irneb 2009-08-15 09:54:00 UTC
Inside a PDF, the RGB / CMYK / Gery color space is saved as an ICC profile.
Usually RGB=sRGB IEC61966-2.1; CMYK=U.S. Web Coated (SWOP) v2; Grey=Gray Gamma 2.2

At least, that's what Adobe Acrobat does. OOo does not use anything like the ICC
(International Color Consortium) standards. It only uses RGB values, which is
not great since any RGB value may look different on different display devices
(especially comparing screen with printer). See Issue 18674

I don't think anything like this will be possible until the whole color system
gets revamped to use the ICC XYZ color space with profile matching instead.
Nearly all graphical programs use this method (at least all professional quality
programs). Not many word processors though, but it shouldn't be difficult if the
color space is introduced to have the same functionality throughout OOo.
Comment 7 lohmaier 2009-08-15 12:50:03 UTC
PDF/A-1a export uses the sRGB profile
Comment 8 fundi 2009-12-27 17:49:18 UTC
Just black would also be good
Comment 9 klaus.kusche 2011-08-26 12:00:39 UTC
It's no longer an enhancement request, 
it's a serious bug which needs an immediate fix:

* Adobe Acrobat 9 refuses to display any PDF/A file created by OO on linux,
giving an "invalid colorspace" message. Hence OO PDF export becomes useless.

* PDF/A standard verification fails for OO-created PDF/A documents,
i.e. OO creates invalid PDF/A documents.
The Solid Documents verifier (convert@validatepdfa.com, 
http://www.validatepdfa.com/en/online.htm) says

    <issues>

      <colorSpace>

        <problem severity="error" clause="6.2.2" standard="pdfa">OutputIntent object has an incorrect parameter or invalid color profile</problem>

      </colorSpace>

      <catalog>

        <problem severity="error" clause="6.2.3" standard="pdfa">Device-specific color space used with incorrect or missing OutputIntent</problem>

      </catalog>

    </issues>


The problem is linux-specific. Exporting the same document (just b&w text,
no graphics) with the same settings on Windows works fine.

So at least OO should create a *valid* colorspace!
Comment 10 klaus.kusche 2011-08-26 12:10:45 UTC
Uups, probably wrong product.
Problem seems to be 
1.) Libre-Office 3.4.* specific
2.) Linux 64 bit specific

But Google only finds OO bug reports, not LO ones...
Comment 11 rpr 2011-11-11 14:54:46 UTC
The problem mentioned by kkusche in #9 has been solved in LibreOffice:
https://bugs.freedesktop.org/show_bug.cgi?id=39355

Regarding the issue of setting the color space when exporting to PDF I
suggest a temporary enhancement: an option to convert all colors to
grayscale, which is relatively simple I guess.

Currently, I achieve this functionality on Windows by printing the
document to a virtual PDF printer (that creates PDF documents) by
enabling the following in the printer properties:
Paper/Quality -> Color - Black & White