Trying to find a simple way to add via hook possibly within mymodulename_search_api_solr_search_results_alter to hide a specific site page from internal search results. I'm finding suggestions for modules but is there a simpler way to hide a page?
I have to merge contents from few nodes and write them in a file. I have to then download the file as pdf. Everything needs to be done programmatically.
I have searched for examples to help me with it, but have not found any helpful ones.
Could you please let me know how to write the contents in a file and then let a user to download the file as pdf?