VeryPDF Free Text to PDF For the developer license, is this a com object? do you have vb.net examples? I need to convert text to pdf.
Customer
-------------------------------
Thanks for leaving a message for us.
You can download it here.
https://www.verypdf.com/app/text-to-pdf-converter/try-and-buy.html
During the using, if you have any question, please contact us as soon as possible.
VeryPDF
-------------------------------
Is there a com object I can call or is this strictly a command line utility?
Customer
-------------------------------
PDF Editor Toolkit SDK Professional product is contain a COM interface to convert text files to PDF files, you may download the trial version from following web page to try,
https://www.verypdf.com/app/pdf-editor-toolkit/try-and-buy.html
https://www.verypdf.com/pdfsdk/pdf_editor_toolkit_pro_trial.zip
You can call com_VeryAddTxt or VeryAddTxt method to convert text file to PDF file directly, for example,
Const Very_Set_Font = 106
Set pdfObj = CreateObject("pdfshell.shellexe")
'Create a PDF file
id = pdfObj.com_VeryCreate("D:\com_example.pdf")
FileName = "test.txt"
ret = pdfObj.com_VerySetFunction(id, Very_Set_Font, 200, 16, 0, 0)
ret = pdfObj.com_VeryAddTxt(id, FileName, 0, 0, 0, 1, 1, 64, 64, 64, 64, 4)
pdfObj.com_VeryClose (id)
You need launch a CMD window by administrator privilege, switch current folder to "pdf_editor_toolkit_pro\bin" folder, run following command line to register "pdfshell.shellexe" into your system,
pdfshell.exe /regserver
you can also run "installx64.bat" to install "pdfshell.shellexe" into your system, if you are using 32bit system, please run "installx32.bat" file, after that, you can call "pdfshell.shellexe" COM from your C# or VB.NET or other languages to convert text files to PDF files easily.
The following is a VC++ example, it may useful for you too,
int id=VeryOpen(“D:\\out.pdf”);
if(id>0)
{
VerySetFunction(id,Very_Set_Font,200,16,0,0);
VeryAddTxt(id, "D:\\in.txt",0,0,0,1,1,64,64,64,64,4);
VeryClose(id);
}
VeryPDF