-
Hey all, Im trying to figure out how to convert an heif file to a pdf. I have been able to have it create a pdf, and also put each image inside the heif file into a new page of the pdf. The thing I havent been able to figure out now is the PDF is 16MB in size and also the images in the PDF look like they are missing some color layers, so I may have an RGB/CMYK etc not working correctly. Is there a way to make the PDF smaller too? I was looping the inner images to see if i could set quality or maybe other settings to help with the color issue. Here is my watered down code. You can dowload the image im using here
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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;
} |
Beta Was this translation helpful? Give feedback.
You can make the PDF smaller by changing the compression method. You will need to decide yourself which one works the best for you:
And to fix the colors you will need to change the colorspace to sRGB: