Skip to content
DemoSampleAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Android Guides Comparison

Document Comparison ​

ComPDF provides content comparison and drawing overlay comparison. Open the base and compared documents before starting and keep both valid throughout the operation. Release the comparison object before closing the source documents.

  • Content Comparison: compare text, images, annotations, paths, and shadings by page; read locations and counts, and export highlighted results.
  • Drawing Overlay Comparison: configure colors, opacity, and blend mode for two drawings and generate an overlay document.

Run comparison on a background thread and update the UI on the main thread. Page indexes start at 0; the application selects the page pairs to compare.