Posts

Showing posts from January, 2019

ColdFusion code to get current Domain

Below simple function can be used to find the current domain, by calling this wherever required. <cffunction name="GetCurrentDomain" access="public" output="false" returntype="string"        hint="Get Current Domain">                  <cfset domain="" />          <cfset proto ="http" />          <cfif CompareNoCase(CGI.HTTPS , 'on') EQ 0>               <cfset proto = "https" />          </cfif>          <cfset domain = proto&'://'&CGI.server_name&'/' />         <cfreturn domain /> /cffunction>

How to remove password from a PDF Document

Well, this is something which help you in usual days. If you want to save a PDF document which is password protected, you can try this simple steps. You just need Google Chrome browser in your system for this. 1. Open the PDF document by giving the password in Chrome. For this Open the Chrome browser first and open the PDF in it by pressing CTRL+O . 2. After the PDF is opened, you can just give print option by pressing CTRL+P 3. In the print page, just click on the change button on the left hand side. 4. When the new window comes, just select Save as PDF option and now you can save it anywhere and can be opened without password anymore.