Comments (9)
I could not reproduce the issue (see attachment). Could you provide me with some details on your OS, Java version and the wkhtmltopdf version?
from email-to-pdf-converter.
I am using Fedora 26
Kernel: Linux localhost-uhlme 4.12.8-300.fc26.x86_64 #1 SMP Thu Aug 17 15:30:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
wkhtmltopdf: wkhtmltopdf 0.12.3
Which version are you using?
from email-to-pdf-converter.
Which version are you using?
from email-to-pdf-converter.
I produced the pdf on a machine running Windows 10, using wkhtmltopdf 0.12.4 (with patched qt).
from email-to-pdf-converter.
@patrickuhlmann Could you resolve your problem? And if, could you please share how?
from email-to-pdf-converter.
I forked the code and made a quick fix here: https://github.com/patrickuhlmann/eml-to-pdf-converter/commit/94597c23fd4fbfa02e11874ed474caff11e0b107
Basically the problem was the following: The encoding of the mail was iso-8859-1. The class ContentTypeCleaner needed to decode it as QuotedPrintable. However the method doing this was "forcing" UTF-8. I did not fix the detection but added a new parameter charset. That parameter allows me to properly convert my mails.
from email-to-pdf-converter.
Glad you could resolve your issue!
Both eml files you provided specify an UTF-8 encoding. Could you provide me with an exemplary iso-8859-1 encoded eml that caused the problem?
from email-to-pdf-converter.
https://drive.google.com/open?id=17zb586dYvNcrz415k5O-fPQkf4GOBrjx
You find in the archive an eml as well as the pdf file (- bad) that results when I convert it with the original version. I did also attach the pdf file (- correct) that results when I convert it with my patched version (passing the correct encoding).
from email-to-pdf-converter.
Can't reproduce
from email-to-pdf-converter.
Related Issues (20)
- Nested Msg. emailAddressList is required
- MsgInsideMsgInsideMsg causes picture not to be rendered?
- Feature Request: option to customize header
- Problem with greek characters HOT 1
- wkhtmltopdf no longer available on some linux systems HOT 1
- Crash on emailAddressList is required HOT 1
- font size problem starting with 2.5.0 HOT 1
- Merge header without javascript
- Creation of empty attachment folders HOT 3
- Store pdf files in a new folder HOT 1
- Fails to build - A problem occurred starting process 'command 'launch4jc'' HOT 1
- Fail if attachment name contains slash
- feature request: extract attachments without making pdf HOT 1
- feature request: option to save HTML HOT 1
- please add header attachments.name in the PDF file HOT 2
- explicites prerequisites
- eml from apple HOT 2
- issue running the setup.exe file
- NullPointer Exception on .msg file
- konverting Email with Attachment in Pdf with Attachment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-to-pdf-converter.