Unable to preview pdf file with 2 Mb with +100 pages

Hello guys,


I want to preview a pdf document in a new tab. Right it is working for small pdfs (200kb with only one page), but with more size and more pages it does not show anything.

I have this right now.


Did someone face this issue before?


Regards,


Pedro Santos

Hi Pedro,

I think you are having this problem: 

https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers#answer-417184

Did some testing and this code seems to work great even for large files:

https://stackoverflow.com/a/52091804

Just replace the response.data with your base64 data.


Hope this helps.

Rúben

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