$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PDF

Classes

struct  mln::io::pdf::pdf_header
 Store pdf file header. More...

Functions

pdf_header mln::io::pdf::get_header (const std::string &filename)
template<typename I >
void mln::io::pdf::load (util::array< I > &arr, const std::string &filename, float dpi)
template<typename I >
void mln::io::pdf::load (util::array< I > &arr, const std::string &filename, int first_page, int last_page, float dpi)
template<typename I >
void mln::io::pdf::load (util::array< I > &arr, const std::string &filename, util::array< int > pages, float dpi)
template<typename I >
void mln::io::pdf::load (Image< I > &ima, const std::string &filename, int page, float dpi)
template<typename I >
void mln::io::pdf::load (util::array< I > &arr, const std::string &filename)
template<typename I >
void mln::io::pdf::load (util::array< I > &arr, const std::string &filename, util::array< int > pages)

Detailed Description

PDF I/O routines.

Function Documentation

pdf_header mln::io::pdf::get_header ( const std::string &  filename)

Retrieve header in a pdf file.

template<typename I >
void mln::io::pdf::load ( util::array< I > &  arr,
const std::string &  filename,
float  dpi 
)

!

Load a multiple page PDF document using libpoppler.

Parameters
[out]arrAn array of images.
[in]filenameThe name of the input file.
[in]dpiDocument resolution.

Page numbering starts from 0.

template<typename I >
void mln::io::pdf::load ( util::array< I > &  arr,
const std::string &  filename,
int  first_page,
int  last_page,
float  dpi 
)

! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Load a range of pages from a PDF document using libpoppler.

Parameters
[out]arrAn array of images.
[in]filenameThe name of the input file.
[in]first_pageFirst page number.
[in]last_pageLast page number.
[in]dpiDocument resolution.

Page numbering starts from 0.

template<typename I >
void mln::io::pdf::load ( util::array< I > &  arr,
const std::string &  filename,
util::array< int pages,
float  dpi 
)

! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Load specific pages from a PDF document using libpoppler.

Parameters
[out]arrAn array of images.
[in]filenameThe name of the input file.
[in]pagesAn array of pages numbers.
[in]dpiDocument resolution.

Page numbering starts from 0.

template<typename I >
void mln::io::pdf::load ( Image< I > &  ima,
const std::string &  filename,
int  page,
float  dpi 
)

! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Load a specific page from a PDF document using libpoppler.

Parameters
[out]imaAn image.
[in]filenameThe name of the input file.
[in]pageThe page number.
[in]dpiDocument resolution.

Page numbering starts from 0.

template<typename I >
void mln::io::pdf::load ( util::array< I > &  arr,
const std::string &  filename 
)

! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Load a multiple page PDF document using libpoppler.

Parameters
[out]arrAn array of images.
[in]filenameThe name of the input file.

DPI resolution is set to 300. Page numbering starts from 0.

template<typename I >
void mln::io::pdf::load ( util::array< I > &  arr,
const std::string &  filename,
util::array< int pages 
)

! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Load specific pages from a PDF document using libpoppler.

Parameters
[out]arrAn array of images.
[in]filenameThe name of the input file.
[in]pagesAn array of pages numbers.

DPI resolution is set to 300. Page numbering starts from 0.