Customer Question:
Hello,
We are experiencing an issue on our server when we try to process many text files into PDFs using a custom script. We have purchased a server license.
We have a VBScript that looks to a directory, loops through each text file, and processes it to PDF using the TXT2PDF command line options. This script works perfectly on my local PC. However, when used on the server, it hangs every time. The script works fine when there is just one text file in the folder to process. Please advise on how to troubleshoot this issue.
Thank you.
Reply from VeryPDF:
Dear Customer,
Thank you for reaching out to VeryPDF. We understand the issue you're encountering with processing multiple text files into PDFs using the TXT2PDF command. We would be happy to assist you with troubleshooting this problem.
Troubleshooting Steps:
-
Check the System User Account: Did you run the conversion from the system user account? If so, please try running the conversion from an interactive user account to see if that resolves the issue. Sometimes, running the script with non-interactive system accounts can cause unexpected behavior with certain operations.
-
Batch Conversion Command: You can also try running a batch conversion command to process all the text files at once. You can use the following simple command in your script:
for %F in (D:\temp\*.txt) do text2pdf.exe "%F" "%~nF.pdf"
This command will loop through all text files in the specified directory and convert them to PDF files in a batch. Ensure that your directory path and file extensions are correctly set for your environment.
Further Solution Options:
If you're still facing issues, it may be worth investigating the following:
- Check if there are any server-specific configurations or limitations that might be affecting the script's execution.
- Ensure there are no permission issues on the folder where the text files are stored.
Why Choose VeryPDF Cloud API Platform?
To make your PDF conversion process more streamlined, we recommend you consider integrating the VeryPDF Cloud API Platform into your system. The VeryPDF Cloud API provides over 100 powerful functions for operating on PDF files. Here’s why you should choose VeryPDF Cloud API for your needs:
- Scalable Solution: You can easily convert, manipulate, and manage PDF files in bulk without worrying about your server’s configuration.
- No System Dependencies: Unlike traditional server-based solutions, VeryPDF Cloud API is cloud-based and doesn’t depend on your local server setup, eliminating issues like the one you encountered with your VBScript.
- Easy Integration: The VeryPDF Cloud API can be easily integrated into your web applications. This flexibility allows you to automate PDF-related tasks without adding complexity.
- High Performance: With a cloud-based service, the processing load is distributed across powerful servers, ensuring faster and more reliable conversions.
- Secure: VeryPDF Cloud API adheres to industry-standard security protocols, ensuring your data remains safe during processing.
Learn More: For easy integration and more powerful PDF-related functionality, you can subscribe to the VeryPDF Cloud API Platform on the following page:
VeryPDF Cloud API
For any further assistance, feel free to contact us! Contact Support