split

  • 03 Nov

    Q&A 29: Is it possible to split out Page 1&2 of a PDF

    Q: Is it possible to split out Page 1&2 of a PDF, rename it and move it to a location but also rename the rest of the PDF and move that to a different location?

    A: Yes this is possible. We’ve added a couple of screenshits to get you started.

    >Add PDF as Destination:

    Limagito File Mover PDF as Destination

    > You’ll need to add 2 PDF Actions. The first Action will split the first 2 pdf files to the output directory.

    Limagito File Mover PDF as Destination Setup

    Limagito File Mover PDF output action setup

    >The second Action will output all pages, except the first and second, to a single pdf file in the output directory.

    Limagito File Mover PDF as Destination setup

    Limagito File Mover PDF Output Action Setup

    >Optionally you can rename the output pdf files:

    Limagito File Mover PDF rename option

    > We renamed IntroXFM to Output in our example:

    Limagito File Mover PDF rename setup

    > The source is a WIN directory. It contains a multipage pdf file called IntroXFM.pdf.

    Limagito File Mover PDF source files

    > The result in the output directory:

    Limagito File Mover PDF destination files

    • Output.01.pdf contains the first pdf page from multipage pdf source file
    • Output.02.pdf contains the second pdf page from multipage pdf source file
    • Output.pdf contains all pdf pages from multipage pdf source file except first and second

    > RunTime Log result:

    Limagito File Mover PDF RunTime log

    If you need any help with the PDF as Destination option, please let us know.

    Best Regards,

    Limagito Team

    By Limagito Q&A ,
  • 10 Nov

    How-To Split PDF Pasges using PDF as Destination

    PDF as Destination option

    Regarding version v2019.11.10.0

    On request we’ve added PDF as Destination. The primary goal was to split the pages of a multi page PDF file.

    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. At the moment only ‘Output PDF File’ as Action is available. 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)

    > Split first and last page of Source multi page PDF file

    PDF Split Pages Setup

    > Split middle page(s) of Source multi page PDF file

    PDF Split Pages Setup

    When splitting a multi page pdf file a pre extension page number will be added to the output filename.

    i.e. MultiPage PDF File as Source:

    • Source Filename: MyMultiPagePdfFile.pdf
    • 150 pages

    > Resulting Output File when ‘Split Pages Number Length = 0 (automatic number length)

    • MyMultiPagePdfFile.001.pdf
    • ..
    • MyMultiPagePdfFile.150.pdf

    > Resulting Output File when ‘Split Pages Number Length = 1 (minimum number length of 1)

    • MyMultiPagePdfFile.1.pdf
    • ..
    • MyMultiPagePdfFile.150.pdf

    > Resulting Output File when ‘Split Pages Number Length = 2 (minimum number length of 2)

    • MyMultiPagePdfFile.01.pdf
    • ..
    • MyMultiPagePdfFile.150.pdf

    If you need another type of split pages naming then you can use the File Renaming option (Rename Tab).

    When ‘Split Pages’ is disabled a single multi page will be created in the output directory. It will contain the selected pages of the source file. Suppose your custom selection is set to ‘0,1,m’ then the multi page output file will contain the first, the last and the middle page(s) of the Source multi page file.

    As always, feedback would be much appreciated.

    Regards,

    Limagito Team

    By Limagito How-to ,
  • 28 Oct

    How-To Split a multipage PDF into single pages using Pascal Script

    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

    By Limagito How-to , ,