Ghostscript.NET - managed wrapper around the Ghostscript library (32-bit & 64-bit)
GNU Affero General Public License v3.0
391
stars
152
forks
source link
Attached pdf file raises a System.AccessViolationException #109
Closed
FriscoFromFrance closed 1 year ago
Hi, The attached pdf file raises a System.AccessViolationException.
Please use the following function, with all the last version, to reproduce the problem. Regards.
Error at rasterizer.GetPage
FF
` protected virtual BitmapImage GenerateImage(int page, int xdpi, string pdf_filename) { byte[] bytes; lock (LockObj) { if (!File.Exists(pdf_filename)) return null; bytes = File.ReadAllBytes(pdf_filename); } string b64StrFile = Convert.ToBase64String(bytes);
pdferr.pdf