400 page pdf to png #1673
Unanswered
jaka1-newbie
asked this question in
Help
Replies: 2 comments 1 reply
-
You are not doing something wrong but you have other options. Instead of loading all the pages at once you could do something like this: var fileName = "200.unresianable.pdf";
var pdfInfo = PdfInfo.Create(fileName);
for (var i = 0; i < pdfInfo.PageCount; i++)
{
var readSettings = new MagickReadSettings
{
Density = new Density(300, 300),
FrameIndex = i,
};
using (var image = new MagickImage(fileName, readSettings))
{
image.Write(${i + 1}.png");
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have code
But this code generate many temp files and use huge amount of memory. May be i doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions