Skip to content
VeryPDF Knowledge Base

VeryPDF Knowledge Base

Knowledge Base to VeryPDF Products

  • Home
  • Products
    • PDF to Any Converter
      • PDF to Word Converter
      • PDF to Word OCR Converter
      • PDF to Excel Converter
      • PDF to Excel OCR Converter
      • PDF to Text Converter
      • PDF to Text OCR Converter
      • PDF to HTML Converter
      • PDF Extract TIFF
      • PDF to Image Converter
      • PDF to PowerPoint Converter
    • Any to PDF Converter
      • AutoCAD to PDF Converter
      • PCL to PDF Converter
      • Image to PDF Converter
      • Image to PDF OCR Converter
      • HTML to PDF Converter
      • Document Printer
      • Document Converter
      • PowerPoint to Flash Converter
      • PowerPoint Converter
      • Free Text To PDF Converter
      • Metafile To PDF Converter
      • Office to Any Converter
    • PDF Utilities
      • PDFcamp Printer
      • PDF Editor
      • PDF Password Remover
      • Encrypt PDF
      • PDF Stamper
      • PDF Print
      • PDF Form Filler
      • Advanced PDF Tools
      • PDF Split-Merge
      • PDF Size Splitter
      • PDF Manual Splitter
      • PDF Optimizer
      • PDF Crop
      • PDF to PDF/A Converter
      • PDF Batch Print
    • Graphics Tools
      • TIFF Toolkit
      • Raster to Vector Converter
      • PDF to Flash Flip Book Converter
      • Image to Text OCR Converter
    • Business & OCR
      • PDF to Excel Converter
      • PDF to Excel OCR Converter
      • Scan to Excel OCR Converter
      • PDF to Word Converter
      • PDF to Word OCR Converter
      • Scan to Word OCR Converter
      • Office to Any Converter
      • Screen OCR
      • TIFF Toolkit
    • Multimedia
      • Flash to Image Converter
      • PowerPoint to Video Converter
      • Flash to Animated GIF Converter
      • PowerPoint to Flash Converter
      • PowerPoint Converter
    • Virtual Printer
      • PDFcamp Printer
      • Document Printer
      • Document Converter
      • Mini EMF Printer Driver
    • Development
      • Doc Converter COM Component
      • PDF Editor OCX Control
      • PDF to Text Converter SDK
      • Image to PDF Converter SDK
      • Image to PDF OCR Shell
      • HTML Converter Command Line
      • PDF to Image Converter SDK
      • PCL to PDF Converter SDK
      • PDF Password Remover SDK
      • Encrypt PDF SDK
      • PDF Split-Merge SDK
      • PDF Stamp SDK
      • PDF Print SDK
      • PDF Form Filler OCX
      • Advanced PDF Tools SDK
      • PDF Editor Toolkit SDK
      • Document Converter SDK
    • Customization
      • Custom Development Solution
    • More >>
  • Solutions
    • Web Viewer Solution
    • Web Annotator Solution
    • OCR Solution
    • PDF to Office Solution
    • PDF Form Filler Solution
    • Document Security Solution
    • Printer Intercept and Capture
    • PDF Extraction Solution
    • Paperless Printing Solution
    • Document Conversion
    • PDF Digital Signature
    • More >>
  • Blog
    • Advanced PDF Tools
    • docPrint Pro
    • PDFcamp Printer
    • PDF Editor
    • PDF Print
    • OCR Products
    • HTML to PDF Converter
    • PDF to Image Converter
    • Image to PDF Converter
    • PDF to Word Converter
  • Company
    • About Us
    • Contact Us

Fix PDFPrint Not Working – Troubleshooting ‘The Application Failed to Initialize Properly (0x0000142)’ on Windows Server

Posted on 2025/02/17Author VeryPDF / 1246 Views
Question from Customer:

Hi all,

Hope someone can help me out on this one. I read in another VeryPDF post that this error has been known to happen on Windows 2008 Server x64 and not so much on Windows 2003 server. I am running this on a Windows 2003 server SP 2 and I have confirmed that the directory 'C:\Windows\System32\config\systemprofile\Desktop' exists. So, what else could cause this problem?

https://www.verypdf.com/app/pdf-print-cmd/index.html

