Ipelib
Public Member Functions | List of all members
ipe::PdfFile Class Reference

#include <ipepdfparser.h>

Public Member Functions

bool parse (DataSource &source)
 
bool parseObjectStream (const PdfDict *d)
 
const PdfObjobject (int num) const noexcept
 
const PdfDictcatalog () const noexcept
 
const PdfDictpage () const noexcept
 
std::unique_ptr< const PdfObjtake (int num)
 

Detailed Description

All information obtained by parsing a PDF file.

Member Function Documentation

◆ parse()

bool PdfFile::parse ( DataSource source)

◆ parseObjectStream()

bool PdfFile::parseObjectStream ( const PdfDict d)

◆ object()

const PdfObj * PdfFile::object ( int  num) const
noexcept

Return object with number num.

Referenced by ipe::Document::formatFromFilename().

◆ catalog()

const PdfDict * PdfFile::catalog ( ) const
noexcept

Return root catalog of PDF file.

References ipe::PdfObj::dict().

◆ page()

const PdfDict * PdfFile::page ( ) const
noexcept

Return first page of the document.

References ipe::PdfObj::array(), ipe::PdfObj::dict(), ipe::PdfDict::get(), and ipe::PdfArray::obj().

◆ take()

std::unique_ptr< const PdfObj > PdfFile::take ( int  num)

Take ownership of object with number num, remove from PdfFile.

Referenced by ipe::PdfResources::PdfResources().


The documentation for this class was generated from the following files: