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/fop/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]

Reply via email to