Specified argument was out of the range of valid values.i n Android app


#1

i have got this error class com.aspose.pdf.internal.ms.System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. in android app

Document pdf = new Document(new File(selectedImagePath).getAbsolutePath());
pdf.save(Environment.getExternalStorageDirectory().getAbsolutePath() + “/sample.doc”, SaveFormat.DocX);


#2

@hardik24895

Could you kindly share your sample PDF document with us. We will test the scenario in our environment and address it accordingly.


#3

sample.pdf (3.0 KB)


#4

@hardik24895

We have tested the scenario in our environment using Aspose.PDF for Android via Java 19.3 and were unable to notice the exception that you have shared. However, we have noticed that output .docx file was damaged and could not get opened in MS Word.

sample.zip (67.1 KB)

For your kind reference, an output file is also attached. Furthermore, we have logged an issue as PDFANDROID-563 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


#5

Thanks for the update but we are planning to purchase your SDK when we are confirm PDF to Word conversion is perfect


#6

we have convert to pdf to docx but docx file is not readable


#7

@hardik24895

Yes, we have also noticed similar issue in our environment and for the sake of correction, we have already logged it under the ticket ID PDFANDROID-563 in our issue tracking system. We will let you know as soon as the issue is resolved. Please spare us little time.

We are sorry for the inconvenience.