AnsweredAssumed Answered

Using MBS PDFKit.Combine - Delete Uncombined PDF's

Question asked by JFWX5 on Mar 5, 2018
Latest reply on Mar 5, 2018 by monkeybreadsoftware

Hi

 

I'm using the MBS PDFKit.Combine function

 

#Start with blank list

Set Variable [$list; Value:""]

#Load PDF from container

Go to Record/Request/Page [First]

Set Variable [$destPage; Value:1]

Loop

    Set Variable [$r; Value:MBS("PDFKit.OpenContainer"; Merge PDFs::InputPDF)]

    If [MBS("IsError") = 0]

Set Variable [$list; Value:$list & $r & ¶]

    End If

    Go to Record/Request/Page [Next; Exit after last]

End Loop

Set Field [Merge PDFs::FinalPDF; MBS("PDFKit.Combine"; "merge.pdf"; $list)]

Set Variable [$r; Value:MBS("PDFKit.Release"; $list)]

 

 

Which I understand,

 

So say I have three records containing pdf's, after running the script I now have four active records.  My question is how do I delete all the records in the found set except for the for the one containing the combined pdf?

 

 

Thank you

 

 

John

 

 

 

 

Outcomes