$extrastylesheet
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) |
PDF I/O routines.
pdf_header mln::io::pdf::get_header | ( | const std::string & | filename | ) |
Retrieve header in a pdf file.
void mln::io::pdf::load | ( | util::array< I > & | arr, |
const std::string & | filename, | ||
float | dpi | ||
) |
!
Load a multiple page PDF document using libpoppler.
[out] | arr | An array of images. |
[in] | filename | The name of the input file. |
[in] | dpi | Document resolution. |
Page numbering starts from 0.
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.
[out] | arr | An array of images. |
[in] | filename | The name of the input file. |
[in] | first_page | First page number. |
[in] | last_page | Last page number. |
[in] | dpi | Document resolution. |
Page numbering starts from 0.
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.
[out] | arr | An array of images. |
[in] | filename | The name of the input file. |
[in] | pages | An array of pages numbers. |
[in] | dpi | Document resolution. |
Page numbering starts from 0.
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.
[out] | ima | An image. |
[in] | filename | The name of the input file. |
[in] | page | The page number. |
[in] | dpi | Document resolution. |
Page numbering starts from 0.
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.
[out] | arr | An array of images. |
[in] | filename | The name of the input file. |
DPI resolution is set to 300. Page numbering starts from 0.
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.
[out] | arr | An array of images. |
[in] | filename | The name of the input file. |
[in] | pages | An array of pages numbers. |
DPI resolution is set to 300. Page numbering starts from 0.