PDF内容显示问题 [英] PDF content display issue

查看:83
本文介绍了PDF内容显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以Javascript读取,更改和保存文档(角形)

以上是用于读取PDF内容的代码.当我上传PDF时,PDF竞赛以不可读的格式显示.

Above is the code for reading content of PDF. When I upload a PDF, the contests of PDF is displaying in unreadable format.

推荐答案

每当您读取文本时,它都会对底层的二进制0/1字符应用某种编码(ASCII,Unicode等)以进行读取.这就是导致特殊字符的原因.因此,您需要以流的形式上载/下载文件(不确定AngularJS如何使用它的引用).请检查 AngularJS:如何实现简单用分段形式上传文件?

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?

这篇关于PDF内容显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