Support for DocConverter COM V2.5 pdfout.dll

We have purchased DocConverter COM V2.5 and we are using it with VeryPDF PDFcamp V2.5. When we try to invoke pdfout.dll functionality a message box is displayed which says that this is a trial version of DocConverter COM.

We have unregistered the old pdfout.dll and registered new pdfout.dll and we have created and added Interop.PDFOUTLib.dll into GAC. Could you please let us know why following message box for trial version is getting displayed?

Could you please let us know if pdfout.dll in DocConverter COM V2.5 is compatible with VeryPDF PDFcamp V2.5?
Also could you please let us know if DocConverter COM V2.5 compatible with VeryPDF PDFcamp V2.5 or VeryPDF PDFcamp V2.3?
========================
>>FAQ:
>>Question: Why I still get the message box, "This is a tiral version.."?

Because you have registered the trial version of pdfout.dll file in your computer
before, you need unregister the trial version of pdfout.dll file and re-register the
full version of pdfout.dll file again, then this message box will disappear.

For example,

Unregister the trial version of pdfout.dll file,

regsvr32 /u C:\doc2pdf_com_trial\pdfout.dll

re-register the full version of pdfout.dll file,

regsvr32 C:\doc2pdf_com_full\pdfout.dll

You can also replace (overwrite) the pdfout.dll file with the full version directly, or run "install_as_exe.bat" to install the new version of DocConverter COM into your system.

If you have another computer, you can install the full version to your another computer to try again, the full version hasn't this message box.

Additionally, if you wish call pdfout.dll from your code directly, you need call SetCode() method to set the License Key to pdfout.dll file, for example,
~~~~~~~~~~~~~~~~~~
'Set pdfCreator = CreateObject("Pdfout.PdfCreator")
Dim PdfCreator As PDFOUTLib.PdfCreator
Set PdfCreator = New PdfCreator
PdfCreator.SetCode ("XXXXXXXXXXXX") 'You need set a License Key at here
PdfCreator.html2PDF = szHTMLFilename
PdfCreator.filename = szPDFFilename
PdfCreator.CreatePDF
While PdfCreator.StillRunning = 1
DoEvents
'Call WaitMessage           'Please comment this line if you call HTML2PDF.exe from a Windows System Service
Wend
Set PdfCreator = Nothing
~~~~~~~~~~~~~~~~~~

VeryPDF
========================
We followed the mentioned step on a fresh installation and now we are not getting Trial Version message box.

We performed following steps=>
1. Install new system(OS)
2. register pdfout.dll
3. create interop dll using tlbimp

We have added PdfCreator.SetCode ("XXXXXXXXXXXXXX") to our code and we are creating instance of IPdfCreator.
Code snippent in our application:

private IPdfCreator myPDFcreator = null;
myPDFcreator = new PdfCreatorClass();
myPDFcreator.headersFooters = "off";
myPDFcreator.html2PDF = myMHT_Filename;
myPDFcreator.fileName = myPDF_Filename;
myPDFcreator.SetCode ("XXXXXXXXXXXXXXX");
myPDFcreator.CreatePDF();

Now we are getting SaveAs dialog while exporting, earlier without any registry change manually, the registry key AutomaticDirectory was getting updated with “myPDFcreator.fileName “ and hence no saveas message box was prompted but now the AutomaticDirectory registry value is not getting updated.

Could you please let us know how to suppress this save as dialog?

========================
Thanks for your message, you may rename "PDFcamp Printer" printer name to "PDFcamp Printer Driver" and try again, can you still see the SaveAs dialog?

also, you need set the values to correct items in the registry, you may run regedit.exe to open registry editor application first, search "pdfcamp" keyword, set following items to every found item,

AutomaticDirectory=C:\out.pdf   Type is: "REG_SZ"
AutomaticOutput=1               Type is: "REG_DWORD"
AutomaticValue=2                Type is: "REG_DWORD"
AutoView=0                      Type is: "REG_DWORD"

after you modified all found "PDFcamp" items in registry, please print a document to PDFcamp Printer, then you will get a "C:\out.pdf" file properly, you will not see Save As dialog during conversion.

If you wish use html2pdf.exe to convert documents to PDF files on x64 system, please refer to following information,

Please by following steps to use html2pdf.exe (included in DocConverter COM) on 64bit Windows Server System,

1. Please download and install 64bit version of PDFcamp Printer from following URL,

https://www.verypdf.com/pdfcamp/pdfcamp-printer-x64.exe

