Has anyone else tried converting pdfs to monochrome tiff images using ConvertPDFServiceClient in LiveCycle 8.2? Acrobat Pro will perform this task successfully but using apparently the same settings with ConvertPDFServiceClient produces gray scale, Lempel-Ziv compressed images. Is there another setting that should be added to the ToImageOptionsSpec in the code below?
...
ConvertPdfServiceClient serviceClient = new ConvertPdfServiceClient(
factory);
ToImageOptionsSpec spec = new ToImageOptionsSpec();
spec.setImageConvertFormat(ImageConvertFormat.TIFF);
spec.setResolution("200");
spec.setMultiPageTiff(java.lang.Boolean.FALSE);
spec.setCmykPolicy(com.adobe.livecycle.convertpdfservice.client.enumeration.
CMYKPolicy.Off);
spec.setColorSpace(com.adobe.livecycle.convertpdfservice.client.enumeration.
ColorSpace.Monochrome);
spec.setRgbPolicy(com.adobe.livecycle.convertpdfservice.client.enumeration.
RGBPolicy.Off);
spec.setGrayScalePolicy(com.adobe.livecycle.convertpdfservice.client.
enumeration.GrayScalePolicy.Off);
spec.setColorCompression(com.adobe.livecycle.convertpdfservice.client.
enumeration.ColorCompression.None);
spec.setMonochrome(com.adobe.livecycle.convertpdfservice.client.enumeration.
MonochromeCompression.CCITTG4);
spec.setGrayScaleCompression(com.adobe.livecycle.convertpdfservice.client.
enumeration.GrayScaleCompression.None);
try {
List allImages = serviceClient.toImage2(transformedDocument, spec);
....
Thanks!
...
ConvertPdfServiceClient serviceClient = new ConvertPdfServiceClient(
factory);
ToImageOptionsSpec spec = new ToImageOptionsSpec();
spec.setImageConvertFormat(ImageConvertFormat.TIFF);
spec.setResolution("200");
spec.setMultiPageTiff(java.lang.Boolean.FALSE);
spec.setCmykPolicy(com.adobe.livecycle.convertpdfservice.client.enumeration.
CMYKPolicy.Off);
spec.setColorSpace(com.adobe.livecycle.convertpdfservice.client.enumeration.
ColorSpace.Monochrome);
spec.setRgbPolicy(com.adobe.livecycle.convertpdfservice.client.enumeration.
RGBPolicy.Off);
spec.setGrayScalePolicy(com.adobe.livecycle.convertpdfservice.client.
enumeration.GrayScalePolicy.Off);
spec.setColorCompression(com.adobe.livecycle.convertpdfservice.client.
enumeration.ColorCompression.None);
spec.setMonochrome(com.adobe.livecycle.convertpdfservice.client.enumeration.
MonochromeCompression.CCITTG4);
spec.setGrayScaleCompression(com.adobe.livecycle.convertpdfservice.client.
enumeration.GrayScaleCompression.None);
try {
List allImages = serviceClient.toImage2(transformedDocument, spec);
....
Thanks!