Hello,
How I do "Flatten" a pdf?
Convert PDF to PDF with flatten.
Use
Magick.NET 7.0.0.0007
With
C# fw2
Ghostscript 9.16
Regards.
Flatten PDF
Re: Flatten PDF
I found this
Now the question is, as I reduce the size / quality of the file, the result is as follows:
Original file: 4566KB
New file: 44950KB
Change the value of quality without result
Regards
Code: Select all
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new MagickGeometry(300);
using (MagickImageCollection images = new MagickImageCollection())
{
images.Read("Snakeware.pdf", settings);
MagickImage image = images.Flatten();
image.Write("SnakewareNew.pdf");
}
Original file: 4566KB
New file: 44950KB
Change the value of quality without result
Code: Select all
image.Quality = 15;
Re: Flatten PDF
Merge / join in layers. or how does it work in ImageMagick?
How I can reduce the size of PDF?
Thk
Regards
How I can reduce the size of PDF?
Thk
Regards
Re: Flatten PDF
Hi
For the problem of the size of the file, solve with
but... I think the "flatten" of the ImageMagick is different Ghostscript, how do I indicate to GhostScript from ImageMagick apply flatten? This for pdf file.
Thk
Regards
For the problem of the size of the file, solve with
Code: Select all
image.CompressionMethod = CompressionMethod.JPEG;
Thk
Regards
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Flatten PDF
I do not think GS does any flattening. IM does that. Though I could be wrong if you run GS standalone.
Flattening in IM will overlay every layer/page, etc. So if your PDF has no transparency, you will only see the top most (last) page.
Perhaps you mean something else by flatten? If so, please describe what you want to happen.
Flattening in IM will overlay every layer/page, etc. So if your PDF has no transparency, you will only see the top most (last) page.
Perhaps you mean something else by flatten? If so, please describe what you want to happen.