19 #include <podofo/doc/PdfMemDocument.h> 20 #include <podofo/base/PdfString.h> 30 static ossimTrace traceDebug(
"ossimGeoPdfInfo:debug");
31 static ossimTrace traceDump(
"ossimGeoPdfInfo:dump");
36 m_PdfMemDocument(NULL)
54 PoDoFo::PdfError::EnableDebug(
false);
67 const std::string& connectionString)
88 static const char MODULE[] =
"ossimGeoPdfInfo::print";
102 if (obj->IsDictionary())
104 PoDoFo::PdfDictionary pdfDictionary = obj->GetDictionary();
106 PoDoFo::TKeyMap keyMap = pdfDictionary.GetKeys();
107 PoDoFo::TKeyMap::iterator it = keyMap.begin();
108 while (it != keyMap.end())
111 PoDoFo::PdfObject* refObj = it->second;
114 refObj->ToString(objStr);
116 if (refName ==
"CreationDate")
123 else if (refName ==
"ModDate")
151 out << prefix <<
"pagecount: " 154 if (!authorStr.
empty())
156 out << prefix <<
"author: " 157 << authorStr.
c_str() <<
"\n";
160 if (!creatorStr.
empty())
162 out << prefix <<
"creator: " 163 << creatorStr.
c_str() <<
"\n";
166 if (!titleStr.
empty())
168 out << prefix <<
"title: " 169 << titleStr.
c_str() <<
"\n";
172 if (!producerStr.
empty())
174 out << prefix <<
"producer: " 175 << producerStr.
c_str() <<
"\n";
178 if (!subjectStr.
empty())
180 out << prefix <<
"subject: " 181 << subjectStr.
c_str() <<
"\n";
184 if (!keywordsStr.
empty())
186 out << prefix <<
"keywords: " 187 << keywordsStr.
c_str() <<
"\n";
190 if (!createDate.
empty())
192 out << prefix <<
"creationdate: " 193 << createDate.
c_str() <<
"\n";
196 if (!modifyDate.
empty())
198 out << prefix <<
"modificationdate: " 199 << modifyDate.
c_str() <<
"\n";
205 << MODULE <<
" DEBUG Entered...\n";
ossimString substitute(const ossimString &searchKey, const ossimString &replacementValue, bool replaceAll=false) const
Substitutes searchKey string with replacementValue and returns a string.
virtual std::ostream & print(std::ostream &out) const
Print method.
static ossimString toString(bool aValue)
Numeric to string methods.
virtual bool open(const ossimFilename &file)
open method.
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
static ossimString downcase(const ossimString &aString)
ossimGeoPdfInfo()
default constructor
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
virtual ~ossimGeoPdfInfo()
virtual destructor
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
PoDoFo::PdfMemDocument * m_PdfMemDocument
std::basic_ostream< char > ostream
Base class for char output streams.