Thanks for your answer.
But I found the problem and also the solution.
The problem was the writing section. You have to set the Format from the MagickImage to PNG before calling the Write(MemoryStream)-method.
Now I am able to read the PDF bytes and get the PNG bytes.
But I found the problem and also the solution.
The problem was the writing section. You have to set the Format from the MagickImage to PNG before calling the Write(MemoryStream)-method.
Now I am able to read the PDF bytes and get the PNG bytes.