Document Meta Date Set pdf document meta data e.g. title, author etc.

You can easily set pdf document meta data. These are stored as settings and can be changed directly in config or using setSettings function.

  
                            $xinvoice = new Xinvoice();
                            //set document meta data, these are stored as settings and can be changed directly in config or using setSettings function.
                            //set title
                            $xinvoice->setSettings("title", "Invoice");
                            //set author
                            $xinvoice->setSettings("author", "ddeveloper");
                            //set creator
                            $xinvoice->setSettings("creator", "creator");
                            //set subject
                            $xinvoice->setSettings("subject", "Invoice for project");
                            //set keywords
                            $xinvoice->setSettings("keywords", "Invoice pdf");
                            echo $xinvoice->render();