Skip to content

Converting heif to Pdf #626

Answered by dlemstra
abbottmw asked this question in General
May 6, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can make the PDF smaller by changing the compression method. You will need to decide yourself which one works the best for you:

foreach (var image in images)
{
    image.Settings.Compression = CompressionMethod.Zip;

    image.Settings.Compression = CompressionMethod.JPEG;

   image.Settings.Compression = CompressionMethod.JPEG2000;
}

And to fix the colors you will need to change the colorspace to sRGB:

foreach (var image in images)
{
    image.ColorSpace = ColorSpace.sRGB;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abbottmw
Comment options

Answer selected by abbottmw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants