tool.pdf

Class Diff

public class Diff extends Object

Compare two PDFs for structural equivalence at the object level.

Version: $Revision: 1.23 $ $Date: 2003/08/27 01:52:29 $

Field Summary
static StringUSAGE
static StringVERSION
Constructor Summary
Diff()
Method Summary
voiddefaults()
booleandiff(File file1, File file2)
Compares two PDF files and returns true iff they are structurally equivalent.
booleandiff(PDFReader pdfr1, PDFReader pdfr2)
Compares two PDFs and returns true iff they are structurally equivalent.
static voidmain(String[] argv)
voidsetIgnoreDates(boolean b)
voidsetOut(PrintStream out)
Split zaps link annotations to excluded pages.
voidsetPassword1(String password)
voidsetPassword2(String password)
voidsetRanges(String range1, String range2)
Ranges must have the same number of pages.

Field Detail

USAGE

public static final String USAGE

VERSION

public static final String VERSION

Constructor Detail

Diff

public Diff()

Method Detail

defaults

public void defaults()

diff

public boolean diff(File file1, File file2)
Compares two PDF files and returns true iff they are structurally equivalent.

diff

public boolean diff(PDFReader pdfr1, PDFReader pdfr2)
Compares two PDFs and returns true iff they are structurally equivalent.

main

public static void main(String[] argv)

setIgnoreDates

public void setIgnoreDates(boolean b)

setOut

public void setOut(PrintStream out)
Split zaps link annotations to excluded pages.

setPassword1

public void setPassword1(String password)

setPassword2

public void setPassword2(String password)

setRanges

public void setRanges(String range1, String range2)
Ranges must have the same number of pages. If one range is null it is set to the other range.