Thank you both Matt and Leonard for your replies. Unfortunately 
they don't really make me hope to find a solution. :-(

Matt, I've already tried the approach with Ghostscript. I 
converted the PDF into Postscript and PCL. While the Postscripts 
were always different, the PCL was the same - unfortunately only 
the same day. A few days later I ran the same tests, but now the 
file sizes were different: 3 bytes shorter than before.

I'd need to confirm that the print output is the same as before: 
i.e. text and structure. Could you please elaborate a bit more 
about the Ghostscript approach and which target format to 
choose?

Thanks a lot.

Andreas

On 17 Jul 2003 at 9:12, Matt Benson wrote:

> 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 >



-------------------------------------------------------
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