Hello,
we try to get the function of the PDF Renderer SDK into unity.
http://bytescout.com/products/developer/pdfrenderersdk/index.html
From the sample code of the SDK:
static void Main(string[] args)
{
// Create an instance of Bytescout.PDFRenderer.RasterRenderer object and register it.
RasterRenderer renderer = new RasterRenderer();
renderer.RegistrationName = "demo";
renderer.RegistrationKey = "demo";
// Load PDF document.
renderer.LoadDocumentFromFile("multipage.pdf");
// Render first page of the document to PNG image file.
renderer.RenderPageToFile(0, RasterOutputFormat.PNG, "result.png");
// Open the output file in default image viewer.
System.Diagnostics.Process.Start("result.png");
}
I know how to get access of functions within a external *.dll, but how can I make instance of Bytescout.PDFRenderer.RasterRenderer object?
That is the class description:
[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)]
public class RasterRenderer : BaseRenderer,
IRasterRenderer, IBaseRenderer, IDisposable
I’m not a C# crack, so some syntax help would be nice Or is it not possible?
tia, joschy