Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions email2pdf2/email2pdf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@

IMAGE_LOAD_BLACKLIST = frozenset(['emltrk.com', 'trk.email', 'shim.gif'])

WKHTMLTOPDF_ERRORS_IGNORE = frozenset([r'QFont::setPixelSize: Pixel size <= 0 \(0\)',
r'Invalid SOS parameters for sequential JPEG',
r'libpng warning: Out of place sRGB chunk',
r'Exit with code 1 due to network error: ContentNotFoundError',
r'Exit with code 1 due to network error: ProtocolUnknownError',
r'Exit with code 1 due to network error: UnknownContentError',
r'libpng warning: iCCP: known incorrect sRGB profile'])
WKHTMLTOPDF_ERRORS_IGNORE = frozenset(
[
r"QFont::setPixelSize: Pixel size <= 0 \(0\)",
r"Invalid SOS parameters for sequential JPEG",
r"libpng warning: Out of place sRGB chunk",
r"Exit with code 1 due to network error: ContentNotFoundError",
r"Exit with code 1 due to network error: ProtocolUnknownError",
r"Exit with code 1 due to network error: UnknownContentError",
r"libpng warning: iCCP: known incorrect sRGB profile",
r"libpng warning: iCCP: cHRM chunk does not match sRGB",
]
)

WKHTMLTOPDF_EXTERNAL_COMMAND = 'wkhtmltopdf'

Expand Down
Loading