00001
00002
00003
00004
00005 #if defined(_WIN32) && !defined(WINCE)
00006
00007 #ifndef H_CPPPDFDC
00008 #define H_CPPPDFDC
00009
00010 #include <PDF/PDFDoc.h>
00011 #include <C/PDF/TRN_PDFDC.h>
00012 #include <SDF/Obj.h>
00013 #include <Windows.h>
00014
00015 namespace pdftron{
00016 namespace PDF {
00017
00073 class PDFDC
00074 {
00075 public:
00076
00080 PDFDC ();
00081
00085 ~PDFDC ();
00086
00101 HDC Begin( Page in_page, const Rect in_bbox, bool in_preserveAspectRatio = true );
00102
00110 void End();
00111
00135 void SetDPI(const TRN_UInt32 dpi = 72);
00136
00137 private:
00138 TRN_PDFDC m_pdfdc;
00139 };
00140
00141 #include <Impl/PDFDC.inl>
00142
00143 };
00144 };
00145
00146 #endif // H_CPPPDFDC
00147 #endif // defined(_WIN32) && !defined(WINCE)