XMLWorker Documentation ( itextdoc )

As promised after the release of iText and XMLWorker, there would be a release of itextdoc. Our project to parse our own documentation for the XMLWorker with the XMLWorker.

The itextdoc maven plugin is now available from Maven Central. To use it in your build cycle of a project add

<plugin>
   <groupId>com.itextpdf.maven</groupId>
   <artifactId>itextdoc</artifactId>
   <version>0.1.0</version>
   <executions>
    <execution>
      <phase>package</phase>
      <goals>
         <goal>create</goal>
      </goals>
      <inherited>false</inherited>
    </execution> 
   </executions>
</plugin>

What does it do and how can you use it?

itextdoc transforms html to PDF with iText and XMLWorker. Optionally you can transform the html to a styled website but that’s still under construction.

By default the plugin looks for a folder itextdoc under the src folder. Easily configure another folder by adding a configuration to the executuion.

<configuration>
  <flatsite>true</flatsite> // enable generation of a site
  <site>true</site> // enable generation of a javascript driven site
  <src>src/doc</src> // change default source directory
  </configuration>

Currently only a doc.xml file is accepted as the xml file wherein you define the different html files (or one) and your CSS file.

The result is something like this. The initial documentation for itext doc, not styled with custom css.

To create a website use the site and flatsite configuration parameters. But the site generation is not yet fully functioning.

Where to request features and report bugs?

At sourceforge features, bugs.

Other links
check for latest version
Ohloh
iText

Note: don’t forget iText, XMLWorker are AGPL.

iText® 5.1 Released

We’ve released a new version of iText. Version 5.1

changes

  • the RichMedia package got removed from itextpdf core to itext-xtra
  • the HTMLWorker has been reworked in a new project: ‘xmlworker’. Developers using the HTMLWorker should take a look at the XMLWorker 0.9.1, it supports more CSS and HTML, and will be released later today. It’s a separate project
  • for developers a Logger has been added, next up is add more logging, currently it’s used … almost nowhere
  • various bugfixes
  • itextpdf.com-5.1.0 should be osgi enabled
  • the source code has been mavenized
  • the RUPS source has been moved to a separate project too

For a full list see this

and itext is now available in Maven Central !! search for com.itextpdf and you’ll find it

iText® PDF Demo

To show of the capabilities of iText® and PDF we at itextpdf.com have created a demo to show off the interactive features of PDF and to show of the fact that you can create it with iText® of course

The demo allows you to add your company data (a logo inclusive) and create an invoice for it, you can select different products that should show up on the invoice (thus your purchase). All of this is done inside the PDF !

See the demo or a how to use the demo.

Note: the colours of the invoice are adapted to the main colour of the logo.

While this is a demo created in Java, you could do exactly the same with iText® Sharp.

Work has begun on a second demo that will utilize new code written to transform XML to PDF. The upcoming demo will allow you to input text in a WYSIWYG editor (e.g. TinyMCE or CKEditor ) and transform it to PDF.

%d bloggers like this: