121
Views
5
Comments
[Convert Image to PDF] How can I convert an Image to PDF ?
convert-image-to-pdf
Service icon
Forge asset by Ryan Surjadi
Application Type
Reactive

Convert Image to PDF from Forge not working.... gives an error: Index was outside the bounds of the array

UserImage.jpg
Saurabh Shivananda Prabhu Chimulkar

Hi Miguel,

Kindly check the List parameter that is being formed. As per the error throw it looks like you are trying to reference an index for the list that does not exist. 

2023-01-06 16-09-46
Miguel Nicolau

Hello Saurabh, thanks for the help.

I'm only using the "CreatePDF" action and i can't go inside the action to see what's happening.

2024-07-24 06-31-16
Ranu Jaiswal


Hi,

I am getting the same error while using it, was you able to resolve this?


UserImage.jpg
Parak Namdev

How can we convert image file into pdf file  please explain the details and code

2023-10-16 05-50-48
Shingo Lam

Hi All,

I passed the base64 list to function, and I got the same issue when using this forge component. 
I need to open the integration studio to check the code, there seems to be nothing wrong with the code. Then, I do the unit test directly with the component, and the real error raised is different from the "Index was outside the bounds of the array" error, it is something that my input is wrong format. 

Because I am using base64 with the full format on web, which is "data:image/jpeg;base64,...", it caused the error. I just remove it, then works like a charm

Hope this help

Thanks and best regards

Shingo Lam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.