You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Thiruppathi M." <th...@sps.co.in> on 2016/04/27 13:55:26 UTC

Image Replacement

Hi,

I am using PDFBOX for PDF content manipulation and image handling.

I am getting below error in image replacement

[cid:image001.png@01D1A0A6.403D75C0]

I am  following below steps for image replacement.


i.                     Extract the image from PDF

ii.                   Extracted RGB image is convert to CMYK image and save the CMYK image as tif

iii.                  And then replace the converted tif image in PDF.


Note: i am setting writeParam.setCompressionType("CCITT T.4")

Please advice how to proceed further.

Regards
Thiruppathi M.


Re: Image Replacement

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 27.04.2016 um 13:55 schrieb Thiruppathi M.:
>
> Hi,
>
> I am using PDFBOX for PDF content manipulation and image handling.
>
> I am getting below error in image replacement
>
> I am  following below steps for image replacement.
>
> i.Extract the image from PDF
>
> ii.Extracted RGB image is convert to CMYK image and save the CMYK 
> image as tif
>
> iii.And then replace the converted tif image in PDF.
>

The PDCCitt class is only for b/w images that are G3 or G4 compressed. 
We have no class that supports CMYK images.

Tilman

> Note: i am setting writeParam.setCompressionType("CCITT T.4")
>
> Please advice how to proceed further.
>
> Regards
>
> Thiruppathi M.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org