Here is the exact code that I am running (it is in C#) to invoke the pdfprint executable:

var psi = new ProcessStartInfo(printExe, args) { ErrorDialog = false, WindowStyle = ProcessWindowStyle.Hidden, UseShellExecute = false, RedirectStandardError = true, RedirectStandardOutput = true, Domain = ConfigurationManager.AppSettings["DomainName"], UserName = ConfigurationManager.AppSettings["UserName"], Password = secPass, }; var pdfPrint = Process.Start(psi); if (pdfPrint == null) { throw new ArgumentException("Failed to start Process."); }

This code looks like it should invoke the pdfprint executable without issue. I am at a loss.

I am logging out the exit code, and it states that it exits with the code: 128

Any help on this issue is greatly appreciated.

Thanks!

Fix PDFPrint Not Working – Troubleshooting 'The Application Failed to Initialize Properly (0x0000142)' on Windows Server


Contact Us for Custom Development Solutions
Response within 24 hours
Reply from VeryPDF:

Hello,

Thank you for your query. The issue you're experiencing seems related to permission restrictions in the default Local System User Account on your system. We recommend trying to use CmdAsUser.exe to run pdfprint.exe from an interactive user account, which should resolve the issue.

Here are the steps you can follow to resolve the problem:

1. Test PDFPrint in CMD:

First, ensure that pdfprint.exe can be executed manually via the Command Prompt (CMD).

  • Open a Command Prompt window.
  • Navigate to the folder where pdfprint.exe is located.
  • Run the following command to print your PDF:

pdfprint.exe C:\verypdf\test.pdf

If pdfprint.exe runs correctly from the CMD window, it indicates that the user account you’re currently using (likely "Administrator") has proper permissions.

2. Download CmdAsUser.exe:

To resolve the issue, download CmdAsUser.exe from the following links:

  • CmdAsUser Download
  • CmdAsUser Zip File

After downloading, unzip the file to a folder (e.g., C:\verypdf).

3. Run PdfPrint via CmdAsUser:

Once you have CmdAsUser.exe set up, you can use it to run pdfprint.exe under the desired user account. Use the following command line:

CmdAsUser.exe Administrator . /p password /c "C:\verypdf\pdfprint.exe" -printer "192.168.1.10VeryPDFPrinter" C:\verypdf\test.pdf

In most systems, you may encounter error #1314, which indicates insufficient permission to switch the user account. If this occurs, please follow the instructions on the page below to solve the #1314 permission problem:

  • Permission Error #1314 Solution

Once you’ve resolved the permission issue, you should be able to successfully launch pdfprint.exe via CmdAsUser.exe.

4. Update C# Code:

Finally, to invoke pdfprint.exe from your C# application, use CmdAsUser.exe instead of pdfprint.exe directly. Modify your C# code as follows:

printExe = "C:\\verypdf\\cmdasuser.exe"; args = "Administrator . /p password /c \"C:\\verypdf\\pdfprint.exe\" -printer \"192.168.1.10VeryPDFPrinter\" C:\\verypdf\\test.pdf"; var psi = new ProcessStartInfo(printExe, args) { ErrorDialog = false, WindowStyle = ProcessWindowStyle.Hidden, UseShellExecute = false, RedirectStandardError = true, RedirectStandardOutput = true, Domain = ConfigurationManager.AppSettings["DomainName"], UserName = ConfigurationManager.AppSettings["UserName"], Password = secPass, }; var pdfPrint = Process.Start(psi); if (pdfPrint == null) { throw new ArgumentException("Failed to start Process."); }

This should resolve your problem and allow you to print PDFs from your C# code.

If you continue to experience issues or need further assistance, please feel free to contact us via email at support@verypdf.com. We will be happy to help resolve any remaining challenges.

Introducing VeryPDF Cloud API Platform

The VeryPDF Cloud API Platform is a powerful, scalable solution designed to provide seamless integration for businesses and developers looking to leverage advanced PDF processing functions without the need for complex local installations or system dependencies. With the Cloud API, users can easily automate PDF tasks like conversion, extraction, watermarking, and much more, all from within their web applications.

https://www.verypdf.com/online/cloud-api/index.html

Here’s why the VeryPDF Cloud API Platform stands out:

Key Advantages of VeryPDF Cloud API Platform
  1. Over 100 Functions for PDF Processing:
    The platform offers a comprehensive suite of over 100 different functions that allow you to manage and manipulate PDF documents in virtually any way you need. Whether you're converting PDFs to different formats, extracting content, splitting/merging documents, adding security features, or handling OCR tasks, VeryPDF Cloud API has you covered.

  2. Easy Integration:
    One of the biggest benefits of using the VeryPDF Cloud API is its easy integration process. The API can be quickly added to your existing web applications without requiring complex setups or dependencies on your local system configuration. This means no worrying about compatibility or system-specific requirements.

  3. Scalable and Flexible:
    The cloud-based nature of the API ensures that you can scale your operations effortlessly. As your business grows, the platform can handle an increasing number of PDF requests without requiring additional server resources or infrastructure changes. This makes it an excellent choice for businesses of all sizes.

  4. No System Configuration Dependencies:
    Unlike traditional software that may require specific system setups or configurations, VeryPDF Cloud API works independent of your system environment. This allows for greater flexibility and ensures that the platform can be accessed and used from virtually any system without requiring system-specific configurations.

  5. Cost-Effective:
    With a pay-as-you-go pricing model, the VeryPDF Cloud API Platform allows businesses to save costs on infrastructure and software maintenance. You can scale up or down based on your usage, ensuring that you're only paying for what you need.

  6. Reliable Performance:
    VeryPDF Cloud API Platform is designed for high performance and reliability. With robust cloud infrastructure, you can count on consistent uptime and fast processing speeds, even when handling large volumes of requests or complex PDF operations.

  7. Enhanced Security Features:
    When it comes to document processing, security is always a concern. VeryPDF Cloud API offers advanced security features like encryption, access controls, and secure document handling, ensuring that your PDFs are always protected during processing.

  8. Continuous Updates and Improvements:
    By subscribing to the VeryPDF Cloud API, you benefit from continuous updates and improvements to the API. As new features are added and enhancements are made, you’ll have access to the latest capabilities without having to worry about manual updates or system maintenance.

  9. Global Accessibility:
    The cloud-based nature of the platform means that you can access the API from anywhere in the world, without limitations related to local hardware or software configurations. This makes it easy for distributed teams or businesses with global customers to use the platform.

  10. Support for Multiple File Formats:
    VeryPDF Cloud API not only handles PDFs but also supports various other formats for conversion, such as images, text, and office document formats. This cross-format functionality enables you to streamline various tasks from one platform.

Why Should You Choose VeryPDF Cloud API Platform?
  1. Simplifies Complex PDF Tasks:
    If you need to automate complex PDF tasks in your business workflows, the VeryPDF Cloud API offers an easy way to integrate PDF management features without requiring in-depth technical knowledge. This means you can focus more on your core business while leveraging advanced PDF processing power.

  2. No Local Setup Required:
    Traditional PDF tools often require installation on specific servers or systems. With the cloud-based API, you don’t have to worry about local setup or managing system-specific requirements. Simply integrate it into your web application and start processing documents immediately.

  3. Faster Development Time:
    With its easy-to-use documentation and simple integration, developers can reduce the time spent on PDF-related tasks. You can integrate PDF processing into your web applications quickly, allowing you to focus on the user experience and business goals instead of maintaining a complex PDF system.

  4. Maximize Efficiency:
    Whether you’re processing single documents or handling large volumes of PDFs, the VeryPDF Cloud API ensures that tasks are completed efficiently and with minimal manual effort. The API handles the heavy lifting, so your team doesn’t have to.

  5. Future-Proof Technology:
    As a cloud-based service, VeryPDF Cloud API is always evolving. New features and enhancements are continuously added to ensure you have access to the latest and most efficient PDF processing tools. This ensures that you stay ahead in the competitive landscape of digital document management.

Conclusion

The VeryPDF Cloud API Platform offers unmatched flexibility, scalability, and ease of integration. With a comprehensive set of over 100 functions for PDF processing, it empowers businesses to streamline their workflows, improve productivity, and reduce the cost of managing documents. Whether you're a developer looking to integrate PDF processing into your web application or a business that needs powerful document solutions, VeryPDF Cloud API is the ideal choice.

To explore the full range of features and start leveraging the power of the VeryPDF Cloud API Platform, visit VeryPDF Cloud API Platform.

Choose VeryPDF Cloud API to unlock the full potential of your PDF processing needs—efficiently, securely, and cost-effectively.


For any further assistance, feel free to contact us! Visit our support page.

Contact Us for Custom Development Solutions
Response within 24 hours

Related Posts

  • How to Preserve Bold Fonts When Printing PDFs with VeryPDF PDFPrint Command Line
  • How to Convert Multiple Text Files to PDF Using VeryPDF Cloud API Platform: Troubleshooting & Solutions
  • Fixing pdf2txtocr.exe Crashes When Launched by Windows Service on x64 Systems
  • How to print PDF and scale PDF?
  • How to print PDF to any paper size via command line?
  • VeryPDF Releases a new version of PDFPrint Command Line today
  • Print all PDF files into one single Print Job, set tray and staple options to this print job
  • Print PDF file with big paper size or large paper using PDFPrint Command Line software

Related posts:

Is PDFPrint change the Tray during printing?
How to create PDF of specific pages by command line?
How to print PDF of saving an old newspaper?
How to call pdfprintcom.exe COM from 64bit C# source code to print PDF file?
Batch Print PDF file and apply the watermark to printout
How to convert Office and other documents to PDF files and then print the PDF files to Windows Print...
Do not change printer settings during printing with pdfprint, pdfprint creates a new HDC instead of ...
How to print PDF files to network UNC Printers?
Category: PDF Print Tag: c# pdfprint, cmdasuser download, cmdasuser error, cmdasuser executable, cmdasuser fix, cmdasuser permissions, cmdasuser solution, cmdasuser.exe, error code 128, interactive user account, local system user, pdf print permissions, pdf printing issue, pdf printing solution, pdfprint error, pdfprint installation, pdfprint not working, pdfprint permissions, pdfprint process, permission issue fix, print pdf file, print pdf in csharp, process start error, server printing problem, system account printing, system profile directory, system profile error, windows 2003 server, windows permissions issue, windows print service, windows printing problem, windows server printing

Post navigation

Previous PostHow to Use pdfstamp.exe with Network Folders or Paths for PDF Stamping
Next PostVeryPDF Cloud REST API: Best Online PDF Processing & PDF Conversion API for Developers

Custom Development Services

VeryPDF offers customized development services to meet your unique business needs, including PDF Processing, Document Automation, Document Analysis, Format Conversion, OCR, DRM, Barcode Solutions, Virtual Printer, Digital Signature, AI Integration, and more. Contact us today to get a personalized solution!

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • VeryPDF.com
  • VeryDOC.com
  • VeryUtils.com
  • imPDF.com

Recent Solutions

  • image_thumb.pngCapture PostScript and PCL print jobs sent via TCP/IP, save PRN or SPL file…
  • image_thumb.pngHow to Build a Python Network Virtual Printer and Batch Convert Print files…
  • image_thumb.pngVirtual PDF Printer Capture: Capture Windows Print Jobs and Save Them as PD…
  • image_thumb.pngPDF/A-3 vs ZUGFeRD: Custom PDF to PDF/A e-Invoice Development with VeryPDF
  • image_thumb.pngCustom PDF to PDF/A-3 + ZUGFeRD Development by VeryPDF (Simple Guide for Bu…

Recent Posts

  • image_thumb.pngCapture PostScript and PCL print jobs sent via TCP/IP, save PRN or SPL file…
  • image_thumb.pngHow to Build a Python Network Virtual Printer and Batch Convert Print files…
  • image_thumb.pngVirtual PDF Printer Capture: Capture Windows Print Jobs and Save Them as PD…
  • image_thumb.pngHow to Automatically Convert PDF Customer Orders to Excel Using PDF to Exce…
  • image_thumb.pngPrint Management Software Needs PCL Preview? How to Convert PCL to PDF or I…

Categories

Archives

Calendar

February 2025
M T W T F S S
« Jan   Mar »
 12
3456789
10111213141516
17181920212223
2425262728  
© 2026 VeryPDF Knowledge Base / VeryPDF.com / VeryDOC.com / VeryUtils.com / Support
Contact
Us