pdf

  • 05 May

    Check pdf pagewidth in order to move files to a different folder

    Q: A big help would also be a width check. If pdf width > 300 mm move to another folder. Then I could use some system tools on the pdf.

    A: In version v2022.5.5.0 we added some Pascal Script function to achieve this.

    -First we added two WIN destinations.

    • Destination with ID1 should contain the pdf files with a width <= 300 points
    • Destination with ID2 should contain the pdf files with a width > 300 points

    Limagito File Mover multiple Windows destinations

    -Next you’ll some Pascal Script

    Limagito FileMover Pascal Script option

    -Please Add and Enable ‘On Destinations

    Var
      tmpCount: Integer;
      tmpHeight, tmpWidth: Double;
      tmpFile: String;
    Const
      ctMaxWidth = 300;  
    Begin
      psExitCode:= -1;
      // ... add your code here
      tmpFile := psFilePath + psFileName;
      If psPdfGetPageCount(tmpFile, '', tmpCount) Then
        psLogWrite(1, '', 'Page Count of ' + tmpFile +' : ' + IntToStr(tmpCount));
      If psPdfGetPageHeight(psFilePath+psFileName, '', 1, tmpHeight) Then
        psLogWrite(1, '', 'Page Height of ' + tmpFile + ' : ' + FloatToStr(tmpHeight));
      If psPdfGetPageWidth(psFilePath+psFileName, '', 1, tmpWidth) Then
      Begin
        psLogWrite(1, '', 'Page Width of ' + tmpFile + ' : ' + FloatToStr(tmpWidth));
        // Check Width
        // Pdf Files <= ctMaxWidth should go to DestinationID 1 
        // Pdf Files > ctMaxWidth should go to DestinationID 2    
        If (psDestinationID = 'ID1') And (tmpWidth <= ctMaxWidth) Then psExitCode := 1; 
        If (psDestinationID = 'ID2') And (tmpWidth > ctMaxWidth) Then psExitCode := 1;  
      End
      Else
      begin
        // Error Loading Pdf File, set psExitCode to 0
        psExitCode := 0;
      End;   
    End.

    Limagito File Mover Pascal Script

    – RunTime Log Result:

    Limagito File Mover RunTime Log result

    #Filetransfer #PDF

    If you need any info about this ‘Check pdf pagewidth’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Pascal Script PDF ,
  • 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-Team PDF Q&A ,
  • 22 Mar

    PDF as Destination, new rotation option added in LimagitoX File Mover

    In version v2020.3.22.0 we added new PDF as Destination options (Page Boxes, Rotation, ..).

    • You can add multiple PDF Actions. These actions will be processed as they appear in the list (Top to Bottom).

    LimagitoX-Pdf-Rotation-Pages

    • The first rotation action setup is to rotate all Odd pages 90°.

    LimagitoX-Pdf-Rotation-Pages-Setup

    • In this example the second rotation entry will rotate all Even pages 270°.

    • The third action will change the dimensions of the Media Box.

    LimagitoX-Pdf-Page-Boxes

    • It will read the dimensions of the Trim Box and use them for the Media Box.

    LimagitoX-Pdf-Page-Boxes-Setup

    • The last action will save the result to the output PDF file.

    If you need any help, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team PDF , , , , ,
1 2 3 4
SEARCH