All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PDFDC.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #if defined(_WIN32)
6 
7 #ifndef PDFTRON_H_CPPPDFPDFDC
8 #define PDFTRON_H_CPPPDFPDFDC
9 
10 #include <PDF/PDFDoc.h>
11 #include <C/PDF/TRN_PDFDC.h>
12 #include <SDF/Obj.h>
13 #include <Windows.h>
14 
15 namespace pdftron{
16  namespace PDF {
17 
73 class PDFDC
74 {
75 public:
76 
80  PDFDC ();
81 
85  ~PDFDC ();
86 
101  HDC Begin( Page in_page, const Rect in_bbox, bool in_preserveAspectRatio = true );
102 
110  void End();
111 
135  void SetDPI(const TRN_UInt32 dpi = 72);
136 
140  void Destroy();
141 
142 // @cond PRIVATE_DOC
143 private:
144  TRN_PDFDC m_pdfdc;
145 
146  PDFDC(const PDFDC&);
147  PDFDC& operator= (const PDFDC&);
148 // @endcond
149 };
150 
151 #include <Impl/PDFDC.inl>
152 
153  }; // namespace PDF
154 }; // namespace pdftron
155 
156 #endif // PDFTRON_H_CPPPDFPDFDC
157 
158 #endif // defined(_WIN32)
void SetDPI(const TRN_UInt32 dpi=72)
HDC Begin(Page in_page, const Rect in_bbox, bool in_preserveAspectRatio=true)