How to convert text file to PDF file from IIS Service without administrator privileges?

Good Morning,

We are using VeryPDF for text to PDF conversion in Web API application. The text to PDF conversion works only when the IIS service user account (configured in app pool) has an administrator privileges. Many of our customers are not okay to configure app pool account with admin privileges as it is a serious security concern.

Please let us know a solution to run VeryPDF through a non-admin App pool user account.

Customer
---------------------------------------

image

Thanks for your message, we have created a new version of text2pdf.exe software to you, you can run following command line to convert a text file to PDF file easily,

text2pdf.exe test.txt out.pdf

You can also call it from your web application to convert from text file to PDF file, the new version of text2pdf.exe doesn't require administrator privilege.

If you want to call text2pdf.exe from classic ASP web page, you will need to use an EXE COM of VeryPDFComRunCmd.exe, please find following web page for more information,

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

after you install and configured VeryPDFComRunCmd.exe in your system, you can use following ASP code to call text2pdf.exe application, enjoy it,

<%

set VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
strRet = VeryPDFCom.RunCmd2("D:\VeryPDF\text2pdf.exe D:\input.txt D:\output.pdf", 5)
Response.Write strRet & vbCrlf

%>

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

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!