Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3823

Question about forming a PDF document, including CMYK images for printing.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.6
    • 2.0.7, 3.0.0 PDFBox
    • PDModel

    Description

      It is necessary to form a PDF document, which in the future will be sent to print the company's printers. There are several ICC files provided by companies for printing.
      I have RGB images that should be in CMYK after adding to PDF.

      My code is now for drawing an image:

      ImageObject = LosslessFactory.createFromImage (document, image);
      ContentStream.drawImage (imageObject, position.x, position.y, imageSize.width, imageSize.height);

      I'm wondering whether it is possible to display images in a document in ColorSpace CMYK? Unfortunately, I'm not find working examples yet.

      If so, how can I get PDImageXObject in CMYK ColorSpace from BufferedImage in RGB ColorSpace?

      When I try to create PDImageXObject instance from CMYK image file I get exception:
      javax.imageio.IIOException: Unsupported Image Type

      Attachments

        1. Screen Shot 2017-06-09 at 11.37.22.png
          26 kB
          Mikhail Semionenko

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              semionenko Mikhail Semionenko
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: