#include "udcwrapper.h"
#include "udc_defs_public.h"
void SetStandardPageSize()
{
IPrinter *pUDC;
pUDC = new IPrinter;
pUDC->CreateDispatch("UDCWrapper.Printer");
pUDC->SetPrinterName("Universal Document Converter");
IProfile prof = pUDC->GetProfile( pUDC->GetDefaultProfile() );
prof.SetPageFormat("A3");
prof.SetPageOrientation(PO_PORTRAIT);
prof.SetPrintQualityX(600);
prof.SetPrintQualityY(600);
pUDC->ReleaseDispatch();
delete pUDC;
}
void SetCustomPageSize()
{
IPrinter *pUDC;
pUDC = new IPrinter;
pUDC->CreateDispatch("UDCWrapper.Printer");
IProfile prof = pUDC->GetProfile( pUDC->GetDefaultProfile() );
prof.SetPageWidth(1200);
prof.SetPageHeight(1300);
prof.SetPrintQualityX(600);
prof.SetPrintQualityY(600);
pUDC->ReleaseDispatch();
delete pUDC;
}
|