Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
4 replies
Amos

Protecting PDF

I want to create a project where people can upload PDFs, but I only want users to be able to see certain pages of a PDF unless they meet certain requirements. I can't do this on the client since people would obviously be able to check their network tab and get the PDF's URL from there 😛 I've been checking other websites that do something similar and it seems they fetch each page of the PDF as HTML instead of the entire file... Any idea how I could do something similar or if there is another way of accomplishing this?
Was this page helpful?