Giter Club home page Giter Club logo

Comments (9)

nickrussler avatar nickrussler commented on May 30, 2024

I could not reproduce the issue (see attachment). Could you provide me with some details on your OS, Java version and the wkhtmltopdf version?

Bad.pdf

from email-to-pdf-converter.

patrickuhlmann avatar patrickuhlmann commented on May 30, 2024

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.

patrickuhlmann avatar patrickuhlmann commented on May 30, 2024

Which version are you using?

from email-to-pdf-converter.

nickrussler avatar nickrussler commented on May 30, 2024

I produced the pdf on a machine running Windows 10, using wkhtmltopdf 0.12.4 (with patched qt).

from email-to-pdf-converter.

nickrussler avatar nickrussler commented on May 30, 2024

@patrickuhlmann Could you resolve your problem? And if, could you please share how?

from email-to-pdf-converter.

patrickuhlmann avatar patrickuhlmann commented on May 30, 2024

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.

nickrussler avatar nickrussler commented on May 30, 2024

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.

patrickuhlmann avatar patrickuhlmann commented on May 30, 2024

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.

nickrussler avatar nickrussler commented on May 30, 2024

Can't reproduce

from email-to-pdf-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.