After you installed PDFcamp Printer (x64) product, please print a document to PDFcamp Printer, you will see a registration prompt dialog, please input your license key into this dialog, then you can create PDF file without any restrictions.

Once you registered the PDFcamp Printer product, the trial message will be removed from the created PDF files.

2. After you installed PDFcamp Printer x64 version, please go to Printer&Fax folder, rename "PDFcamp Printer" printer name to "PDFcamp Printer Driver",

3. Please download the DocConverter COM and unzip it to a folder, after you unzip it to a folder, please launch a CMD window with administrator right, change the current folder to the folder where "install_as_exe.bat" inside, "install_as_exe.bat" is included in DocConverter COM package.

4. Run "install_as_exe.bat" in CMD window with administrator right, you will install the DocConverter COM as a normal Windows application correctly,

Please notice, if you can't run "install_as_exe.bat" to install pdfout.dll library properly, please copy "pdfout.dll" to C:\window\syswow64 folder, run following command line with administrator right to register it by manual,

"c:\windows\syswow64\regsvr32.exe" C:\windows\syswow64\pdfout.dll

5. OK, you can run html2pdf.exe on your 64bit Windows Server 2008 R2 to convert documents to PDF files without any problem now,

6. If you wish install "VeryPDF DocConverter COM Service" on 32bit system, please run "install_as_service.bat" with administrator right, if you wish install "VeryPDF DocConverter COM Service" on 64bit system, please run "install_as_service_x64.bat" with administrator right, after you installed the service, you can call Doc2PDFCommandLine() function from ASP or C# code to convert documents to PDF files properly.


Please notice an important matter, pdfout.dll is a 32bit COM, so you need run your ASP application in 32bit mode or x86 platform, then your ASP code can access the 32bit pdfout.dll properly. If your ASP application run at x64 platform mode, it can’t access to the 32bit pdfout.dll, please notice this matter.

We suggest you may by following steps to "Enable 32-bit Applications" for IIS service,

1. Create a new application pool for the helpdesk application.
2. In the new pool's advanced settings, set "Enable 32-bit Applications" to true.
3. Right-click the helpdesk application's virtual directory in IIS manager,
make sure it has been converted to application. This makes it be a separate
web application which is independent to the parent site.
4. In the virtual directory's Basic settings, change it to use the new application pool.

You can also change the settings to your original Application Pool, please go to the Application Pool tied to the web application, Advanced Properties... and setting "Enable 32-bit Applications" to True, then your ASP code can call 32bit pdfout.dll correctly.

You can also refer to more information from following web pages,

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/405f5bb5-87a3-43d2-8138-54b75db73aa1.mspx?mfr=true

http://www.eggheadcafe.com/software/aspnet/33931176/iis-7-running-32-bit-app-in-64bit-server.aspx


if you still can’t get it work, please create a remote desktop account on your test machine, after we logged into your test machine, we will research this problem for you asap.

VeryPDF
========================
Continue to previous email.

I have double checked your code again, you should use Doc2PDFCommandLine() function to instead of CreatePDF() function, please refer to following steps,

2. How convert a HTML, DOC, DOCX, RTF, TXT, PPT, PPTX, XLS, XLSX, etc. file to PDF file from Windows Application Mode, via ASP, PHP, C#, etc. program languages?
Step 1:
1. Please download and install 64bit version of PDFcamp Printer from following URL,

https://www.verypdf.com/pdfcamp/pdfcamp-printer-x64.exe

After you installed PDFcamp Printer (x64) product, please print a document to PDFcamp Printer, you will see a registration prompt dialog, please input your license key into this dialog, then you can create PDF file without any restrictions.

Once you registered the PDFcamp Printer product, the trial message will be removed from the created PDF files.

Step 2:
After you installed PDFcamp Printer x64 version, please go to Printer&Fax folder, rename "PDFcamp Printer" printer name to "PDFcamp Printer Driver",

Step 3:
Please unzip full version of DocConverter COM software to a folder, run "install_as_exe.bat" to install DocConverter COM into your system, "doc2pdf_service.exe" will be run as a normal windows application,

Step 4:
Please use following example code to convert your documents to PDF files,
ASP Example:
<%
set PdfCreator = Server.CreateObject("PdfOut.PdfCreator")
ConvertHTMLToPDF1 PdfCreator,"http://www.google.com","google001.pdf"
set PdfCreator = nothing

