Dear users,
Regarding v2019.10.28.0
We’ve added a Pascal Script Function that will let you split a multipage pdf file into single page pdf files.
Don’t forget to adjust the ctOutputFolder in the script.
– psPdfSplitPages function will split a multipage pdf to single pdf pages
Function psPdfSplitPages(SourceFile, DestinationFolder: String; PadLength: Integer): Boolean;
PadLength: 0 = automatic
i.e.
Const ctOutputFolder = 'C:\Test\Out_PDF\'; Begin psExitCode:= 0; // ... add your code here If psPdfSplitPages(psFilePath + psFileName, ctOutputFolder, 0) Then Begin psExitCode:= 1; psLogWrite(1, '', psFilePath + psFileName + ' Split Success'); End Else psLogWrite(1, '', psFilePath + psFileName + ' Split Error'); End.
If you need any help, just let us know.
Regards,
Limagito Team