Thanks (for the pointer) Jeremias. For now I have added a bit of regexp
mumbo jumbo in the compare code to get rid of the variable sections in the
pdf file. Not very elegant but it works, can be automated and will in the
worst case scenario only give rise to false negatives I think.

Peter
> -----Original Message-----
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 16, 2007 9:53 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: PDF comparison for regression testing
> 
> What we do in FOP is calling GhostScript to convert the PDF to a bitmap
> which can then be either put side-to-side with a reference or visually
> "diffed" against a reference. This process isn't automated, yet.
> 
> See here:
> http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/java/org/apache/fo
> p/visual/
> 
> Of course, that doesn't test the non-visual features of PDF. But for
> that you can use any PDF library and some JUnit test cases.
> 
> On 16.01.2007 17:15:15 Peter wrote:
> > Fop fans,
> >
> >
> >
> > I am writing some regression tests for an application that uses fop to
> > generate PDF files. I am trying to figure out how to compare the pdf
> output
> > with the master pdf files.
> >
> >
> >
> > Seems the pdf spec requires e.g. an ID in the trailer that is file
> instance
> > specific which makes (dumb) binary comparison with a master file
> impossible.
> >
> >
> >
> > I guess I could check the fop input iso the fop output, but I'd rather
> check
> > the actual pdf if possible.
> >
> >
> >
> > How this is typically solved?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Peter
> >
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to