Your First Document
Prerequisite: Make sure you followed the procedure in the
Installing section.
The following procedure provides a simple example for using Oxygen PDF Chemistry to style an XML document:
-
Start with a simple XML document to test the installation. Save it as
my_doc.xml.
<article> <title>Hello World!</title> <p>My first document.</p> </article>
-
Create a CSS stylesheet in the same folder. Save it as
my_style.css.
article, title, p { display: block } title { font-size:larger; border-bottom: 1pt solid blue; }
-
Open a command-line console, change directory to the folder that contains your samples,
and invoke:
chemistry -in my_doc.xml -css my_style.css -out my_doc.pdf
- Open the result in your PDF reader.