File Mover Blog

  • 27 Nov

    How-To Merge PDF Files using PDF as Destination

    Merge PDF Files

    A little how to merge pdf files using LimagitoX File Mover.

    We prepared the following Source folder with 8 single PDF pages numbered from 1 to 8.

    Selected WIN as Source and added the folder above as Input.

    In the Schedule Setup select the Advanced Tab. Set ‘Source File Sort Order’ to ‘Filename ascending (A to Z)’.

    Set the File Name Filter to only include PDF files ( *.pdf ). Just to be sure.

    Add PDF as Destination

    In the PDF Setup screen, add a PDF Action. Set this action to ‘Output PDF File’. We also changed the ‘Description’ to ‘Merge PDF Files’.

    Select the ‘Output’ Tab and set the Output Directory. Enable ‘Merge Pages’ and select ‘Last Ascending’ as ‘Insert Pages Position.

    Select the ‘Rename’ Tab and enable ‘Rename Files during Copy/Move’.

    Renaming Setup. This one is very important. We need a UNIQUE filename as result for all source pdf files you want to merge.

    In our example we want to merge: IntroXFM.1.pdf until IntroXFM.8.pdf

    So for all of these 8 files we need a unique output file. We separated the source file in 3 parts. Each part was separated by a dot. As replacement we took the first en third part which results in a unique filename for all of the 8 source files (IntroXM.pdf). Because due to this renaming it finds the file already in the destination and will merge the next source pdf file to it.

    Result: Multipage PDF file in the Output folder.

     

    If you need any help, just let us know. Don’t hesitate to ask.

    Regards,

    Limagito Team

    By Limagito-Team PDF ,
  • 19 Nov

    Pascal Script, Creating a text file

    Dear users,

    Simple Pascal Script to create a txt file containing the files handled by our file mover.

    1 Add PS as Destination

    2. Add the following Pascal Script. Don’t forget to adjust the ctOutputPath and ctOutputFilename.

    Var
      tmpList: TStringList;
      tmpFile: String;
    Const
      ctOutputPath = 'C:\Test\Out\';
      ctOutputFilename = 'Info.txt';
    Begin
      psExitCode:= 1;
      // Init Var
      tmpFile := ctOutputPath + ctOutputFilename;
    
      tmpList := TStringList.Create;
      Try
        psLogWrite(1, '', 'Add ' + psfilePath + psFileName + ' to ' + tmpFile);
        If FileExists(tmpFile) Then
          tmpList.LoadFromFile(tmpFile);
        tmpList.Append(psFilePath + psFilename);
        tmpList.SaveToFile(tmpFile);
      Finally
        tmpList.Free;
      End;
    End.
    

    Regards,
    Pascal

    By Limagito-Team Pascal Script ,
  • 17 Nov

    How-To Print PDF Files using PDF as Destination

    Print PDF Files

    In version v2019.11.17.0 we’ve added an option to print PDF files.

    Don’t forget to add a Filename filter so only PDF files as Source will be handled (*.pdf).

    PDF as Destination. Multiple ‘PDF Actions’ can be added. Each Action can be Enabled/Disabled.

    There is a possibility to select the pages within the PDF Source File.

    • All Pages
    • Odd Pages
    • Even Pages
    • Custom Pages

    Some info about the ‘Custom Pages’ selection.

    • Separate the Pages using a comma ( i.e. 1,2,3 )
    • 0 = last page
    • -1 = last page minus 1
    • m = middle page(s)

    > Print Page 1 and 2 of a multi page PDF file as Source

    > Print Setup options Tab

    You can use the Default printer or select on of the available printer devices on your system.

    After selection click on the ‘+’ button. This will add the selected printer to the Device Name field. The Device Name field is used as custom printer when ‘Use Default Printer’ is disabled.

    As always, feedback would be much appreciated.

    Regards,

    Limagito Team

    By Limagito-Team PDF ,
1 93 94 95 96 97 98 99 135
SEARCH