You can easily access the PDFreactor service from any .NET language. The library assembly PDFreactor.dll offers you a large subset of the Java-API and takes care of all communication with the service.
The most simple usage in C# would be:
PDFreactor pdfReactor = new PDFreactor();
byte[] PDF = pdfReactor.RenderDocumentFromURL("http://www.realobjects.com/");
A class reference and an XML documentation file is included.
Using ASP.NET. To use the .NET API from ASP.NET copy PDFreactor.dll from "wrappers\dotnet\bin" in your PDFreactor installation directory to "bin" in the root of your IIS-Application or to the global assembly cache.
An ASP.NET example would be:
<%@ Page Language="C#" Debug="false" %>
<%
PDFreactor pdfReactor = new PDFreactor();
pdfReactor.SetAddLinks(true);
pdfReactor.SetAddBookmarks(true);
byte[] PDF = pdfReactor.RenderDocumentFromURL("http://www.realobjects.com/");
if(pdfReactor.GetError() != "") {
Response.Write("<pre>" + pdfReactor.GetLog() + "</pre>");
Response.Write("<h1>" + pdfReactor.GetError() + "</h1>" );
} else {
Response.ContentType = "application/pdf";
Response.BinaryWrite(PDF);
}
%>