docexample_render.cpp

00001 #include "NOPage.h"
00002 #include "NOPackage.h"
00003 
00004 using namespace NiXPSObjects;
00005 
00006 void renderPage(const UTF8Char *pXPSIn, const UTF8Char *pXPSOut, const UInt32 lPageNumber)
00007 {
00008         NOPackage *lPackage = NOPackage::readPackageFromFile(pXPSIn);
00009 
00010         // get a handler to the first page of the first out source package
00011         NOPage lPage = lPackage->getDocument(0).getPage(lPageNumber);           
00012 
00013         lPage.renderToTiff(pXPSOut, 1000, 1000, 150, true);
00014         
00015         NOPackage::destroyPackage(lPackage);
00016 }

Generated on Thu Jul 3 15:30:32 2008 for NiXPS Library SDK by  doxygen 1.5.3