Convert From JPG to PDF - Geometry and Resolution are changed
Posted: 2017-02-14T19:43:23-07:00
I used Magick.Net to convert a JPG file to a PDF file.
But the Geometry and Resolution of the result file are changed by converting.
How can I keep the image quality?
Magick.Net:Magick.NET-7.0.4.700-Q16-x64
source:
using (MagickImageCollection images = new MagickImageCollection("test.jpg"))
{
// Save frame as pdf
images.Write("test.pdf"));
}
JPG file "test.jpg":
Geometry: 1664x2256+0+0
Resolution: 200x200
PDF file "test.pdf":
Geometry: 599x812+0+0
Resolution: 72x72
But the Geometry and Resolution of the result file are changed by converting.
How can I keep the image quality?
Magick.Net:Magick.NET-7.0.4.700-Q16-x64
source:
using (MagickImageCollection images = new MagickImageCollection("test.jpg"))
{
// Save frame as pdf
images.Write("test.pdf"));
}
JPG file "test.jpg":
Geometry: 1664x2256+0+0
Resolution: 200x200
PDF file "test.pdf":
Geometry: 599x812+0+0
Resolution: 72x72