I have my doubts on the success of jpdfunit to compare PDFs. The only
way to do it is to render the PDF page to some bitmap format and sort of
XOR it with the original. If you get a white page the two PDFs are the
same; if you get black dots there are differences. Of course, even this
can go wrong. It's essentially impossible to compare PDFs, just see the
result in Acrobat.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Daniel Farinha
> Sent: Monday, March 27, 2006 4:04 PM
> To: bruno
> Cc: [email protected]
> Subject: Re: [iText-questions] Unit testing PDF generation
> 
> Bruno,
> 
> Sounds like it's just what I need.
> I will report back here once I've implemented it into h2pe.
> 
> Thanks!
> 
> Daniel
> 
> bruno wrote:
> > Daniel Farinha wrote:
> >
> >   
> >> Hi all,
> >>
> >> I'm writing unit tests that need to check the successful 
> generation of
> >> PDF documents using iText.
> >>
> >>     
> > Somebody has sent me this link once:
> > http://jpdfunit.sourceforge.net/
> > The product uses PDFBox.
> > I haven't tried it, please let me know if it's any good.
> > br,
> > Bruno
> >
> >
> >
> >   
> 
> 
> -- 
> Daniel Farinha
> Software Developer
> Genial Genetic Solutions Ltd
> The Heath Business & Technical Park
> Runcorn, Cheshire WA7 4QX
> Tel: +44 (0)870 757 9300
> Fax: +44 (0)870 757 9301
> Email: [EMAIL PROTECTED]
> Website: www.genialgenetics.com
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language
> that extends applications into web and mobile media. Attend 
> the live webcast
> and join the prime developer group breaking into this new 
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&;
> dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to