Code Monkey home page Code Monkey logo

xdiff.ncc's Introduction

xdiff.ncc

A PDL file comparison tool, support comparison of PDF, Postscript and AFP documents. xdiff.ncc not only compares rendering bitmap of each page, but also analyzes and compares all contents in each page. For detail, see showcase below.

Online compare

http://pdfdict.com

Showcase

https://lumpchen.github.io/xdiff.ncc/

Testcase Control Test Report
simple text control.pdf test.pdf report.html
simple image control.pdf test.pdf report.html
table control.pdf test.pdf report.html
form control control.pdf test.pdf report.html
Indesign forms control.pdf test.pdf report.html
misc control.pdf test.pdf report.html

Build

You need Java JDK 7 (or higher) and Maven 3 http://maven.apache.org/ to build xdiff.ncc. The recommended build command is:

mvn clean install

The default build will compile the Java sources and package the binary classes into jar packages. See the Maven documentation for all the other available build options.

Binary download:

xdiff.jar, download both xdiff.jar and config.properties. xdiff.jar is an excutable java program, see detail in usage section.

Usage

Usage: java -jar xdiff.jar [options] <baseline-pdf> <test-pdf> <result-folder>

Options:
  -config                            : Comparison configuration file path.

Example: java -jar xdiff.jar c:/config.properties c:/xdiff/control.pdf c:/xdiff/test.pdf c:/xdiff/report

For Postscript file comparion, xdiff.ncc need GhostScript installed in advance, xdiff.ncc will use it as a Postscript to PDF convertor. Set GS_Path in config.properties:

GS_Path = C:/Program Files/gs/gs9.18/bin/gswin64c.exe

Resource

xdiff.ncc uses PDFBox for PDF interpreting and rendering. PDFBox is a project of the Apache Software Foundation http://www.apache.org/. xdiff.ncc is based on PDFBox 2.0.7.

Development plan

Generate PDF format report
Continuous comparison accross pages
header/footer setting
Automatically identify paragraphs and tables

Support

[email protected]

License

http://www.apache.org/licenses/LICENSE-2.0


xdiff.ncc 可用于PDL类型的文档比较,支持PDF,AFP,PostScript(需安装GhostScript)。

xdiff.ncc's People

Contributors

lumpchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xdiff.ncc's Issues

Test

This is a test issue.

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.