These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

C# Acrobat 8 vs. Acrobat 4

MaRe
Registered: Nov 17 2008
Posts: 4
Answered

Hi,

I am currently switching the referenced DLLin a C# project from a prehistoric Acrobat 4 to an Acrobat 8 equivalent.
My Question is what dll do I have to use now?

Previousley it used to be done like the following (using the ACRODISTXLib.dll):

ACRODISTXLib.PdfDistiller myDist= new ACRODISTXLib.PdfDistillerClass ();
myDist.OnJobFail +=new ACRODISTXLib._PdfEvents_OnJobFailEventHandler(handle_OnJobFail);
//...
myDist.FileToPDF(inputPostScript, outputPDF, jobOptions);

For the new version it also states in the SDK that the above methods should be used, the problem is that I can not find the same methods in the dll installed by Acrobat Prof 8. What I got is this:

AdobePDFMakerX.Distiller acro8 = new AdobePDFMakerX.Distiller();
//There is no "OnJobFailEventHandler
//...
acro8.DistillFile(inputFilename, outputFilename, promptForOutputName);

So what should I actually be using (or why does the SDK still mention the PdfDistiller) ?

Kind regards!

My Product Information:
Acrobat Pro 8.0, Windows
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
You may want to post to Adobe's user to user forums.
Consider the Acrobat Developers SDK forum at:

[url]http://www.adobeforums.com/webx/.eed56a0/[/url]

Be well...

Be well...

MaRe
Registered: Nov 17 2008
Posts: 4
Thanks for the Tip, I have posted on the mentioned forum, but got not feedback so far. In case anyone is interested:
http://www.adobeforums.com/webx/.59b71050

Kind regards !
MaRe
Registered: Nov 17 2008
Posts: 4
After completely removing all Acrobat Products and making a new clean installation of Acrobat 8 the problem is solved, the ACRODISTXLib can be retrieved from the \Adobe\Acrobat 8.0\Acrobat\acrodist.exe as a reference in VS C#.