Sha256: 0ea71dbd223f20b13844f162c792d5ffa9166aa8312cbe7d516d5bf282fd5bed
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
#ifndef __PDFIUM_H__ #define __PDFIUM_H__ #include <stdlib.h> #include <inttypes.h> #include <iostream> #include <fpdf_doc.h> #include <fpdf_save.h> #include <fpdf_edit.h> #include <fpdf_text.h> #include <fpdfdoc/fpdf_doc.h> #include <fpdfapi/fpdf_page.h> #include <fpdfapi/fpdf_pageobj.h> #include <fpdftext/fpdf_text.h> #include <FreeImage.h> #include "page_wrapper.h" #include "page_object_wrapper.h" #include "document_wrapper.h" // auto generated by mkmf #include "extconf.h" extern "C" { #include "ruby.h" } #ifdef DEBUG #define DEBUG_MSG(str) do { std::cout << str << std::endl; } while( false ) #else #define DEBUG_MSG(str) do { } while ( false ) #endif void define_bookmark_class(); void define_document_class(); void define_page_class(); void define_image_class(); // a utility method to extract the reference to the FPDF_DOCUMENT from the Ruby/C++ wrapping CPDF_Page* RB2PG(VALUE RB_Page); CPDF_Document* RB2DOC(VALUE RB_DocumentWrapper); CPDF_ImageObject* RB2IMG(VALUE RB_Image); const char* PDFiumLastErrorString(); class RB { public: static VALUE PDFium(); static VALUE Bookmark(); static VALUE Document(); static VALUE Page(); static VALUE BookmarkList(); static VALUE BoundingBox(); static VALUE StringIO(); static VALUE Image(); static VALUE PageList(); static VALUE ImageList(); static VALUE type(VALUE object); static VALUE to_string(const CFX_WideString &widestring); static ID to_s(VALUE object); static VALUE get_option(VALUE hash, const std::string &key); }; #endif // __PDFIUM_H__
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pdfium-0.0.2 | ext/pdfium_ext/pdfium.h |