We have application that can do drawing and printing, say called this as software A. This A software also can save the document (drawing) to a file (our own format) with extension ".aaa".
Then I create another small application using C# and when user click a button, it will automatically convert this ".aaa" to a PDF (and TIFF later) file.
I have tried using this code (from your sample as well) with no joy:
Code: Select all
const string PDFPrinter = @"Amyuni Document Converter"; const int NoPrompt = 1; const int UseFileName = 2; const string strLicencee = "Converter Evaluation Developer"; const string strCode ="...492E"; CDIntfEx.CDIntfExClass cdi = new CDIntfEx.CDIntfExClass(); string filepath = @"c:\test.aaa"; int j = cdi.DriverInit(PDFPrinter); cdi.DefaultFileName = @"c:\test.pdf"; cdi.FileNameOptionsEx = NoPrompt + UseFileName; bool bSet = cdi.SetDefaultPrinter(); int k = cdi.EnablePrinter(strLicencee, strCode); cdi.BatchConvert(filepath); cdi.RestoreDefaultPrinter(); cdi.FileNameOptions = 0; cdi.DriverEnd();
How do I make this working? Please kindly help us since we eager to buy your software.
Another thing, does the doc converter also support converting to continuous TIFF format?