cpdf.cc File Reference

#include "kernel/static.h"
#include "kernel/cobject.h"
#include "kernel/cobjecthelpers.h"
#include "kernel/cpdf.h"
#include "kernel/cpage.h"
#include "kernel/factories.h"
#include "utils/debug.h"
#include "kernel/cpageattributes.h"
#include "kernel/pdfedit-core-dev.h"
#include "kernel/streamwriter.h"

Classes

class  pdfobjects::PdfFileDeleter

Namespaces

namespace  pdfobjects
namespace  pdfobjects::utils

Defines

#define POSITION_IN_RANGE(pos)   (((pos) >= 1) && (pos)<=getPageCount())

Typedefs

typedef std::vector
< boost::shared_ptr
< pdfobjects::IProperty > > 
ChildrenStorage

Functions

ostream & pdfobjects::utils::operator<< (ostream &stream, PageTreeNodeType nodeType)
shared_ptr< CDict > pdfobjects::utils::getPageTreeRoot (const boost::shared_ptr< CPdf > &pdf)
PageTreeNodeType pdfobjects::utils::getNodeType (const boost::shared_ptr< IProperty > &nodeProp) throw ()
template<typename Container >
void pdfobjects::utils::getKidsFromInterNode (const boost::shared_ptr< CDict > &interNodeDict, Container &container) throw ()
size_t pdfobjects::utils::getKidsCount (const boost::shared_ptr< IProperty > &interNodeProp, PageTreeNodeCountCache *cache) throw ()
boost::shared_ptr< CDict > pdfobjects::utils::findPageDict (const boost::shared_ptr< CPdf > &pdf, const boost::shared_ptr< IProperty > &pagesDict, size_t startPos, size_t pos, PageTreeNodeCountCache *cache)
size_t pdfobjects::utils::searchTreeNode (shared_ptr< const CPdf > pdf, shared_ptr< CDict > superNode, shared_ptr< CDict > node, size_t startValue, PageTreeNodeCountCache *cache)
size_t pdfobjects::utils::getNodePosition (const shared_ptr< CPdf > &pdf, const shared_ptr< IProperty > &node, PageTreeNodeCountCache *cache)
bool pdfobjects::utils::isNodeDescendant (const boost::shared_ptr< CPdf > &pdf, const IndiRef &parent, const shared_ptr< CDict > &child)
bool pdfobjects::utils::isEncrypted (const boost::shared_ptr< CPdf > &pdf)
void pdfobjects::deleteResolveRefStorage (ResolvedRefStorage *storage)
void pdfobjects::removeResolveRefMapping (const cpdf_id_t &orignalId, ResolvedRefMapping &map, const cpdf_id_t &id)
cpdf_id_t pdfobjects::getIdFromCPdf (const CPdf *pdf)
CPdf * pdfobjects::getCPdfFromId (const cpdf_id_t &id)
IndiRef pdfobjects::createMapping (ResolvedRefStorage &container, XRefWriter &xref, IndiRef &oldRef, ResolvedRefEntry **entry)

Define Documentation

#define POSITION_IN_RANGE ( pos   )     (((pos) >= 1) && (pos)<=getPageCount())

Typedef Documentation

typedef std::vector<boost::shared_ptr<pdfobjects::IProperty> > ChildrenStorage