We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

GlobalPageSettings -> PaperSize -> A4 is not working

Hi,

We tried to set paper size A4 and faced an error. We are getting the below error message:
The index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Please refer attached zip file, I have shared the complete StackTrack and our method. I have also shared a sample text which I used to generate the template although I am getting this error with all templates.

The same templets are working fine when the PageSize is “Letter” but “A4” is not working at all.

Hope to hear from you soon.

sample.zip (2.0 KB)

@aashishmca

We are checking it and will get back to you shortly.

@aashishmca

Could you please also share the two images which are being used in template generation process? We will further proceed with testing and share our feedback with you.

As per your request sharing the images which we used in template.

correct.png (1.7 KB)
wrong.png (1.8 KB)

@aashishmca

We were able to replicate the similar issue in our environment. Therefore, have logged it as OMRNET-297 in our issue management system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.