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?


Pedro Santos

Hi Pedro,

I think you are having this problem: 


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


Just replace the response.data with your base64 data.

Hope this helps.


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