Phoca PDF Document Author

Phoca PDF - creating PDF documents in Joomla! CMS
JCm21884
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Feb 2015, 21:42

Phoca PDF Document Author

Post by JCm21884 »

When a PDF document is created, certain PDF properties are populated.
* Title - Joomla Article Title
* Subject - Seems to come from the Site Meta Description
* Creator - Phoca PDF
* Author - blank

I believe the Subject could come from the Article's Meta Description, or Keywords.
The Author should come from the Article's Author.

I do not see a way to change any of the above in the Plugin.
I would be fine with an override or even modifying a file (knowing with updates it would need changing).

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48939
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca PDF Document Author

Post by Jan »

Hi, in Phoca PDF you can set that the header is fully rendered by Joomla (there we have no option to edit it) or you can add completely your own header. If the first is seleted, unfortunatelly, there is no way to edit it as the full header is loaded from Joomla.

Jan
If you find Phoca extensions useful, please support the project
JCm21884
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Feb 2015, 21:42

Re: Phoca PDF Document Author

Post by JCm21884 »

Jan,

Thanks for the response. I was looking for a way to add the Author to the rendered PDF document Properties and not as a header in the Document.

I did find that adding a $pdf->SetAuthor('The author name'); statement after the $pdf->SetCreator(PDF_CREATOR); (two places) in the phocapdfrender.php file will accomplish this. I know this is hard-coded and will have to be re-edited anytime their is an update. Not being a PHP programmer, I do know the logic of the two locations. :-).

Again, thank you!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48939
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca PDF Document Author

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply