We are trying to print PDF files without the dependency on Adobe Reader, but encounter "Unable to load DLL pdfprintsdk.dll" error message

Hi Team,

We are trying to print PDF files without the dependency on Adobe. We came across your application which provides the following feature. Can you provide further details like how to integrate the API in our .Net application.

I am getting the following exception. when i trying to print using the pdfprintsdk.dll

Unable to load DLL 'pdfprintsdk.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

System.DllNotFoundException was unhandled
HResult=-2146233052
Message=Unable to load DLL 'pdfprintsdk.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Source=VeryPDF
TypeName=""
StackTrace:
at VeryPDF.MainWindow.VeryPDF_PDFPrint(String CommandLine)
at VeryPDF.MainWindow.PrintDoc(String FullDocumentName, String PrinterName) in D:\Neodynamic\WorkFolder\VeryPDF\VeryPDF\MainWindow.xaml.cs:line 42
at VeryPDF.MainWindow.Button_Click(Object sender, RoutedEventArgs e) in D:\Neodynamic\WorkFolder\VeryPDF\VeryPDF\MainWindow.xaml.cs:line 22
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at VeryPDF.App.Main() in D:\Neodynamic\WorkFolder\VeryPDF\VeryPDF\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Customer
--------------------------------------------
Please by following steps to try again,

1. Please copy following DLL files to system32 or SysWOW64 folder first,

cimage.dll
GdiPlus.dll
pdfprintsdk.dll
wget.dll
Resource\*.*
encoding\*.*

2. Compile your .NET code with x86 platform mode, your .NET code will able to load 'pdfprintsdk.dll' properly.

You can also call pdfprintcom.exe instead of pdfprintsdk.dll library, please look at following web pages for more information,

https://www.verypdf.com/wordpress/201306/how-to-call-pdfprintcom-exe-com-from-64bit-c-source-code-to-print-pdf-file-37200.html

https://www.verypdf.com/wordpress/201310/how-to-call-pdfprint-sdk-from-64bit-application-and-print-pdf-files-on-64bit-system-39008.html

https://www.verypdf.com/wordpress/201310/system-badimageformatexception-encountered-in-pdfprintsdk-dll-38919.html

https://www.verypdf.com/wordpress/201306/how-to-call-pdfprintsdk-dll-from-64bit-exe-application-37172.html

VeryPDF

VN:F [1.9.20_1166]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
We are trying to print PDF files without the dependency on Adobe Reader, but encounter "Unable to load DLL pdfprintsdk.dll" error message, 9.0 out of 10 based on 1 rating

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!