JpegDevice.Process(document.Pages[1], "8899.jpg"); get a empty jpg file

 Bitmap originalImage = new Bitmap("D:/test.jpg");
            MemoryStream stream = new MemoryStream();
            originalImage.Save(stream, ImageFormat.Bmp);

            Aspose.Pdf.Image myimage = new Aspose.Pdf.Image();
            myimage.ImageStream = stream;

            var document = new Document();
            document.PageInfo.Width = originalImage.Width;
            document.PageInfo.Height = originalImage.Height;

            Page page = document.Pages.Add();
            page.Paragraphs.Add(myimage);

            //document.Save("8899.pdf"); //可以成功输出pdf文件
            Resolution resolution = new Resolution(300);
            var renderer = new Aspose.Pdf.Devices.JpegDevice(resolution, 100);
            renderer.Process(document.Pages[1], "8899.jpg");

run these codes,it will generate a empty jpg file(8899),
if run //document.Save("8899.pdf") first,then generate jpg file is ok!!!

what’s wrong?thanks!!!

@jet_zuo
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-56431

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@jet_zuo
Thank you for writing to us. This issue was reproduced in my environment. I believe this is a flaw in the library (apparently some necessary actions are performed only when saving the document) and created a corresponding task for the development team.