ktaaaki / paper2html

Converts a single/double-column PDF formatted paper into a html page, which has the original view & the paragraph view extracted from the paper for translation from the browser.
GNU Affero General Public License v3.0
22 stars 4 forks source link

Unable to convert local pdf file on server on docker #19

Open ktaaaki opened 3 years ago

ktaaaki commented 3 years ago

Since access to the local file is not permitted from the Docker container, the downloaded pdf file viewed from the Chrome tab cannot be converted to html.

ktaaaki commented 3 years ago

If a bookmarklet downloads and sends the pdf, the server doesn't need to know the local path. The long bookmarklet may seem dangerous, but I think it requires the least effort of users.

ktaaaki commented 3 years ago

It turned out that sending a local file from a bookmarklet is difficult from a security point of view.

On the other hand, the method proposed by @eitsupi, which sends a local file to a file server, can solve this issue without sacrificing convenience.