Document converter 2.50d-3 - no PDF files being created!!!

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
asha
Posts: 3
Joined: Mon Jan 02 2006

Document converter 2.50d-3 - no PDF files being created!!!

Post by asha »

Hi,

I am new to using Amyuni.I have the document converter 2.50d-3. It is the "Amyuni Document Converter, PDF, JPEG/TIFF Modules Professional Version for Windows® Developer License".

I am actually using the following code from the sample in the "Common Driver Interface 250.pdf" document in C# inside an ASP.Net web application. I have referenced all the required files and the code compiles fine.

Here are the things that I have checked:

- the folder C:\Error exists and has write permissions
- the filepath refers to a word document and the word doc exists
- checked that the printer is installed as "Amyuni Document Converter"
- Have passed the correct Licensee and code strings

But still, the following happens:

1. when the SetDefaultPrinter is called, the document converter is not set as the default printer. the call always returns false
2. when batchconvert is called, it does nothing. It passes the control to my main web app and says its done!!!!!! No PDF is created.

3. I tried making the DOcument converter the default printer manually and then call the batchconvert. Still no help!!!!!

[i]
private CDIntfEx.CDIntfExClass cdi = new CDIntfEx.CDIntfExClass();
string PDFPrinter = "Amyuni Document Converter";

cdi.PDFDriverInit(PDFPrinter);
cdi.DriverInit(PDFPrinter);
cdi.EnablePrinter(strLicencee, strCode);
cdi.DefaultDirectory = @"C:\Error";
cdi.FileNameOptionsEx = 3; //NoPrompt + UseFileName
bool bSet = cdi.SetDefaultPrinter();
cdi.CaptureEvents(1);
cdi.BatchConvert(filepath);
cdi.RestoreDefaultPrinter();
cdi.FileNameOptions = 0;
cdi.DriverEnd();[/i]

Im on a very tight deadline... any help immediately to help rectify the issue is highly appreciated!!!!!!

I have gone through some comments on this forum, but of little help.
I tried to print it from word and got the printer not activated error, which I am told is natural for this type of license.

Can someone please help me out with this...

thanks in advance,
asha
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Here are my suggestions for you, i hope this is not very late.

1 - Please call EnablePrinter() right before BatchConvert().

2 - Please remove the call to PDFDriverInit() from your code. Just install the printer once before launching your code the first time using Install.exe or our Installation wizard and in your application start your calls using DriverInit().

3 - We do not have any problems with BatchConvert() and SetDefaultPrinter() both functions work properly, if you are still having any problem please download our latest version 2.50f.

Hope this helps.
asha
Posts: 3
Joined: Mon Jan 02 2006

Post by asha »

Thanks for the suggestions Joan.

I tried the steps that you mentioned. But, they did not solve my issue. I downloaded the latest version 2.50f from teh site and installed it as well. that's not helping me out either. Is there any other thing that I can do.

with the new version, when I go to Printers and select Print preferences in the control panel, it gives me the printer not activated -30 error.

The PDF file is still not being created. Is tehre anything simple that I am missing? is there any documentation that I can cross check with?

thanks
asha.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you choosing to install the End User or Developer version?

From what you discribed i can see that you installed the Developer version of the PDF Converter, it is normal that the Developer version will not be activated when right clicking on it. The error message you are getting is absolutely normal, you need to activate this version programmatically.

What i suggest is that you install the End User version, from the installation wizard please uncheck 'Developer' during installation, and try to use it from your application, this should work. You can comment the calls to EnablePrinter() when using the End User version.

To resolve the issue with the Developer version i suggest you send an e-mail to support@amyuni.com explaining to them what you are doing so they can check more closely the activation code you are using.

Hope this helps.
Stephan
Posts: 3
Joined: Mon Mar 07 2005

Post by Stephan »

Hello Asha,

I had a similar problem, in my case it was the activation time of the Amyuni Developer Suite. After calling the EnablePrinter method you have just X (think is was 10) seconds to print the document afterwards the printer disables automatically. In my case I printed a huge document and got no file (and no dialog). Afterwards i got a new licence key and had no further problems.
Post Reply