@ECHO OFF
REM -------------------------------------------------------------------------
REM AFP2web Demo
REM FirstData (UK)
REM
REM process the AFP spool input as given below
REM - Split each input page group as one PDF output
REM - Protects the output PDF with password
REM - Name the PDF output uniquely using the document index "Policy"
REM - Store each PDF output in a unique sub directory, which has been named with following syntax
REM -- <input file basename>/<YYYYMMDD>_<document id>/
REM
REM Example:
REM - Assuming the input filename is "samples/insure.afp" and current date is "17.04.2025"
REM - Outputs will be generated in a directory structure as given below
REM   <output path>\
REM                 insure.afp\
REM                            20250417_000001\
REM                                            324-1443255-11.pdf
REM -------------------------------------------------------------------------

afp2web.exe -q2 -c -doc_cold -sp:fddemo.pm samples/insure.afp

PAUSE
EXIT