johnfercher / maroto

A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.
https://maroto.io
MIT License
1.48k stars 172 forks source link

SetKeywords #419

Closed lordofscripts closed 6 days ago

lordofscripts commented 2 weeks ago

Although the underlying provider FPDF has a SetKeywords method, the Maroto/V2 library doesn't seem to expose it. How can I set the PDF document keywords?

johnfercher commented 2 weeks ago

There is no way to do that, we can add this in the Builder. This seems to be an easy change.

  1. Create a new method in Builder.
  2. Use the builder config in provider.
  3. Call SetKeywords in maroto.