Jump to content

Possible to pass variable to output files?


IndexxPrep

Recommended Posts

Posted

Using Fusion Pro Desktop, is it possible to output to multiple PDFs and name the PDFs with one of my fields?

 

A customer has requested PDFs of letters we printed, separate PDFs for every record, named with a client account number. Is there any way I can generate that from Fusion, or will I need to work out some batch-renaming magic after the fact? I can output all my records to individual PDFs with no problem, it's just the naming part that's got me stumped. Thanks.

Posted

Hello

Yes this can be done. Create a "CallBack" rule and use the following script:

 

JAVASCRIPT RULE TO DYNAMICALLY NAME OUTPUT FILES WHEN CHUNKING

 

new_name = Field("Name") + ".pdf"

FusionPro.Composition.outputFileName = new_name

return 0;

//Note: Rule must be a Callback rule : “OnNewOutputFile”

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...