function ConvertHTMLToPDF1(byval PdfCreator, strHTMLFile, strPDFFile)
'The first method to create a PDF file from HTML file
strPDFFile = server.mappath(".") & "\" & strPDFFile
dim strCommandLine
strCommandLine = """" + strHTMLFile + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + strPDFFile + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + "paperType=6" + """"
Response.write "HTML To PDF Command Line1 is: " & strCommandLine & "<br>"
PdfCreator.Doc2PDFCommandLine(strCommandLine)
end function
%>
PHP Example:
<?php
$url = "https://www.verypdf.com";
$outfile = "C:\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->Doc2PDFCommandLine("\"$url\" \"$outfile\" \"paperType=0,PrintHTMLBackground=yes,overwrite=yes\"");
?>
C# Example:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PDFOUTLib;

namespace FunWithVeryPDF
{
class Program
{
static void Main(string[] args)
{
try
{
PdfCreator wert = new PdfCreator();
wert.Doc2PDFCommandLine("""http://www.google.com"" ""C:\temp\out.pdf""")
wert = null;
Console.WriteLine("Done");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
Step 4:
You can convert .html, URL, .doc, .docx, .rtf, .ppt, .pptx, .xls, .xlsx, txt etc. files to PDF files from your ASP, PHP, C#, etc. program languages now.

*Please Notice: After you reboot the server, you need login your server via Remote Desktop with this user account ("doc2pdf_service.exe" was installed inside this user account), and close Remote Desktop, leave this user logged in, when you call Doc2PDFCommandLine() function, the conversion will be executed from this user account automatically.

VeryPDF
======================== 

By renaming the printer as "PDFCamp Printer Driver", Save as issue is solved.

Trial version dialog issue is also solved by "PdfCreator.SetCode ("XXXXXXXXXXX")".
But with old PdfCamp & DocConvertor versions, SetCode() was not required.
Please let’s know how it was handled previously and can we follow the same?

We observed one more issue, whenever we remotely logged into other systems from a PdfCamp installed machine, a "Save as" dialog is popping up as shown below.
Please look into this and let’s know how to fix the issue?
===================================
Thanks for your message, yes, the new version does use SetCode() function to register the pdfout.dll from your code, you can add .SetCode() function to all of your source code when you call pdfout.dll function, then you can use it without any restrictions.

We apologize for any inconvenience this may have caused to you, just a question, how do you call the DocConverter COM Service? Did you call it by Doc2PDFCommandLine() function and "doc2pdf_service.exe" application?

VeryPDF
===================================

Thanks for the Information regarding SetCode(). As you informed we will add SetCode() when we call pdfout.dll function.

Regarding second issue:

When we logged into other systems from a machine where only PDF camp printer is installed then also “Save as” dialog is popping up (issue is reproducible), so issue is independent of our application.

However we  are not using DocConverter COM Service.

===================================

Can be easily reproduced at your end, please follow the following steps to reproduce the issue.

1) Install Verypdf camp printer v2.5 on a Windows 7 machine.
2) Login remotely to Some other machine (using mstsc)
Some time after you login to other system a saveas dialog will pop up.

Due to security reasons we can’t install TeamViewer and give the remote login rights to the test machine.
If you need any further information regarding hardware/software environment , please don't hesitate to contact us.
======================================
Please open following file in notepad.exe application,

"C:\Program Files\PDFcamp Printer (x64) v2.5\config.ini"

Set "DisableSaveAsDialog=1" option in config.ini file, save it,

[options]
EmptyFileNameAfterPrinting=1
DisableSaveAsDialog=1
UseLocalMachine=0

Please try again, we hoping SaveAs dialog will not appear at this time.

VeryPDF
==================================
By setting the “DisableSaveAsDialog=1” option in config.ini file, SaveAs dialog issue is solved.Thanks for the support , you can close call.
==================================
Thank you for your message, if we can be of any other assistance, please feel free to let us know.

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

One Reply to “Support for DocConverter COM V2.5 pdfout.dll”

  1. I’m getting “ActiveX component can’t create object error” error, when trying to run the following command:

    html2pdf “http://www.google.com ” “c:\test.pdf”

    How to troubleshoot it? Thanks.
    ——————————-
    Please run following command line to register pdfout.dll file, this error will disappear,

    regsvr32.exe pdfout.dll

    On the x64 system, you need use regsvr32.exe in syswow64 folder, for example,

    “c:\windows\syswow64\regsvr32.exe” C:\windows\syswow64\pdfout.dll

    You need run above command line by administrator privilege, the limited user account hasn’t enough privilege to register a COM component.

    VeryPDF

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

Leave a Reply to VeryPDF Cancel 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!