PDF Report Creation - Servlet Web Interface API

Web-based reporting uses a web browser as the client viewer, presenting reports in either HTML or PDF format. InetSoft enterprise products provide a complete solution using a mix of DHTML and PDF output. For purely static reports, it is possible to use PDF as the only presentation media. This is supported by a built-in servlet in the InetSoft package.

PDF Servlet - also Excel and HTML generation

The PDFService class supports web PDF, Excel and HTML generation. PDFService is a servlet based on standard servlet API. It can be deployed in any Servlet 2.0 compatible web server or servlet engine. By using the PDF servlet, an application can provide web based reporting without any programming effort.

The PDF servlet can execute any report template produced using the Report Designer and can generate PDF and HTML output from the executed reports. File generation is performed in the background using background Java threads. Therefore, it is capable of handling multiple simultaneous requests and is not restrained by browser time-out when executing large reports.

The flow of the PDF servlet is as follows:

  1. Browser sends a request to the servlet using a URL encoded with the template file name and possible query parameters.
  2. The servlet initiates a background thread to execute the report tem­plate and generate a PDF or HTML file.
  3. A DHTML page is generated by the servlet to display the status of the report generation. The DHTML periodically checks the servlet to see if the processing is complete.
  4. If the PDF or HTML output is generated successfully, the output is returned to the browser. The PDF file is presented using Acrobat Reader.
  5. If an error occurs in the processing, the error is reported on the browser.
view gallery
View live interactive examples in InetSoft's dashboard and visualization gallery.

More Articles About Reporting

Are Data Warehouses Still Necessary? - The Value of Data Warehouses: Data warehouses serve several vital functions that make them an essential component in many organizations: Data Integration and Consolidation: They are designed to aggregate data from various sources, transforming it into a consistent format. This is particularly crucial in organizations with diverse data sets from different departments or systems. Performance and Query Optimization: Data warehouses are optimized for complex queries and analytics. They use techniques like indexing and data partitioning to ensure that even with large datasets, queries can be processed efficiently...

Database Field and Types - A database is a set of data arranged in a particular way so that a computer program can use the necessary parts from it. Every database has several fields, records, and files. A database field refers to a set of values arranged in a table and has the same data type. A field is also known as a column or attribute. It is not necessary for the values included in a field to be in the form of text alone, as this is not a requirement. Some databases have the capability of having fields that contain images, files, and other types of media, while others have the capability of having data that links to other files that can be accessed by clicking on the field data...

Definition of a Binary Dot Plot Chart - A dot plot is a type of data visualization that represents individual values of a set of numerical data by plotting dots or markers on a number line or an x-axis. Each dot represents a single data point and is placed along the axis based on its value. This type of plot does not aggregate a measure, but merely displays the raw data points. In some respects, therefore, the basic dot plot is similar to a histogram...

How to Make a Circular Heat Map Chart in InetSoft - There is no built-in chart type for a circular heat map; however, since a circular heat map is essentially a stacked bar chart bent into a circle, it is possible to obtain this display by applying a small script to an existing stacked bar chart. Begin by importing the data set into a Data Worksheet. The sample data is based on data from Northern California Earthquake Data Center (NCEDC) and processed by Giuseppe Macrì to produce the CSV file available on Github, which has the following form...

Tool to Make Fractal Charts Online for Free - To easily and quickly create Fractal Charts online for free, create a Free Individual Account on the InetSoft website. You will then be able to upload a text data set, as shown below: choosing dashboard source Once you have done that, you will be able to proceed to the Visualization Recommender, which will get you started creating a dashboard. To start with a fractal plot, though, you can skip the Recommender by pressing the Finish button at the top bar of the Recommender. Then press Continue to go to Visual Composer. Proceed to add a Chart component using Visual Composer, and follow the steps shown earlier to create the desired fractal chart...

Previous: Building a Custom Report Tree