HTML Email Archiving in DEVONthink 4 – Missing Images, PDF Page Breaks and Continuous PDF Export

Hi everyone,

I use DEVONthink 4 extensively as my long-term document archive and would like to improve my workflow for archiving important emails, particularly HTML emails containing images and more complex layouts.

During some recent tests, I noticed two issues and would appreciate some guidance.

1. Missing images in imported EML files

When I import an email as an EML file into DEVONthink, the images are not displayed.

I have already enabled both of the following options in DEVONthink’s settings:

  • Load remote images in messages

  • Use alternative view

Unfortunately, the images are still missing.

The same email displays correctly in my email clients (Spark, Apple Mail), including all images.

Is this a known limitation of DEVONthink’s email rendering engine? Are there any additional settings or workarounds that could improve the display of HTML emails?

I also understand that remotely hosted images are not necessarily embedded in the original EML file. Is there a way to preserve these images locally when archiving an email in DEVONthink?

2. PDF export – Images split across pages

I also compared the PDF output of the same HTML email using DEVONthink and Spark.

Interestingly, Spark handles page breaks considerably better.

In my example, DEVONthink splits a large image across two pages, while Spark moves the entire image to the following page, preserving its layout.

I have attached both PDFs to illustrate the difference:

Is there a way to influence DEVONthink’s PDF rendering or page-break behaviour to prevent images from being split?

3. Feature suggestion: Continuous, non-paginated PDF export

Ideally, I would like to archive HTML emails as a single, continuous PDF page, without traditional A4 page breaks.

Some browser-based PDF export tools already support non-paginated output, automatically adjusting the PDF page height to the actual content.

I have experimented with creating a custom, very tall paper size in the macOS print dialog. While this works, it leaves considerable empty space at the bottom of shorter emails.

Would it be technically feasible for DEVONthink to offer a continuous PDF export option with automatically adjusted page height?

For long-term archiving, this would offer several advantages:

  • Preserve the original visual layout of HTML emails.

  • Prevent images and other elements from being split across pages.

  • Avoid unnecessary blank space.

  • Allow comfortable reading and searching within DEVONthink

An ideal solution would perhaps preserve both the original EML file and a visually accurate, searchable PDF representation.

I would be very interested to hear whether these capabilities already exist, whether there are recommended workarounds, or whether such improvements might be considered for future versions.

Many thanks for your help
Reinhard

  1. Have you enabled the Files >Emails > Load remote images in messages setting?
  2. No, you cannot modify the paginated PDF output. DEVONthink uses Apple’s frameworks while Spark is from a company that creates a PDF application with its own PDF framework.
  3. It may be possible but there no, there is no such function built-in now. You can create a single page PDF document but it’s based on the text alternative view, not the Quick Look view. The request is noted with no promises.

I get a similar issue when I drag an email directly from Outlook. The email gets imported along with all the images and attachment which all appear loosely in the same folder as the email. The email does not show the images.
Perhaps being on a intel MacPro with MacOS 15 maybe my issue.

That’s correct as the Import attachments option is enabled but this doesn’t affect the imported email on its own. Does dragging to the desktop first and then to DEVONthink make a difference?

No difference. Same happens. Images get added loosely in the folder but show up as missing links in the email when dragged from the desktop.

What does the img element in your HTML e-Mail point to, in DEVONthink as well as in the e-Mail dragged to the Desktop?

Looking at the email source in Outlook the img tag looks like this:

<img width=3D"109" = height=3D"47" style=3D"width:1.1354in;height:.4895in" id=3D"Picture_x0020_1=4" src=3D"cid:image002.png@01DD7288.039E2F00" alt=3D"tag">

Not sure how to directly look at the HTML of an email within Devonthink. If I convert the email to HTML within Devonthink the img looks like the following (partly truncated)

<img src="data:image/png;base64,TU0AKgAAAZiAKGBP8IQUAQeEQmFQuGAB+w+HRAqRMAw2EqiMP8rxuLR2Ovq..." />

Interesting that the image gets embedded as base64 and does not display in Devonthink.

Does it make a difference whether you’re using the alternate or default email view? See e.g. menu View > Document Display.

Thank you for your quick and helpful response.

Regarding point 1, yes, I have already enabled both “Load remote images in messages” and “Use alternative view”. Unfortunately, the images are still not displayed in DEVONthink, although they appear correctly in both Spark and Apple Mail.

Regarding point 3, your comment about creating a single-page PDF based on the text alternative view sounds particularly interesting.

Could you please explain how to create such a PDF in DEVONthink 4? I would be very interested in testing whether this preserves the email layout and images better than the standard paginated PDF export.

Many thanks!

Select an email in your database then choose Data > Convert > To PDF (One Page). But as I said, this generates the PDF data from the text alternative view.

The original img in the e-mail on Outlook refers to data that should be included at the end of the e-mail (cid=…) I have no idea how/if that is a standard outside Outlook, though.

When you convert that e-mail to HTML, you apparently get an img with a data URI. And DT not displaying that – do you refer to the HTML or to the original? In general, DT can display img elements with a data URI, that’s what formatted notes do.

Was referring to the the converted html within DEVONthink

It does make a difference. Yet another setting within Devonthink I was not aware. Thanks @cgrunenberg. Displaying as best alternative brings the image display back. Yahhh!!! Thanks.

Can you make Best Alternative the default display for all emails?

  • All fine found by switching off “Use alternative view” in the Emails settings makes this a default setting.

Always keep on saying, Devonthink support is one of the best around.

1 Like

I have identified a reproducible issue with loading remote images in DEVONthink 4.

When “Load remote images in messages” is enabled, switching between imported emails takes approximately six seconds. Despite this delay, the remote images are not displayed.

When I disable this option, switching between emails becomes instantaneous.

The same emails display correctly, including their remote images, in Apple Mail. I also recall that remote image loading worked correctly in DEVONthink 3.

Could this be a known issue or regression in DEVONthink 4, or is there an additional setting I should check?

I’m seeing no “six second lag” when switching between HTML-based emails.
What OS are you running?

The same emails display correctly, including their remote images, in Apple Mail.

I wouldn’t consider this as any indicator of what DEVONthink will do. Apple Mail is talking directly to the source; DEVONthink is not.