question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pdf import not working

See original GitHub issue

Describe the bug When trying to import a pdf file into a pad, the following error message is displayed:

Import failed: We were not able to import this file. Please use a different document format or copy paste manually

import of other formats works. Export to pdf also works.

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘import/export’
  2. Click on ‘choose file’
  3. Select the file to import
  4. Click on ‘import now’
  5. See error

Expected behavior I would expect the contents of the pdf file to be imported into the pad.

Desktop (please complete the following information):

  • OS: Client runs on MacOS 11.1, Etherpad 1.8.6 is deployed on Ubuntu 18.04.5 LTS
  • Browser: Brave
  • Version: 1.17.75 Chromium: 87.0.4280.88 (Official Build) (x86_64)

Additional context list of installed plugins: - ep_hash_auth - bcrypt - ep_comments_page - ep_headings2 - ep_align - ep_font_color - ep_table_of_contents - ep_font_family - ep_font_size - ep_image_upload - ep_embedded_hyperlinks2 - ep_set_title_on_pad - ep_print - ep_mammoth - argon2 - ep_draw

using LibreOffice (1:6.0.7) for conversion, also using Tidy (1:5.2.0-2)

The error message that is displayed in etherpad.log is:

[2020-12-18 13:45:20.019] [INFO] console - Exporting pad "dsfugauegfuoageh" in pdf format
[2020-12-18 13:45:20.020] [INFO] console - Found  undefined  for  dsfugauegfuoageh
[2020-12-18 13:45:35.888] [WARN] console - Converting Error: { [Error: ENOENT: no such file or directory, rename '/tmp/upload_f69452d349b913b2ea6766d70e14c6de.html' -> '/tmp/etherpad_import_635019763.html']
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: '/tmp/upload_f69452d349b913b2ea6766d70e14c6de.html',
  dest: '/tmp/etherpad_import_635019763.html' }
Error: ENOENT: no such file or directory, rename '/tmp/upload_f69452d349b913b2ea6766d70e14c6de.html' -> '/tmp/etherpad_import_635019763.html'
[2020-12-18 13:45:39.945] [INFO] access - [LEAVE] Pad "dsfugauegfuoageh": Author "a.wjkq3dh3PRzg9Ng9" on client YAh9_7m1mjNcFEawAAAD with IP "ANONYMOUS" left the pad

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
echristiaanscommented, Dec 22, 2020

ok this will take me a while, will try to get the results back as soon as I can. Thanks for your support so far!

1reaction
echristiaanscommented, Dec 22, 2020
node --version
v10.23.0

had enabled Tidy to try different options, also tried in combination with Abiword - want to make sure I have tried whatever I can first before submitting an issue. Will disable it again to keep things clean

Read more comments on GitHub >

github_iconTop Results From Across the Web

PDFIMPORT will not import image content into an AutoCAD ...
Solution: · Invoke the PDFIMPORT command. · Select the Frame of the PDF. · Type S (for Settings) or select Settings from the...
Read more >
HELP! - PDF IMPORT NOT WORKING - CAD Forum
I can no longer get the PDFIMPORT command to import anything other than texts and dim strings. The main body of the details...
Read more >
PDFIMPORT Not Working As Planned - AutoCAD Forums
I have a PDF file which I want to import into AutoCAD. Trouble is some lines in portions of the page come in...
Read more >
PDF import not working while importing a Adobe signed pdf
OpenRead(localPdfFile));I am trying to load a Adobe signed PDF document ... PDF import not working while importing a Adobe signed pdf.
Read more >
pdf import doesn't work any more - MuseScore
I am uploading a sample file whose import did not work. The result of the upload is always"unsuccessful". What could be the cause?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found