Q: What is the simplest way to convert a page in PDF to image using
PDFNet? I am developing using C#.
-----
A:
1) Add a reference to PDFNet.DLL to your project.
2) Call the following utility function.
using pdftron;
using pdftron.Common;
using pdftron.PDF;
using pdftron.SDF;
public static void SimpleExport(string pdf) {
string jpg = Path.ChangeExtension(pdf, ".jpg");
PDFNet.Initialize();
using (PDFDoc doc = new PDFDoc(pdf))
using (PDFDraw draw = new PDFDraw())
draw.Export(doc.GetPage(1), jpg, "JPEG", null);
}