Hi
Hi Piyush,
Hey,
I do this:
==========================================
Resolution resolution = new Resolution(200);
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.setCompression(CompressionType.LZW);
tiffSettings.setDepth(ColorDepth.Format1bpp);
tiffSettings.setSkipBlankPages(false);
Document document = new Document(file.getAbsolutePath());
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
for (int i=0; i<document.getPages().size(); i++) {
fileName++;
tiffDevice.process(document, i+1, i+1, fileName + “.tif”);
}
==========================================
The created TIFF is an “Indexed color (2 colors)” and not a simple “Grayscale”, is there a way to do this?
thx
Michael
Hi Michael,
system. The development team will further look into the details of this requirement and will keep you
updated on the status of correction. Please be patient and spare us little
time. We are sorry for this inconvenience.
<o:p></o:p>
Hi Michael,
do you still need examples for this issue?
Hi Michael,
The issues you have found earlier (filed as PDFNEWNET-16222) have been fixed in Aspose.Pdf for .NET 10.6.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(2)
Hi,
did you resolve the issue also on Java Plattform. I’m using Aspose Pdf 11.1.0 for JAVA and I think I still can’t create an grayscale image.
thx
Michael
Hi Michael,
Hi Michael,michael.burger@siag.it:Hi,
did you resolve the issue also on Java Plattform. I’m using Aspose Pdf 11.1.0 for JAVA and I think I still can’t create an grayscale image.
The issues you have found earlier (filed as PDFNEWJAVA-35448) have been fixed in Aspose.Pdf for Java 11.2.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Piyush,
Document document = new Document(“c:/pdftest/New+folder1.pdf”);<o:p></o:p>
com.aspose.pdf.RgbToDeviceGrayConversionStrategy strategy = new com.aspose.pdf.RgbToDeviceGrayConversionStrategy();
for (int idxPage = 1; idxPage <= document.getPages().size(); idxPage++)
{
Page page = document.getPages().get_Item(idxPage);
strategy.convert(page);
}
document.save("c:/pdftest/GrayScale_output.pdf");
Hi Piyush,
Resolution resolution = new
Resolution(200);<o:p></o:p>
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.setCompression(CompressionType.LZW);
tiffSettings.setDepth(ColorDepth.Format1bpp);
tiffSettings.setSkipBlankPages(false);
RgbToDeviceGrayConversionStrategy strategy = new RgbToDeviceGrayConversionStrategy();
Document document = new Document("c:/pdftest/M2.PDF");
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
int fileName=0;
for (int i=0; i<document.getPages().size(); i++) {
fileName++;
strategy.convert(document.getPages().get_Item(i+1));
tiffDevice.process(document, i+1, i+1,"c:/pdftest/M2_" +fileName + ".tif");
}
Hi Marco,
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.