PDF GENERATOR API npm demo

hi guys i have a trouble with this, i followed the guide in every step and i had a trouble with the selectors on page code, don’t know why, but selector repeats twice so i notice how selectors were properly written in an image a bit more ahead and solved that problem, but then whenever i click the donwload link, html elemente get filled with “sorry, we couldn’t find that adress”. and i can’t get the pdf

and the weirdest thing is that i checked the other codes to see if there were other issues with selectors and then i notice the lines pn.id.id and pn.download.download so i removed one of each word and try it but now the result is that donwload link shows for a brief moment before html element get filled with “sorry, we couldn’t find that adress” can anyone help me solve this problem? i need to deliver this by monday

Hello David
the code is not properly rendering in this forum

You can check my site
and get the correct code from there

and also check the comment section for more info
to use URL instead of base64
or integrating with sendgrid…

https://www.salman2301.com/forum/wix-code-advance/create-pdf-using-wix-code-and-pdf-generator-api

Let me know if this helps!

@salman-hammed thanks for short reply but when i followed this links it says my membership request has been send and that i must wait the owner to grant me access, how long can that take?

@constrictor_x7
Approved!
I have also change the code
Just use a Normal text and it fix the weird ID bug

I tried to use the code but in console this error “Download in sandbox without user activation is deprecated and will be removed in M74. You may consider adding ‘allow-downloads-without-user-activation’ to the sandbox attribute list. See Chrome Platform Status for more details.”…

Please help !!!