Posted by Frank Caton on November 04, 2013 at 13:54:54:
In Reply to: Re: DOS Copy/Append pdf files posted by Barbara Brazil on November 01, 2013 at 08:19:04:
I tried the code below. It compiled fine but when I run it it says "can't run this type of file".
! //IB// SRC("PDFMERGE","XQS") OBJ("PDFMERGE", "xap")opt(L)
length dynamic & local TheFile$,TheFullPathIn$,TheFullPathOut$
TheFullPathIn$ = "G:\WEBSITE\XAP\xap-document\DNA.pdf"
TheFullPathOut$ = "G:\WEBSITE\XAP\xap-document\DNAx3.pdf"
TheFile$ = InputFile(TheFullPathIn$) ! TheFile$ now contains the contents of the entire file
TheFile$ = TheFile$ + TheFile$ + TheFile$
PrintFile TheFullPathOut$ TheFile$
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.