Giter Site home page Giter Site logo

lucab85 / pdf-processor Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 50 KB

Export text in PDF files to CSV using pattern matching.

Home Page: https://github.com/lucab85/PDF-processor

License: MIT License

Java 99.39% Shell 0.61%
java pdf pdf-converter pdfbox apache csv pattern-matching pattern-recognition export-excel

pdf-processor's Introduction

PDF processor

Java desktop application to extract a sting matching a pattern from a PDF file. Every PDF input files is transliterated to text (Apache PDFBox) and then, using pattern matching, you are able to search anything you want. The output is a CSV file (Apache Commons CSV) with patterns in columns and data of the file in rows.

Usage

  1. Setup the required library
  2. Prepare the .property file
  3. Launch the application

Description of property file fields

  • debug=false - [true/false] enable/disable debug print messages
  • rotation_degree=0 - [0-360] rotate the PDF input file of the specified degrees before transliterate it
  • TXT_enabled=false - [true/false] enable/disable TXT transliterated text file creation (same filename of source)
  • TXT_encoding=UTF-8 - encoding of TXT file
  • TXT_append=false - [true/false] overwrite (default) or append
  • ETL_from=\r\n|\r|\n - [regex] transform the selected text with pattern
  • ETL_to=**\ ** - [text] transform the selected text to text
  • filename_entry=filename - CSV column with filename
  • CSV_filename=output.csv - output filename
  • patterns_prefix=pattern. - prefix of the following patterns
  • pattern.1=[text[A-z]*, text2[A-z]*] - list of regex to match in order for column "1"
  • copyPDF=true - [true/false] enable/disable copyPDF feature
  • PDFformat=[1, 2] - [list] copyPDF: filename format (use field 1 and 2)
  • copyPDFsep=**\ ** - [text] copyPDF: filename fiels separator (default space)
  • copyPDFETL_from=/ - [regex] copyPDF: replace source regex (default dash not allowed in filename)
  • copyPDFETL_to=. - [text] copyPDF: replace destination string (default dot)

Dependency

Main library components:

Complete list of "lib/*.jar":

libs/commons-csv-1.4.jar
libs/commons-io-2.5.jar
libs/commons-logging-1.2.jar
libs/fontbox-2.0.6.jar
libs/pdfbox-2.0.6.jar
libs/pdfbox-tools-2.0.6.jar

pdf-processor's People

Contributors

lucab85 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

juangarcia4ks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.