ServiceNowDevProgram / code-snippets

ServiceNow's Code Snippets community repository, managed by the Developer Program and the sndevs community.
https://github.com/ServiceNowDevProgram/Hacktoberfest
281 stars 639 forks source link

Creating PDF from a Knowledge Article, using OOTB API #1505

Closed manrick closed 2 hours ago

manrick commented 1 day ago

There is an easier way to generate PDF from a Knowledge Article using OOTB API, called PDFGenerationAPI

I think it's always better to use OOTB solutions, if it's available and meets the requirements.

am-shakeel commented 19 hours ago

Hi @manrick , Thanks for the PR! While using OOB features is a great approach, Hacktoberfest encourages original contributions

manrick commented 19 hours ago

Hi @am-shakeel, what you wrote is true and I agree with you, but in this case I have a bit different view. There is a solution on the Github, which is not bad, but there is a better one. ServiceNow always recommends to stay as close as the OOTB solution as it is possible. I have uploaded this code snippet, because I wanted to highlight that there is another solution for exporting KB article into PDF, which might be better or easier. If you don't agree with me, please reject this pull request and I will submit another one.