Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to Compare pdf file and text file in 2 different folder using PDI?

  1. #1
    Join Date
    Jun 2017
    Posts
    25

    Default How to Compare pdf file and text file in 2 different folder using PDI?

    As stated in the title, I need to compare pdf and text file to ensure both file have the same name before ftp it.

    I try using the file compare in job step, but it isn't suitable for my project, as i generate the text file from the db and the filename of the textfile and pdf is depend on the field in the table. The reason I'm doing this is because i want to ensure that during the ftp process, the text and pdf file will be a pair.

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Get-File-Names should be your starting point.
    FileNameUtils (Apache Commons) can be used to extract the basename.
    Adjust to your requirements.
    Attached Files Attached Files
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Jun 2017
    Posts
    25

    Default

    Thanks you! Its work well with what I need to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.