我正在尝试从*.doc文档生成一个PDF文档。到目前为止,多亏了stackoverflow,我已经成功地生成了它,但也存在一些问题。
我下面的示例代码生成的pdf没有格式和图像,只生成文本。文档包含PDF中未包含的空格和图像。
代码如下:
in = new FileInputStream(sourceFile.getAbsolutePath());
out = new FileOutputStream(outputFile);
WordExtractor wd = new WordExtractor(in);
String t
我很难在浏览器中显示PDF,尽管我正在获取Base64代码,并且使用onlinetool(),我可以看到代码转换为存储在后台的正确的PDF文件。之后,我转换为blob对象,然后当我单击按钮时,它似乎不会在adobe阅读器中打开。
// when the button is pressed, it will call the API to get the PDF document
const headers = new Headers();
headers.append("content-type", "application/json");