libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Document_information Class Reference

Classes

struct  Create_new
 
struct  Internal
 Holds document information internal data. More...
 

Public Member Functions

 Document_information (Create_new const &, Document &)
 
Documentdocument ()
 Access the owning document.
 
Document const & document () const
 Access the owning document.
 
Carousel::Object object ()
 Get the object for the document information.
 
optional< string > title () const
 Access the title.
 
void set_title (optional< string >)
 Set or remove the title.
 
optional< string > author () const
 Access the author.
 
void set_author (optional< string >)
 Set or remove the author.
 
optional< string > subject () const
 Access the subject.
 
void set_subject (optional< string >)
 Set or remove the subject.
 
optional< string > keywords () const
 Access the keywords.
 
void set_keywords (optional< string >)
 Set or remove the keywords.
 
optional< string > creator () const
 Access the creator.
 
void set_creator (optional< string >)
 Set or remove the creator.
 
optional< string > producer () const
 Access the producer.
 
void set_producer (optional< string >)
 Set or remove the producer.
 

Static Public Attributes

static constexpr Create_new const create_new {}
 

Private Member Functions

 Document_information (Document_information const &)=delete
 
 Document_information (Document_information &&)=delete
 
Document_informationoperator= (Document_information const &)=delete
 
Document_informationoperator= (Document_information &&)=delete
 

Private Attributes

unique_ptr< Internalinternal
 

Member Function Documentation

◆ document() [1/2]

Document & Art::Paperback::Document_information::document ( )

Access the owning document.

◆ document() [2/2]

Document const & Art::Paperback::Document_information::document ( ) const

Access the owning document.

◆ object()

Carousel::Object Art::Paperback::Document_information::object ( )

Get the object for the document information.

◆ title()

std::optional< std::string > Art::Paperback::Document_information::title ( ) const

Access the title.

Returns the title of the document, if available.

◆ set_title()

void Art::Paperback::Document_information::set_title ( optional< string > )

Set or remove the title.

If value is nullopt the title is removed.

Parameters
valueThe new title.

◆ author()

std::optional< std::string > Art::Paperback::Document_information::author ( ) const

Access the author.

◆ set_author()

void Art::Paperback::Document_information::set_author ( optional< string > )

Set or remove the author.

If value is nullopt the author is removed.

Parameters
valueThe new author.

◆ subject()

std::optional< std::string > Art::Paperback::Document_information::subject ( ) const

Access the subject.

◆ set_subject()

void Art::Paperback::Document_information::set_subject ( optional< string > )

Set or remove the subject.

If value is nullopt the subject is removed.

Parameters
valueThe new subject.

◆ keywords()

std::optional< std::string > Art::Paperback::Document_information::keywords ( ) const

Access the keywords.

◆ set_keywords()

void Art::Paperback::Document_information::set_keywords ( optional< string > )

Set or remove the keywords.

If value is nullopt the keywords are removed.

Parameters
valueThe new keywords.

◆ creator()

std::optional< std::string > Art::Paperback::Document_information::creator ( ) const

Access the creator.

◆ set_creator()

void Art::Paperback::Document_information::set_creator ( optional< string > )

Set or remove the creator.

If value is nullopt the creator is removed.

Parameters
valueThe new creator.

◆ producer()

std::optional< std::string > Art::Paperback::Document_information::producer ( ) const

Access the producer.

◆ set_producer()

void Art::Paperback::Document_information::set_producer ( optional< string > )

Set or remove the producer.

If value is nullopt the producer is removed.

Parameters
valueThe new producer.