PDF grey scale conversion issue

Tried to convert one pdf which is having lot of grey back ground using java version of aspose pdf api and failed using the below standard code. plz help.

Document doc = new Document(downloadPath + fileName);
		com.aspose.pdf.RgbToDeviceGrayConversionStrategy strategy = new com.aspose.pdf.RgbToDeviceGrayConversionStrategy();
		

		for (int idxPage = 1; idxPage <= doc.getPages().size(); idxPage++) {
			Page page = doc.getPages().get_Item(idxPage);
			strategy.convert(page);
		}
		doc.convert(basePath + fileName, PdfFormat.v_1_4, ConvertErrorAction.Delete);
		String uploadPath =  basePath + "output\\";
		doc.save(uploadPath + fileName);

@ssrao73

Thank you for contacting support.

Would you please share the source PDF file while mentioning the details how it fails so that we may investigate further to help you out. Before sharing requested data, please ensure using Aspose.PDF for Java 18.7 in your environment.

Hi,

Please find the attached source pdf. Please reply asap.
Issues: Not converting to grey scale properly and pdf size getting increased.

Thanks,
Srini

@ssrao73

We are afraid the PDF file did not attach fine. If the file size exceeds 3MB limit then please upload it to Google Drive, Dropbox etc so that we may proceed further to help you out.

I sent you the pdf over mail ,it is just 850 kbs.

SAQ121_PharmacyUserGuide_V8.zip (537.8 KB)

Please find uploaded document in zip format…it got reduced to 540 kbs

Another problematic pdf, thi size is getting more after pdf conversion and help images are not getting converted…PharmacyTouch_UserGuide.zip (2.4 MB)

@ssrao73

Thank you for sharing requested data.

We have tried to convert PharmacyTouch_UserGuide.pdf and have noticed differences on following pages:

  • Page 07/30: Greenish rectangle boxes are not converted to Grey scale
  • Page 15/30: Same problem with rectangular boxes
  • Page 23/30: Rectangular box at the top of page

and increase in the size of generated PDF file. PharmacyTouch_18.7.pdf

and SAQ121_PharmacyUserGuide_V8.pdf file is not converting properly.
SAQ121_PharmacyUserGuide_V8_18.7.pdf

Please confirm our observations if you are reporting the same problems or any other additional issues so that we can proceed further to help you out.

Yes You are right. Please help me out on these issues.

@ssrao73

Thank you for clarifying.

We have logged below tickets in our issue management system for further investigation and resolution.

PDFJAVA-37954: For the problems with PharmacyTouch_UserGuide.pdf file
PDFJAVA-37955: For the problems with SAQ121_PharmacyUserGuide_V8.pdf file

The ticket IDs have been linked with this thread so that you will receive notifications as soon as the tickets are resolved.

We are sorry for the inconvenience.

Hi,

Any update on these issues please.

regards,
Srini

@ssrao73

Please note that the issues have been logged recently and are currently pending for investigations. They will be investigated on their due turn which can take some months. We will update you as soon as some significant updates will be available.

However, we also offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.

Yes, we have paid OEM support for Aspose PDF. I WOULD REQUEST YOU PLEASE WORK ON THIS ON HIGH PRIORITY.Please let us know if you need more information.

Thanks and regards,
Srini

@ssrao73

Please request over Paid Support Helpdesk to escalate the priority of PDFJAVA-37954 and PDFJAVA-37955. If you face any problem while requesting for priority escalation at the Helpdesk, then you may report the problem over Purchase forum.