接受Modal后自动打印CF / PDF

时间:2015-10-05 18:11:20

标签: jquery coldfusion

我有一个打印标签按钮,用于打开模态并询问打印标签的开头数。接受后我希望它将输入数字作为变量然后开始打印标签,而不是通过从pdf自动打印并向他们显示与打印标签按钮相同的屏幕而向客户显示任何屏幕。对此的任何帮助将不胜感激。

the parsing suite

HTML

$(document).ready(function(){
    // What happens when a user hits the "Accept" button on the dealer form
    $(".label_accept").click(function(){
        $('#LabelMaker').modal('hide');

    });

});

JS

<cfset tempFilePath = "/mytemppath.pdf">
<cfpdfform source="forms/DealerLabel.pdf" action="populate" destination="#tempFilePath#">

    <cfpdfformparam name="One" value="<!---VariableSomeHow--->">
</cfpdfform>
<cfheader name="Content-Disposition" value="attachment;filename=LabelMaker.pdf">
<cfcontent type="application/pdf" file="#tempFilePath#" deleteFile="true">

coldfusionpdf

{{1}}

0 个答案:

没有答案
相关问题