There are two issues:
The first is I am hoping to get some guidance on how best to handle the flow for my use case. I am working on incorporating docusign into one of the coldufison sites I've inherited. The first step was to figure out how to generate a pdf with the information I need. The type of document I need to capture signatures for is a lien release. There can be 50-60 rows of data in this coldfusion page that are set to break after each row. <CFDocument> makes it easy to create the PDF but when the popup window appears that used to show the coldfusion page with the lien releases it appears as a blank page because I've wrapped that page in the cfdocument tags. The PDF does get created. My question here is, how can I generate the PDF without opening the page in a popup window? Is there a way to do that? I want to generate the PDF then display the coldfusion page with the data. I then want to have a button that will initiate the call to the docusign server and be able to send that pdf that I've stored on the server as part of the request. I don't know how to create the PDF without opening the page that is wrapped in the cfdocument tags which at this point ends up being a blank page.
The second issue is this.
I am using the code below to create a page break. It works perfectly except that a blank page does get created at the end of the document. Does anyone know of a method I can use to keep the blank page from being created?
<cfif AmountToPayOnNextCheck.recordcount gt rowcount>