• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef QPDF_TOOLS_H_
2 #define QPDF_TOOLS_H_
3 
4 #include <qpdf/QPDFObjectHandle.hh>
5 #include <map>
6 #include <string>
7 
8 QPDFObjectHandle getMediaBox(QPDFObjectHandle page);
9 QPDFObjectHandle getCropBox(QPDFObjectHandle page);
10 QPDFObjectHandle getBleedBox(QPDFObjectHandle page);
11 QPDFObjectHandle getTrimBox(QPDFObjectHandle page);
12 QPDFObjectHandle getArtBox(QPDFObjectHandle page);
13 
14 QPDFObjectHandle makePage(QPDF &pdf,const std::map<std::string,QPDFObjectHandle> &xobjs,QPDFObjectHandle mediabox,const std::string &content);
15 
16 QPDFObjectHandle makeBox(double x1,double y1,double x2,double y2);
17 
18 #endif
19