iPad and pdfs

New install of Joplin, using V1.0.170 on Mac 10.14.6 and V10.0.37 on iPad 13.1.3.

Just exported/imported large set of notes from Evernote. All looks good on the Mac, but I have a problem on the iPad, probably because I don’t know what to do! I allowed everything to sync on to the iPad, including syncing all resources. It took a long time, but now everything is there.

All the pdf documents (and there are many) show up as links. These links open on the Mac with Preview, which is fine. However I’ve not yet found out how to open them on the iPad. Clicking them does nothing. A long press opens a menu with the options to Open, Copy or Share. Selecting Open again does nothing.

I assume I need to somewhere set up an option as to how I want to open these links. How do I do that? I cant find anything in the configuration.

If I look at the edit view, the links on the iPad look something like this:

<a href="#" type="application/pdf" hash="xxxxxxxxxx" alt="WP15-pdf.pdf" onclick="ipcProxySentToHost('joplin://xxxxxxxxxx'); return false;">WP15-pdf.pdf</a>

Thanks for any assistance.

Replying to my own post. I've discovered that if you import the Evernote ENEX file as Markdown, then the links work. However, if you import as HTML (which I did) then they don't. :frowning:

This seems like a bug. I wanted to import as HTML as many of my notes are clipped web pages, and they render better in HTML. Seems if I want Joplin to work, I'll have to delete everything and then re-import as Markdown. Is this expected behaviour or did I do something incorrectly?

If they work on Mac but not on iPad, it’s probably not related to the way it’s imported. Or can you provide a sample ENEX file that shows the issue?

Thank you for the response. A small sample ENEX that shows the issue can be downloaded here.

http://seafile.home.lignumaqua.net/f/6bfa24466cf64e289587/?dl=1

If I import this as Markdown then the link looks like this and works on both the Mac and the iPad:

[US20130010492.pdf](:/1938ab490e725b9bd276a45b482994f0)

However, if I import as HTML then the link looks like this, and only works on the Mac, not on the iPad.

<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><a href="#" type="application/pdf" hash="1938ab490e725b9bd276a45b482994f0" alt="US20130010492.pdf" onclick="ipcProxySendToHost('joplin://1938ab490e725b9bd276a45b482994f0'); return false;">US20130010492.pdf</a></en-note>

The enex file is gone, could you upload it again please? Or maybe just attach if on the forum directly?

Sorry, I had moved the file. I cannot see any way to attach an enex file to a post here, just images and text files are authorized. Here’s a direct link:

http://mikewoodconsulting.com/Test.enex

That will be fixed in the next release, however you’ll need to re-import your notes as previously the generated markup would not work on mobile.

@devonzuegel, there was indeed an issue with the way resources were imported as HTML. The generated code was making use of ipcProxySendToHost, but this is an internal method that’s only available on desktop (not mobile) and it’s actually not needed to use it directly. The renderer looks for resource links and automatically adds the required JavaScript to get things working.

I’ve fixed the issue in this commit. If you have already imported your Evernote notes as HTML, you might want to do it again (once the new version is released) so as to get working attachments in mobile.

1 Like

Thank you, much appreciated!

1 Like