HaruDoc::setInfoAttr

(PECL haru >= 0.0.1)

HaruDoc::setInfoAttrSet the info attribute of the document

说锟斤拷

HaruDoc::setInfoAttr ( int $type , string $info ) : bool

Defines an info attribute. Uses the current encoding of the document.

锟斤拷锟斤拷

type

The type of the attribute. Can be one of the following:

  • HaruDoc::INFO_AUTHOR
  • HaruDoc::INFO_CREATOR
  • HaruDoc::INFO_TITLE
  • HaruDoc::INFO_SUBJECT
  • HaruDoc::INFO_KEYWORDS

info

The value of the attribute.

锟斤拷锟斤拷值

Returns TRUE on success.

锟斤拷锟斤拷锟届常

锟斤拷锟斤拷锟斤拷锟斤拷时锟阶筹拷 HaruException 锟届常锟斤拷

锟轿硷拷