summaryrefslogtreecommitdiffhomepage
path: root/dev/pdm
diff options
context:
space:
mode:
Diffstat (limited to 'dev/pdm')
-rw-r--r--dev/pdm/pdf_pdm.hxx45
-rw-r--r--dev/pdm/pdm.json23
-rw-r--r--dev/pdm/src/pdm_pdf.cxx7
3 files changed, 75 insertions, 0 deletions
diff --git a/dev/pdm/pdf_pdm.hxx b/dev/pdm/pdf_pdm.hxx
new file mode 100644
index 00000000..044c7468
--- /dev/null
+++ b/dev/pdm/pdf_pdm.hxx
@@ -0,0 +1,45 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <CompilerKit/Detail.hxx>
+#include <NewKit/Defines.hxx>
+
+namespace Kernel::PDF
+{
+ class IPDFRenderViewport;
+ class IPDFDocument;
+ class IPDFTimestamp;
+ class IPDFTag;
+
+ /// \brief PDF rendering class.
+ class IPDFRenderViewport
+ {
+ public:
+ explicit IPDFRenderViewport() = default;
+ virtual ~IPDFRenderViewport() = default;
+
+ ZKA_COPY_DELETE(IPDFRenderViewport);
+
+ virtual IPDFDocument* GetFirstPage() = 0;
+ virtual IPDFDocument* GetLastPage() = 0;
+
+ virtual IPDFDocument* GetPage(const UInt32& page_number);
+
+ virtual const Char* GetProducer() = 0;
+ virtual const Char* GetTitle() = 0;
+ virtual const Char* GetAuthor() = 0;
+ virtual const Char* GetSubject() = 0;
+
+ virtual Bool IsFastView() = 0;
+
+ virtual SizeT GetWidth() = 0;
+ virtual SizeT GetHeight() = 0;
+
+ virtual SizeT GetPageCount() = 0;
+ };
+} // namespace CG::PDF
diff --git a/dev/pdm/pdm.json b/dev/pdm/pdm.json
new file mode 100644
index 00000000..790ab0f1
--- /dev/null
+++ b/dev/pdm/pdm.json
@@ -0,0 +1,23 @@
+{
+ "compiler_path": "x86_64-w64-mingw32-g++",
+ "compiler_std": "c++20",
+ "headers_path": ["../", "../zka"],
+ "sources_path": ["src/*.cxx"],
+ "output_name": "pdm.sys",
+ "compiler_flags": [
+ "-fPIC",
+ "-ffreestanding",
+ "-shared",
+ "-fno-rtti",
+ "-fno-exceptions",
+ "-Wl,--subsystem=17"
+ ],
+ "cpp_macros": [
+ "__PDM_IMPL__",
+ "__NEWOSKRNL__",
+ "__ZKA_AMD64__",
+ "cPDMVersion=0x0100",
+ "cPDMVersionHighest=0x0100",
+ "cPDMVersionLowest=0x0100"
+ ]
+}
diff --git a/dev/pdm/src/pdm_pdf.cxx b/dev/pdm/src/pdm_pdf.cxx
new file mode 100644
index 00000000..4932923e
--- /dev/null
+++ b/dev/pdm/src/pdm_pdf.cxx
@@ -0,0 +1,7 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#include <pdm/pdf_pdm.hxx>