pipwerks / PDFObject

A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents.
http://pdfobject.com/
Other
2.39k stars 986 forks source link

If the ROUND function appears multiple times, only one of them is valid. The others display #NAME? #271

Closed GoroMajima closed 2 years ago

GoroMajima commented 2 years ago

I have a file with pdfObject.min.js online browsing problems, after repeated testing, it seems that it cannot parse multiple ROUND functions, I tried to delete other lines of information only one line, there will be no problems when parsing.

GoroMajima commented 2 years ago

test2.xlsx

GoroMajima commented 2 years ago

image Is that a problem? After the above file is parsed.

pipwerks commented 2 years ago

Hi @GoroMajima

I don't understand the issue. PDFObject embeds PDFs into HTML. PDFObject does not insert values into PDFs.

If you can show us your embed code, it may help us understand the problem.

GoroMajima commented 2 years ago

var options = { page: "1", fallbackLink: "

浏览器不支持文件的浏览, 直接下载到本地

", pdfOpenParams: { view: 'FitV', pagemode: 'thumbs', search: 'lorem ipsum', } }; PDFObject.embed('文件url',document.body,options);

GoroMajima commented 2 years ago

The file download address can be used to upload the file address https://github.com/pipwerks/PDFObject/files/9109287/test2.xlsx in this problem.

GoroMajima commented 2 years ago

The file here is XLSX, I think I know the reason, there should be a problem when converting the file to PDF, your plug-in just shows the PDF file, thank you very much for your feedback.