SecondMove introduces WebPDFReports 1.0
easy conversion of html to pdf reports Java or Objective-C.
WebPDFReports is a set of libraries for converting HTML documents to PDF. The functionality is accessible from both Java and Objective-C and is really simple to use. The new release provides near total control over the HTML to PDF conversion without adding much complexity compared to the previous release. Please refer to the online JavaDoc or the online Objective-C documentation Next to this we implemented tight integration with WebObjects. While other PDF libraries require you to write XML/XSLT or use a separate editor to layout your PDF reports, WebPDFReports lets you use your own WebObjects components to generate your PDF reports.
Generating a multipage PDF report only requires a few lines of code:
public WOActionResults movieReportAction() {
PDFPage pdfPage = (PDFPage)pageWithName("PDFPage");
HTML2PDFConvertor pdfConvertor = new HTML2PDFConvertor();
pdfConvertor.createDocument("A4", HTML2PDFConvertor.PortraitOrientation);
pdfConvertor.setTopMargin(5); pdfConvertor.setLeftMargin(5);
pdfConvertor.setPrintsVerticallyCentered(false);
pdfPage.setConvertor(pdfConvertor);
WOComponent revenuePage = pageWithName("RevenueByStudioReport");
pdfPage.appendComponentWithDisplayGroupNamed(revenuePage, "studioDisplayGroup");
return pdfPage;
}
The licensed product is available via Kagi. We encourage you to download the new version 1.0 of WebPDFReports to give it a try. WebPDFReports ships with three easy to understand examples that will give you a headstart.
WebPDFReport characteristics
| Ease of use | One class with easy to use methods is all you need to convert HTML pages and combine them into one PDF document. |
| Choice of programming language | Can be used in combination with either Objective-C or Java. Also provided is a simple class that tightly integrates WebPDFReports with WebObjects. |
| Full control over output | Version 1.0a provides full control over the conversion process, allowing mixed format PDF Documents, obeying margins and providing sensible pagination. |
| WebObjects ready | Generating reports is based on the standard WebObjects approach for generating dynamic content. You create a component that represents the report and WebPDFReports does all the rest. The simple code-snippet at the beginning of this page is all the code you need to generate a multipage PDF document. |
| No learning curve | While other tools force you to write XML/XSLT or to learn a separate editor and master an esoteric class-library, WebPDFReports is based on HTML. Generating PDF documents based on HTML does not get any easier than WebPDFReports |
| MacOSX Only | WebPDFReports is a MacOSX only product and we currently do not have any plans to port the libraries to other platforms. |