Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Sep 08, 2022 6:03 pm

We are creating PDF using Spire.PDF and .NET Core 3.1.

As soon we draw an image from a PNG image, it crash Safari.

On iOS 15.5; no bug, but on the 15.6.1, it crashes.


Code: Select all
            scale = scale * 1f;

            var state = _page.Canvas.Save();

            var signatureImage = PdfImage.FromStream(imageStream);

            var width = signatureImage.Width * scale;
            var height = signatureImage.Height * scale;

            _page.Canvas.DrawImage(signatureImage, point.X, point.Y, width, height); // PDF does not crash if that line is commented

            _page.Canvas.Restore(state);

mikeprhat
 
Posts: 1
Joined: Thu Sep 08, 2022 5:57 pm

Fri Sep 09, 2022 7:21 am

Hello mikeprhat,

Thanks for your inquiry.
To facilitate our further investigation of your question, please provide us with your result document as well as your input document(if any). You can attach them here or send them via email(support@e-iceblue.com).

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Tue Sep 13, 2022 9:18 am

Hello mikeprhat,

Could you please let us know how is your issue going? Thanks in advance for your feedback and time.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Return to Spire.PDF

cron