Depending on what you want to compare, you could have
some options...

if you wanted to compare the text, you could use some
form of text extraction from JPEDAL, PdfBox, or one
more I can never think of... and compare the text, or
generate checksums from text and compare those (works
for me).

if you wanted to compare exact visual representation,
you could use JPEDAL or ghostScript to convert the
PDFs to images and compare those, or again, generated
checksums.

-Matt

--- Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
> At 9:47 PM +0200 7/16/03, Andreas Probst wrote:
> >I'm developing an application which creates PDF
> files.
> 
>       OK.
> 
> 
> >To  automatically test this application, I'd need
> to compare PDF
> >documents, i.e. compare the current output of the
> app to once
> >created and verified reference files.
> 
>       What would you compare?  Visible output? 
> Structure?  Both?
> 
> 
> >  Unfortunately two PDF  files seem to be never
> binary equal, even if 
> >they look the same  on the screen or on paper.
> 
>       Correct.   PDF files are quite complex entities and
> it is 
> possible to have two files that are NOTHING alike in
> their file 
> format, but produce the same visible results.
> 
> 
> 
> >Is it possible to compare two files with iText?
> 
>       No.
> 
>       The only thing that attempts this is Adobe
> Acrobat...
> 
> 
> Leonard
> -- 
>
---------------------------------------------------------------------------
> Leonard Rosenthol                           
> <mailto:[EMAIL PROTECTED]>
> Chief Technical Officer                     
> <http://www.pdfsages.com>
> PDF Sages, Inc.                             
> 215-629-3700 (voice)
>                                              
> 215-629-0789 (fax)
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems
> on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell
> virtual machines at the
> same time. Free trial click here:
> http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to