Thank you for your reply.
This is very useful.
Is the below code works If I want to set use-cropbox true in MagicReadSettings?
This is very useful.
Is the below code works If I want to set use-cropbox true in MagicReadSettings?
MagickReadSettings settings = new MagickReadSettings()
{
Density = new MagickGeometry(300, 300)
};
newSettings.SetDefine(MagickFormat.Pdf, "use-cropbox", "true");
newSettings.SetDefine(MagickFormat.Pdf, "use-trimbox", "false");
Will above code behave same as below using (MagickImage image = new MagickImage())
{
image.SetDefine(MagickFormat.Pdf, "use-cropbox", true);
image.SetDefine(MagickFormat.Pdf, "use-trimbox", false);
image.Read("yourfile.pdf");
}