Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created July 22, 2024 21:02
Show Gist options
  • Save cfjedimaster/34b0ad5b3f011d0175da60089a233f9e to your computer and use it in GitHub Desktop.
Save cfjedimaster/34b0ad5b3f011d0175da60089a233f9e to your computer and use it in GitHub Desktop.
<!--- first, read in the source --->
<cfpdf action="read" source="source.pdf" name="source">
<!--- add a header --->
<cfpdf action="addHeader" source="source" text="Raymond Camden" align="right">
<!--- merge with to merge --->
<cfpdf action="merge" name="merged">
<cfpdfparam source="source">
<cfpdfparam source="./tomerge.pdf">
</cfpdf>
<!--- protect --->
<cfpdf action="protect" source="merged" newUserpassword="12345" name="protected">
<cfcontent type="application/pdf" reset="true" variable="#toBinary(protected)#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment