Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9233277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:30:53+00:00 2026-06-18T06:30:53+00:00

I am using BIRT to generate PDF reports that contain graphs of data and

  • 0

I am using BIRT to generate PDF reports that contain graphs of data and a table of the data. I have TestNG unit tests that create a BIRT PDF and then I want to compare the created PDF with a baseline report. I can’t use an MD5 hash because each report is timestamped in the footer and the timestamps always changes. I tried using PDPage and PDResources to get all the images from the PDF but the graphs don’t seem to be images b/c the call to getImages from the PDResources object returns 0 images. Using PDFBox what are other elements of the PDF that I can grab and compare with the baseline PDF to verify equality? The format of the PDF is as follows, page 1 will contain a Title, a start date/time label, an end date/time label, a report note, followed by one or more graphs, followed by 1 table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:30:54+00:00Added an answer on June 18, 2026 at 6:30 am

    The solution I used was to parse the BIRT PDF report using PDFBox but removing a string of pre-defined text that contained the footer and compared the two ArrayList.
    pdfDoc = PDDocument.load(docname);
    List pages = pdfDoc.getDocumentCatalog().getAllPages();
    Iterator iter = pages.iterator();
    while(iter.hasNext())
    {
    PDPage page = (PDPage) iter.next();
    String unparsedLine = page.getContents().getInputStreamAsString();
    documentStreamList.add(unparsedLine.replaceAll(DATE_FOOTER_FORMAT, ""));
    }

    This code will return a list of strings contained by the PDF and compare it to the baseline BIRT report. All data will get parsed equally and the reports match when they are the same. I never found a way to compare the generated graphs directly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created this report using BIRT and phpjavabridge <?php header(Content-type: application/pdf); header(Content-Disposition: inline;
i am using birt-2_6_1 with tomcat 7 along with eclipse IDE to generate reports.
I'm using Eclipse for BIRT Reports. When I edit a data set and work
We are using Eclipse (Galileo) to create some custom BIRT reports (version 2.5) for
I am generating PDF/HTML report from a BIRT template. I am using visibility property
I've just starting trying out eclipse BIRT to generate reports, but am unable to
I have a database with values in Hebrew. When I generate the BIRT report,
I have a report which I need to create with BIRT which is simply
I am building a simple BIRT report using an XML data source. However, I
using phpPgAdmin, I've tried to create a table in my database. But am getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.