DynamicPDF Rasterizer System.AccessViolationException

DynamicPDF Rasterizer System.AccessViolationException

Forum member · Dec 1, 2013
Hi, I am evaluating your Rasterizer product to convert PDF files to images but I stumbled upon an issue upon testing one PDF. See below stack trace. Application: LSEOffer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at <Module>.a(Void*, Void*, Int32, Int32, Int32, Int32, Int32, Int32) at ceTe.DynamicPDF.Rasterizer.PdfRasterizerPage.a(System.Drawing.Imaging.PixelFormat, Int32, ceTe.DynamicPDF.Rasterizer.ImageSize, Boolean) at ceTe.DynamicPDF.Rasterizer.PdfRasterizerPage.Draw(System.String, ceTe.DynamicPDF.Rasterizer.ImageFormat, ceTe.DynamicPDF.Rasterizer.ImageSize) at LSEOffer.PDFExtractOperations.ConvertPDFToImageDynamicPDF(System.String, System.String, System.String, LSEOffer.RestServiceOperations, Int32) at LSEOffer.PDFExtractOperations.ProcessPDFs() at LSEOffer.MainForm.bgProcessPdf_DoWork(System.Object, System.ComponentModel.DoWorkEventArgs) at System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, System.Object[], System.Object, Int32, Boolean, System.Object[] ByRef) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink) at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall() at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() I am not encountering above error when debugging in local PC, only when the application is deployed. Please advise how to resolve above issue. Thanks. Gen

Re: DynamicPDF Rasterizer System.AccessViolationException

Support · Dec 2, 2013
Hello Gen, Are you getting this error for any specific PDF document or for all PDFs when deployed? Is it working in local machine in release mode? Can you please double check if there is any permissions issues in the deployed machine? If you are having trouble with any specific PDF then can you please send over the PDF document, code you are using and the system configuration to our [^a|mailto:support@cete.com|opennewwindow|support Team^] so that they can look into it further? Thanks, ceTe Software Support Team.

Re: DynamicPDF Rasterizer System.AccessViolationException

Forum member · Dec 3, 2013
Only for a specific PDF when deployed

Re: DynamicPDF Rasterizer System.AccessViolationException

Forum member · Dec 3, 2013
I am using below code: PdfRasterizer rasterizer = new PdfRasterizer(filepath); InputPdf pdf = new InputPdf(filepath); int pageCount = rasterizer.Pages.Count; JpegImageFormat jpegImageFormat = new JpegImageFormat(100); if (pdf.Pages.Count > 0) for (int i = 0; i < pageCount; i++) { rasterizer.Pages[i].Draw(path, jpegImageFormat, ImageSize.Dpi300); pdf.Pages[i].Dispose(); }

Re: DynamicPDF Rasterizer System.AccessViolationException

Support · Dec 4, 2013
Hello, Please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support^] team so that they can look into it further. 1.Exact version and build number of the DynamicPDF Rasterizer for .NET product. You can get this information from Visual Studio References properties of the DynamicPDF Rasterizer for .NET DLL file. 2.Name of the operating system. 3.Whether the OS is x86 or x64? 4.Input PDF document using which we can recreate the error. Thanks, ceTe Software Support Team.