nickrussler / email-to-pdf-converter Goto Github PK
View Code? Open in Web Editor NEWConverts email files (eml, msg) to pdf
Home Page: https://www.whitebyte.info/publications/eml-to-pdf-converter
License: Apache License 2.0
Converts email files (eml, msg) to pdf
Home Page: https://www.whitebyte.info/publications/eml-to-pdf-converter
License: Apache License 2.0
Hi, I tried to convert some emls using EmailConverterConsole.exe but sometimes the accented characters (ěščř...) got corrupted i nthe result pdf. Is there any way to specify the encoding? Thanks. Michal K.
The following msg contains a msg with a msg and Its picture is not rendered but there are also render warnings.
MailWithMailAttachmentInsideMailAttachmentAndPicture.msg.txt
Start converting C:\Users\micha\Desktop\TestMsgToPdfFiles\MailWithMailAttachmentInsideMailAttachmentAndPicture.msg to C:\Users\micha\Desktop\TestMsgToPdfFiles\MailWithMailAttachmentInsideMailAttachmentAndPicture.pdf
[Thread-7] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - Skipping nested Outlook message as file attachment, writing Outlook messages back as data is not supported!
[Thread-7] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - To access the nested Outlook message as parsed Java object, refer to .getAttachments() instead.
[Thread-7] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - Skipping nested Outlook message as file attachment, writing Outlook messages back as data is not supported!
[Thread-7] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - To access the nested Outlook message as parsed Java object, refer to .getAttachments() instead.
Mime Structure of C:\Users\micha\Desktop\TestMsgToPdfFiles\MailWithMailAttachmentInsideMailAttachmentAndPicture.msg:
-----------Mime Message-----------
> multipart/mixed
> | multipart/related
> | | multipart/alternative
> | | | text/plain
> | | | text/html
> | | image/png; inline
> | | image/jpeg; inline
> | | image/jpeg; inline
> | application/pdf; attachment
> | application/msword; attachment
> | application/octet-stream; attachment
----------------------------------
Extract the inline images
Start conversion to pdf
Conversion finished
I tried to use emailconverter-2.2.1-all.jar
on Linux with eml that embeds HTML that specifies UTF-8 charset everywhere and no other charsets. This produces partially garbled text in my case; however, using version 2.1.1 with the same document works fine for me.
I can share the eml but not in public.
I download email (in .eml format) from my Outlook and then I am trying to convert it to PDF.
I am getting these errors while converting to pdf. But only when the flag "hideHeader" set to false (means I do need header details as well in my pdf). When the flag set to true then no error messages are showing.
I am attaching a sample eml file which I used to convert to pdf. Note that pdf generated successfully but pdf does not contain any header info (like From , To , Subject , Date etc.) . But , at the same , I am getting above mentioned errors.
Below are the arguments passed in,
MimeMessageConverter.convertToPdf(emlPath, pdfPath, false, true, attachmentPath, extParams);
Test_file1593397582267.eml.pdf
Since I am not able to attach .eml file , I just renamed it to .pdf. But this can be renamed to .eml for any testing purpose.
Hi Nick,
really cool converter it is quite nice how it renders even nice things!
I am evaluating it right now and see what is not yet working and forked for potential fixes.
I created a test msg file with Outlook 2019 and there listed item:
remove the txt at the end.
test mail with picture.msg.txt
Left the mail in Outlook 2019 right as Pdf
as you see the listings are double
Currently trying to see if I can tweak to use the OS X version of wkhtmltopdf as everything else seems to be OS X compatible and this single dependency is preventing the program from running on Mac.
It would be great if attachments such as jpg could also be converted and then merged directly to the pdf main pdf, so only non convertable items are left over.
Feature option : To give an option to users to store the pdf files in a separate folder.
Currently its stored in the same folder and becomes hard to arrange for multiple files.
Would like to work on the same.
EMLToPDFConverter creates a temporary html file and then converts HTML to PDF.
For text/plain emails, all line breaks are replaced with "<br>
" and all whitespaces are replaced with "
"
If input text contains no suitable line breaks, this will result in some html where the total width of the html body extends A4 size.
PDF file is then cut off.
test-plaintext.pdf
test-plaintext.txt
(1) is it possible to convert an email with an attachment (for example jpg, doc)
into a pdf so that the email attachment is in the attachment (for example jpg, doc) of the pdf?
(2) Is it possible to start this process from Thunderbird?
it would be nice to add a command line option to customize the header (the text box showing from, to, subject, date, time).
In particular, I am looking for the CC field, BCC – but there is more one can imagine.
Suggestion:
cmd option:
-h "BCC,CC"
this would add the lines CC and BCC to the header text box.
Running under Linux with -a option, if the name of an attachment to an email contains a directory-divider character (/) it fails with an error message (but no error code) 'Could not save attachment to ...'
I guess it needs to sanitise filenames before attempting to save them.
Otherwise, very cool indeed - thanks for your work.
It would be great if there was an option to merge all converted emails to one PDF.
when converting .eml files, extracted attachments wont open. they say they are corrupted. i tested all earlier version. starting on version 2.4 attachments are currupted when extracted.
I am running an updated Archlinux installation. When I convert an email I see a grey background frame at the top of the generated PDF. It used to work.
I executed it with the -d flag and found the following message:
Warning: Blocked access to file /tmp/emailtopdf5168555425623546812.html
A research indicates that a command line parameter is needed in order to embed local html files for the latest version of wkhtmltopdf:
https://stackoverflow.com/questions/62315246/wkhtmltopdf-0-12-6-warning-blocked-access-to-file
Example files:
Test.zip
I'm trying to call EMLtoPDFConverter from PowerShell to integrate into an existing workflow. I've tried passing the EML's file path as per below but in both cases the App launches it's GUI but nothing happens.
Start-Process "C:\Program Files (x86)\EMLtoPDFConverter\EmailConverter.exe" "C:\Temp\Attachments\tempEmail.eml"
Start-Process "C:\Program Files (x86)\EMLtoPDFConverter\EmailConverter.exe"-ArgumentList "C:\Temp\Attachments\tempEmail.eml"
#Running "C:\Program Files (x86)\EMLtoPDFConverter\EmailConverter.exe" "C:\Temp\Attachments\tempEmail.eml" in CMD also causes the app's GUI to launch.
Can you please advise where I'm messing up in my syntax?
Many thanks :)
The error is as below,
Cannot run program "wkhtmltopdf": error=2, No such file or directory
In my research what I found is that the above error is Mac related because my java program cannot run the executable(wkhtmltopdf) from the path (/usr/local/bin) where this executable (wkhtmltopdf) installed on my Mac.
My Java program returns only below PATHs, So Java can run the executable only from any of these paths.
/usr/bin , /usr/sbin , /sbin
But My Mac OS does not permit me to do any operations on these PATH - /usr/bin , /usr/sbin , /sbin as part of security.
So I had to provide full path to the executable (like /usr/local/bin/wkhtmltopdf instead of just wkhtmltopdf) so that my Java program can run the executable without any errors.
And ,in MimeMessageConverter.java , I could see that there is no option to provide full path to the executable. (For example : /usr/local/bin/wkhtmltopdf instead of just wkhtmltopdf , which is currently hardcoded). So I strongly believe that this option (ie , to provide full path to the executable) should be available in MimeMessageConverter.java so that any user whose Mac OS will not permit to do any operations on these PATH - /usr/bin , /usr/sbin , /sbin can execute a java program to run the executable without any error. Otherwise (If any Mac OS permit us to do any operations on these PATH) we could have been copied the executable to any of these PATH so that any Java program can run that executable without any errors.
Hi Nick,
We have been using your script. A great tool :-) Today I got a very generic error message. Any idea what might be causing the issue? Thanks a lot!
P.S.: I can senforward you the emial if needed.
Michal K.
Start converting R:\RPA012\k_SavingEmailsTemp\Temp\EML_mail.eml to R:\RPA012\k_SavingEmailsTemp\Temp_PVK\EML_mail.pdf
Mime Structure of R:\RPA012\k_SavingEmailsTemp\Temp\EML_mail.eml:
-----------Mime Message-----------
multipart/mixed
| multipart/alternative
| | text/plain
| | text/html
| application/octet-stream; attachment
| application/octet-stream; attachment
Extract the inline images
Start conversion to pdf
The eml could not be converted. Error: java.lang.IllegalArgumentException: Null charset name
at java.nio.charset.Charset.lookup(Unknown Source)
at java.nio.charset.Charset.forName(Unknown Source)
at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:259)
at cli.Main.main(Main.java:128)
at gui.MainWindow.startConversion(MainWindow.java:384)
at gui.MainWindow.access$400(MainWindow.java:66)
at gui.MainWindow$8$1.run(MainWindow.java:304)
at java.lang.Thread.run(Unknown Source)
Hi, I have added wkhtmltopdf to Path variable successfully, but when I run converter as library, it shows Java.io.IOException: Cannot run program "wkhtmltopdf", The system cannot find the file specified. Please guide, thank you
Hi, I attempted to download and run the setup.exe file from the following link: https://github.com/nickrussler/email-to-pdf-converter/releases/tag/2.6.0. However, I encountered an error prompt shown on the attached picture below. Could someone kindly advise on what the issue might be? Thank you.
First, thank you for the great app! In the .msg files, instead of printing the email sending date to the pdf, it prints the file modification date. Since I have e-mail that these dates aren't the same, that's a problem.
Thanks for the fantastic tool!
It would be great if you could add the possibility of Embedding the attachments in the pdf of the eml converted so there is only one pdf per eml in the end.
I'd like to see an option to extract attachments only, without making the PDF. I like the way this program puts the attachments in a sidecar folder with the same name as the eml file (with the word -attachments added).
It would be great if you could add support for outlook *.msg files:
Oulook msg file example
PDF output is A4 paper size, I would like to see an option to select Letter size. I see that wkhtmltopdf has a --page-size Letter to accomplish this, but I don't see anyway to select this from eml-to-pdf-converter.
Hello,
I really love your soft, very useful!
Do you thing it's possible to add the email date in the filename ?
Because, all files are dated of the conversion date and I can't use windows search on the date...
Thank you
Hello, thank you for the great app.
I have an issue with greek characters only with .msg files, .eml files look ok even with greek but on msg files text is not looking OK.
I have tried both Unicode and non-unicode msg files but the same result.
I believe the problem is when exporting to HTML, I have checked HTML and it doesn't look OK.
If I use another program to export the msg files to HTML it looks ok, so I believe something goes wrong when you export to HTML and the text is not encoded correctly.
I forgot to mention that the header part even if the subject is in greek it looks OK.
Thanks
Your program works nice but is difficult to run from command line/.bat file. (or i'm slow :) )
Windows 10
I have this little .bat file placed with .eml file. (Now working as expected)
chcp 1252
MD %1
"C:\Program Files (x86)\EMLtoPDFConverter\EMaiLConverterConsole.exe" -a -ad "E:\Share\Public\%1" -o "E:\Share\Public\%1\%1.pdf" -q "E:\Share\Public\%1.eml"
i want to put attachments and email in subfolder.
if i don't md first, your program creates a file not folder.
if i don't use full path nothing happens.
-ad the parm is folder ,
but the -o you have to use path+file (with .pdf) = --output-filepath (took me a while to notice the diff)
I would like to request a feature which also includes the names of all the attachments in the blocked header in the PDF after parsing.
Preferably between the Subject and To fields
Perhaps also with an extra optional button from the GUI to include attachment names or not.
Hi, I'm writing a web service to convert eml to pdf, how can i use it as a Java class?
FindBugs and JDepend are deprecated.
The build file needs to be updated.
when i try to convert an eml exported (or sent-forwarded from) Mail client I get a blank body inside the pdf , only the headers are visible
Hi and thanks for your great software :D
The readme lacks an explicit prerequisites section.
My PR will be done shortly so it may be clearer what I'm talking about.
I tried to execute this jar(eml-to-pdf-converter) from my Application Server(ColdFusion). But ColdFusion throwing an error saying that the resource header.html could not found.
In this eml-to-pdf-converter library I could see that Resources.getResource("header.html") in MimeMessageConverter.Java.
I found something in Stackoverflow (https://stackoverflow.com/questions/23985971/referencing-java-resource-files-from-coldfusion) which says to use getResourceAsStream. So , I was thinking that the java file (MimeMessageConverter.Java.) needs to be modified to use getResourceAsStream instead of getResource to fix this issue.
I get the below error on converting quite a few of my legacy emails. Unfortunately I cannot share the emails due to PII issues. Would it be possible to force the conversion despite errors like this?
Start converting Prisoner_numbers.msg to Prisoner_numbers.pdf
The email could not be converted. Error: java.lang.IllegalArgumentException: emailAddressList is required
at org.simplejavamail.internal.util.Preconditions.verifyNonnull(Preconditions.java:41)
at org.simplejavamail.internal.util.Preconditions.checkNonEmptyArgument(Preconditions.java:30)
at org.simplejavamail.internal.util.MiscUtil.extractEmailAddresses(MiscUtil.java:165)
at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.withRecipients(EmailPopulatingBuilderImpl.java:1422)
at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.to(EmailPopulatingBuilderImpl.java:835)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.copyReceiversFromOutlookMessage(OutlookEmailConverter.java:132)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:97)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:78)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:229)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:211)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:595)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:586)
at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:123)
at cli.Main.main(Main.java:123)
I tried the eml-to-pdf-converter with multiple German eml-Files. In some cases the conversion was successful and in some cases the german Umlaut are messed up.
Here you can find a good and a bad example. I added the generated pdf as well as the original eml-file: https://drive.google.com/open?id=0BwK5xWaaOr4nZm5RVmg4UzhtODg
I used the following command to convert the files:
java -jar emailconverter-2.0.1-all.jar --extract-attachments --extract-attachments-directory ./ $filename
Do you have any idea how this can be fixed this?
As Gentoo has dropped support for qtwebkit and wkhtmltopdf (see https://bugs.gentoo.org/684580 and https://bugs.gentoo.org/692532 ) i had to find a replacement. I decided to go the simple route and just write a small bash-script that does what i needed (no support for setting the page size or setting a proxy-server)
#!/bin/bash
google-chrome-stable --headless --disable-gpu --incognito --print-to-pdf="${@:(-1)}" "${@:(-2):1}"
On the left is an image of a PDF generated by the 4/29/21 version of the converter. On the right is an image of a PDF generated from the same EML, generated by the 8/22/16 version of the converter. The PDF shown on the right is a very accurate reproduction of the original EML, but the PDF shown on the left is not - text is way too small.
I tried out different versions to find out which version introduced the problem. The PDF created by 2.4.0 is correct; the PDF created by 2.5.0 is not. So the problem was introduced with 2.5.0, with the update to wkhtmltopdf.
I'm trying to convert some eml-files that origin from a iPhone. Looking at the files they have "X-mailer iPhone"
None of the converted files have the body, only the header.
Does anyone have a workaround??
The email could not be converted.
Error: java.lang.NullPointerException
at org.simplejavamail.outlookmessageparser.model.OutlookMessage.filterRecipients(OutlookMessage.java:684)
at org.simplejavamail.outlookmessageparser.model.OutlookMessage.getCcRecipients(OutlookMessage.java:669)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.copyReceiversFromOutlookMessage(OutlookEmailConverter.java:134)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:97)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:78)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:229)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:211)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:595)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:586)
at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:123)
at cli.Main.main(Main.java:123)
Here is the file:
https://drive.google.com/file/d/1H5hfhe4wY731zMP8Max-KYxUWcegsE3o/view?usp=sharing
I'm currently in the progress of converting 5005 *.eml files but as it turns out, the tool is incredibly slow and gets stuck very often.
This goes for both, the GUI and the *.jar file (cmd).
As you can see in the image, it only converted 519 files (started at 7am in the morning). The current processed file is in progress for about an hour.
Any idea why it takes that long to process files?
Contents of eml-file:
...
Content-Type: multipart/alternative;
boundary="Apple-Mail=_50C3F72A ..."
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
...
X-Mailer: Apple Mail (2.3608.120.23.2.1)
...
--Apple-Mail=_2C37B240 ...
Content-Disposition: inline;
filename="111111 XXXXXXX-XXXXXX.pdf"
Content-Type: application/pdf;
x-unix-mode=0644;
name="111111 XXXXXXX-XXXXXX.pdf"
Content-Transfer-Encoding: base64
JVBERi0xLjMK...
...SVFT0YK
--Apple-Mail=_2C37B240-...
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
...
The pdf is generated successfully, but the attachment is missing. From Thunderbird I can normally save the attachment.
Started the coverter in debug-mode:
Mime Structure of blabla
-----------Mime Message-----------
> multipart/alternative
> | text/plain
> | multipart/mixed
> | | text/html
> | | application/pdf; inline
> | | text/html
----------------------------------
...
[MimeMessageConverter.convertToPdf()#319]: Start extracting attachments
Extract attachments to blablabla
[MimeMessageConverter.convertToPdf()#333]: Found 0 attachments
Conversion finished
Edit 28.09.2020, 18:01:
If I change the Content-Disposition from "inline" to "attachment", the attachment is extracted successfully. This observation may be helpful for you.
Hi Nick,
the attached msg has a msg inside a msg and another msg and one of them seem to have no adress...
MailInMailInMail With Picture.msg.txt
Start converting C:\Users\micha\Desktop\TestMsgToPdfFiles\MailInMailInMail With Picture.msg to C:\Users\micha\Desktop\TestMsgToPdfFiles\MailInMailInMail With Picture.pdf
[Thread-3] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - Skipping nested Outlook message as file attachment, writing Outlook messages back as data is not supported!
[Thread-3] WARN org.simplejavamail.outlookmessageparser.model.OutlookMessage - To access the nested Outlook message as parsed Java object, refer to .getAttachments() instead.
The email could not be converted. Error: java.lang.IllegalArgumentException: emailAddressList is required
at org.simplejavamail.internal.util.Preconditions.verifyNonnull(Preconditions.java:41)
at org.simplejavamail.internal.util.Preconditions.checkNonEmptyArgument(Preconditions.java:30)
at org.simplejavamail.internal.util.MiscUtil.extractEmailAddresses(MiscUtil.java:165)
at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.withRecipients(EmailPopulatingBuilderImpl.java:1422)
at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.to(EmailPopulatingBuilderImpl.java:835)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.copyReceiversFromOutlookMessage(OutlookEmailConverter.java:132)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:97)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:114)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:78)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:229)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:211)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:595)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:586)
at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:123)
at cli.Main.main(Main.java:123)
at gui.MainWindow.startConversion(MainWindow.java:361)
at gui.MainWindow.access$400(MainWindow.java:43)
at gui.MainWindow$8$1.run(MainWindow.java:281)
at java.lang.Thread.run(Unknown Source)
I had multiple eml files, some having attachments, some not, using the GUI, and ticking the Extract Attachments checkbox resulted in all eml files having a folder created (even though the folders are empty in case of emails with no attachments)
Would like to know if we can check before creating the directory because creation of these empty directories serve no purpose.
In case it is an issue, would work on it.
I am getting the following issue when invoking the converter from the CLI by going:
java -jar emailconverter.jar -o "C:\Users\Artur\Documents\Email2PDF" "C:\Users\Artur\Documents\EmailTest\EmailTest.msg"
Start converting C:\Users\Artur\Documents\EmailTest\EmailTest.msg to C:\Users\Artur\Documents\Email2PDF
[main] INFO org.simplejavamail.outlookmessageparser.OutlookMessageParser - Could not parse directory entry __substg1.0_8004101F-00000000
java.lang.NumberFormatException: For input string: "101f-00000000"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.simplejavamail.outlookmessageparser.OutlookMessageParser.analyzeDocumentEntry(OutlookMessageParser.java:581)
at org.simplejavamail.outlookmessageparser.OutlookMessageParser.getMessagePropertyFromDocumentEntry(OutlookMessageParser.java:399)
at org.simplejavamail.outlookmessageparser.OutlookMessageParser.checkDirectoryDocumentEntry(OutlookMessageParser.java:262)
at org.simplejavamail.outlookmessageparser.OutlookMessageParser.checkDirectoryEntry(OutlookMessageParser.java:208)
at org.simplejavamail.outlookmessageparser.OutlookMessageParser.parseMsg(OutlookMessageParser.java:133)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.parseOutlookMsg(OutlookEmailConverter.java:119)
at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:62)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:226)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:209)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:592)
at org.simplejavamail.converter.EmailConverter.outlookMsgToEML(EmailConverter.java:583)
at mimeparser.MimeMessageConverter.convertToPdf(MimeMessageConverter.java:123)
at cli.Main.main(Main.java:123)
Mime Structure of C:\Users\Artur\Documents\EmailTest\EmailTest.msg:
-----------Mime Message-----------
multipart/related
| multipart/alternative
| | text/plain
| | text/html
| image/gif; inline
| image/gif; inline
Extract the inline images
Start conversion to pdf
Loading pages (1/6)
Error: Failed to load cid:[email protected], with network status code 301 and http status code 0 - Protocol "cid" is unknown
Error: Failed to load cid:[email protected], with network status code 301 and http status code 0 - Protocol "cid" is unknown
QPainter::begin(): Returned false============================] 100%
Error: Unable to write to destination
Exit with code 1 due to network error: ProtocolUnknownError
Conversion finished
I have the wkhtmltopdf.exe PATH added to system environment variables, it also is present in the installation directory of the EmailConverter, next to the JAR that is invoked.
I shall add that with the GUI in windows - there are no issues with the same file and conversion is successful in a blink of an eye.
Could you please advise ?
The converter first converts the EML to HTML and then converts the HTML to PDF; I'd like to have the option to keep the HTML (with or without also creating the PDF).
This tool really works nicely, but it relies on wkhtmltopdf having to interprete javascript which is obviously dangerous. I'm wondering whether it would be possible to load, manipulate and save the HTML in java to include the header fields table, which is currently done by the small script attached to the end of the HTML file. Or is this impossible because of the height?
Hi Nick,
is it possible to use your converter directly from another JAVA project (some API calls?)
Best regards,
Carsten
Hi,
Would it be possible to configure the resultant PDF to contain the dates/times in a different timezone? Currently when they are converted they are displayed in UTC.
I get a fail at step 2:
gradlew shadowJar
https://scans.gradle.com/s/sc2a7tvd6dz7m
gradlew dist
https://gradle.com/s/dl2g3s572yz2s
Operating System: Linux Mint 19
Kernel: Linux 4.15.0-20-generic
Architecture: x86-64
wkhtmltopdf 0.12.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.