TUTORIAL - Load PDF Document and Page
In this tutorial, we will load a PDF document named “testdoc.pdf”, and then load the first page of the document. In order to render any page, the page must be loaded first.

#include "fpdfview.h"
#include "fpdfeditbase.h"
FPDF_DOCUMENT pdf_doc;
FPDF_PAGE pdf_page;
// Before we can do anything, we need to unlock the DLL
// NOTE: If you are evaluating FOXIT PDF SDK, you don't need unlock the DLL,
// then evaluation marks will be shown with all rendered pages.
FPDF_UnlockDLL("license_id", "unlock_code");
// first, load the document (no password specified)
pdf_doc = FPDF_LoadDocument("testdoc.pdf", NULL);
if (pdf_doc == NULL) … 	// error handling
	// now load the first page (page index is 0)
	pdf_page = FPDF_LoadPage(pdf_doc, 0);
	if (pdf_page == NULL) 
  	…		// error handling