Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript pdf preview

You have an input, check the onChange and then make a

 src= URL.createObjectURL(event.target.files[0])
to create URL: and then use it to preview with embed

<embed  
       src=src
       width="250"
       height="200">
 
PREVIOUS NEXT
Tagged: #javascript #pdf #preview
ADD COMMENT
Topic
Name
7+8 =