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.enume ration.
CMYKPolicy.Off);
spec.setColorSpace(com.adobe.livecycle.convertpdfservice.client.enume ration.
ColorSpace.Monochrome);
spec.setRgbPolicy(com.adobe.livecycle.convertpdfservice.client.enumer ation.
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.enume ration.
MonochromeCompression.CCITTG4);
spec.setGrayScaleCompression(com.adobe.livecycle.convertpdfservice.cl ient.
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.enume ration.
CMYKPolicy.Off);
spec.setColorSpace(com.adobe.livecycle.convertpdfservice.client.enume ration.
ColorSpace.Monochrome);
spec.setRgbPolicy(com.adobe.livecycle.convertpdfservice.client.enumer ation.
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.enume ration.
MonochromeCompression.CCITTG4);
spec.setGrayScaleCompression(com.adobe.livecycle.convertpdfservice.cl ient.
enumeration.GrayScaleCompression.None);
try {
List allImages = serviceClient.toImage2(transformedDocument, spec);
....
Thanks!