Your SlideShare is downloading. ×
XPages * XDocReport = X3
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

XPages * XDocReport = X3

206
views

Published on

Deze presentatie is gegeven door Daan Maliepaard bij de XPages & Beer meetup van 2 juli 2014. …

Deze presentatie is gegeven door Daan Maliepaard bij de XPages & Beer meetup van 2 juli 2014.

Hoe geef je een eindgebruiker, met zeer beperkte technische kennis, toch de controle over de opmaak en inhoud van rapporten / offertes of facturen die gegenereerd worden?

Voor de ontwikkeling van een webapplicatie die zogenoemde ‘Documents of Compliance’ (rapporten) genereert hebben wij daarvoor XDocReport geïmplementeerd. Kort gezegd is dit een Java API die XML bestanden (bijvoorbeeld DOCX of ODT) samenvoegt met een Java model (data) en deze kan converteren naar een ander bestandsformaat zoals bijvoorbeeld PDF of HTML. Een korte introductie van onze specifieke use case en de applicatie zal worden gevolgd door een demo en een zeer eenvoudig copy - paste voorbeeld van de functionaliteit.

Published in: Internet

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
206
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. function aboutMe() { try { var title = "XPages * XDocReport = X3"; var name = "Daan Maliepaard"; var young = 29; var workAt = "Clear IT Consulting"; for (var i = 2010; i < new Date().getFullYear(); i++) { console.log("XPage Developer"); } if ( confirm("Are you sure?") ) { console.log("Good :-) lets continue!"); } else { throw "user"; } } catch (e) { console.log("Keep calm " + e + ", grab a beer."); } }
  • 2. FOCOS “…a tool to support food contact compliance work within the plastics supply chain…” During the contact of food with (any) plastic, molecules can migrate from the food contact material to the food itself. Because of this, in many countries regulations are made to ensure food safety (human health). So, to comply to these regulations one must perform compliance work accordingly, which is very complex and challenging task… (calculations, verification of authorized substances, purity criteria) …eventually leading to a “Document of Compliance”.
  • 3. Highlighting only one aspect of FOCOS: The generation / creation of the final document PDF file based on a template. Facts: - The user has (very, very limited) knowledge of (computer) technology Requirements: - Integrating a corporate identity - Signing the documents Solution: - XDocReport “…Java API to merge XML documents (*.docx, *.pptx, *.odt…) with a Java model to generate report and convert it …to another format (*.PDF, *.XHTML...)” (http://code.google.com/p/xdocreport/) function demo();
  • 4. The Holy Grail? Cons: - Basic (backend HTML) markup capabilities - Limited inheritance of MS Word styles / white spaces - ... Alternatives: - Aspose.Words (commercial) (http://www.aspose.com/java/word-component.aspx) - docmosis (commercial) (http://www.docmosis.com) - JODConverter (https://code.google.com/p/jodconverter) - docx4j (http://www.docx4java.org/trac/docx4j) Wrapping your JAR files: - http://www.dalsgaard-data.eu/blog/wrap-an-existing-jar-file-into-a-plug-in/ function theEnd();