[
https://issues.apache.org/jira/browse/PDFBOX-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044543#comment-16044543
]
Tilman Hausherr commented on PDFBOX-3823:
-----------------------------------------
See here:
https://mail-archives.apache.org/mod_mbox/pdfbox-users/201702.mbox/browser
search on the page for "CMYK", I posted some code in the middle of the thread
to add CMYK JPEG images.
I'll also add that code to JPEGFactory soon.
Converting a BufferedImage from RGB to CMYK may be possible (we do the opposite
in {{PDColorSpace.toRGBImageAWT()}})... but I can't remember that this has been
done before.
It is unclear to me what you want (maybe both :-) )
> Question about forming a PDF document, including CMYK images for printing.
> --------------------------------------------------------------------------
>
> Key: PDFBOX-3823
> URL: https://issues.apache.org/jira/browse/PDFBOX-3823
> Project: PDFBox
> Issue Type: Task
> Components: PDModel
> Affects Versions: 2.0.6
> Reporter: Mikhail Semionenko
> Assignee: Tilman Hausherr
> Priority: Minor
> Labels: CMYK
> Attachments: Screen Shot 2017-06-09 at 11.37.22.png
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]