Skip to content
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