pdf

  • 06 Nov

    Sign PDF with Timestamp from Timestamp Server Authority

    Sign PDF with Timestamp from Timestamp Server Authority (TSA) with Limagito File Mover version 2023

    In this example we are going to a sign a PDF that is both long-term validation (LTV) enabled and includes a validating timestamp from a Timestamp Server Authority (TSA).

    • As source we are going to use a Windows folder [WIN]:

    Limagito file mover Windows folder as source

    • Be sure to only allow .pdf files. Please set the Include Filename Filter:

    Limagito file mover file filter setup

    • Add ‘SIGN’ as Destination

    Limagito file mover sign pdf as destination

    • Setup ‘SIGN’ as Destination. The default setup has 5 ‘actions’:

    Limagito file mover sign pdf setup

    • Select the first Action ‘Load PDF to be signed’ and an extra tab will appear in the top menu bar. Select this ‘Pdf Load’ tab.

    The default setup here is %SFP%SFN which translates to Source File Path and Source File Name. So in most cases you don’t need to change this.

    • Back to the ‘Setup’ tab and select ‘Options for PDF signing’ in the Action list and next ‘Pdf Options’ Tab.
    1. Enable ‘Set Signing Certifcate V2 attribute’ (is enabled by default)
    2. Enable ‘Set Signing Time attribute’ (is enabled by default)
    3. Enable ‘Set Long-Term Validation (LTV Enabled)’
    4. Enable ‘Request timestamp froma TSA server’ (Timestamp Server Authority)
    5. Set the URL of the Timestamp server. We used:  http://timestamp.digicert.com
    6. Enable ‘Request TSA server to include its certificate in the timestamp response’
      • Ask the timestamp server to include its certificate in the timestamp token

    Limagito file mover sign pdf option

    • Back to the ‘Setup’ tab and select ‘Appearance of the PDF signature’ in the Action list and ‘Pdf Signature’ Tab.

    We used the ‘Image options’ to add a green check mark at the left side of the signature. We have a couple of built-in graphics available but also a custom JPG is possible.

    Limagito file mover sign pdf signature setup

    • Back to the ‘Setup’ tab and select ‘Load certificate for PDF signing’ in the Action list and ‘Pdf Certificate’ Tab.

    We are using a .pfx file which is a combined certificate and private key file type.

    Limagito file mover sign pdf certificate setup

    • Back to the ‘Setup’ tab and select ‘Sign and save the PDF’ in the Action list and ‘Pdf Signing’ Tab.

    Limagito file mover sign and save pdf

    • Next we enabled the Rule and triggered it manually:

    Limagito file mover enable and trigger rule

    • Result of the RunTime Log:

    Limagito file mover RunTime log result

    • Signed PDF result:

    Limagito file mover signed pdf example

    We have added quite some options already but we are open to new ideas. Please let us know if you need any help.

    #FileTransfer #pdf

    If you need any info about this new ‘Timestamp Server Authority’ option, please let us know.

    Best regards,

    Limagito Team

  • 01 Nov

    Digitally sign a pdf with Limagito File Mover

    Digitally sign a pdf with Limagito File Mover. In version 2023 we are adding a new option to make this possible (SIGN as Destination). You’ll be able to use pfx certificates and quite some customization will be available. Please let us know if you would be interested or need some custom options.

    At the moment we have 5 Actions:

    • Load PDF to be signed
    • Options for PDF signing
    • Appearance of the PDF signature
    • Load Certificate for PDF signing
    • Sign and save the PDF

     

    Digitally Sign a pdf

    • PDF Options Setup:

    Digitally Sign a pdf options

    • PDF Signature Setup

    Digitally Sign a pdf signature

    • PDF Certificate Setup:

    Digitally Sign a pdf certificate

    • PDF Signing Setup:

    Digitally Sign a pdf output

    #FileTransfer #PDF

    If you need any info about this new ‘digitally sign a pdf’ feature, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team 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 ,
1 2 3 4
SEARCH