18
Views
2
Comments
Solved
[PDF InApp Preview] Error Invalid parameter object: need either .data, .range or .url
Question
pdf-inapp-preview
Mobile icon
Forge asset by Veronika Veronika
Application Type
Mobile

Hi, 

After lot of searching i found you asset that fits the needs for my application. which is showing a PDF inside the application based on the binary. After trying i found that your asset is able to provide this experience which is perfect.

However whenever i load the PDF there is a exception raised: "Invalid parameter object: need either .data, .range or .url ". Is this known? and is there a way to prevent this error from occouring?

Looking forward to some suggestions

Cheers

UserImage.jpg
Veronika Veronika
Solution

Hi,

Could you share the sample OML or more details regarding this error?

That error usually indicates that the object passed to the Javascript is not the valid value.


Also here attached the sample demo OML, hope it helps

PDFInAppDemo.oml
2019-07-08 09-08-43
Jørgen *

how silly of me... i initialized the webblock before the base64 of the pdf was retrieved. Thanks for your sample!

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