简体   繁体   中英

Editing uploaded PDF file using PHP and Javascript

I have a js script which enables us to annotate a pdf page. How do I save that file after editing (adding annotations to) it?

Correct me if I am wrong: When we upload a file from client system,

  • the file is stored in a temp location
  • we get the path of the temp location and use it to render the PDF

After we edit (annotate), these changes don't resonate in the PDF file stored in temp location? How do I apply these changes to the file stored in temp location in server?

You should not add changes to the temporary PHP file, because it is deleted after your script ended. Hence you must save the temp file and your annotation to another location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM