Read, change and save doc in Javascript (Angular)
Above is the code for reading content of PDF. When I upload a PDF, the contests of PDF is displaying in unreadable format.
Read, change and save doc in Javascript (Angular)
Above is the code for reading content of PDF. When I upload a PDF, the contests of PDF is displaying in unreadable format.
Whenever you do a read as text, it applies a certain encoding (ASCII, Unicode etc) to the underlying binary 0/1 characters to do the reading. This is what causing the special characters. Hence you need to upload/download files as stream (not sure of AngularJS reference of how to do it). Please check this AngularJS: how to implement a simple file upload with multipart form?