List in PDF from XML array

Post Reply
bahlqvist
Newbie
Posts: 2
Joined: Mon Sep 17, 2018 3:06 pm

List in PDF from XML array

Post by bahlqvist »

Hi

I am looking for a way to create a list in a PDF based on information in a xml array, does anyone know in what direction I should start looking?

What I am trying to do is basically this: I will receive a xml file with an array that holds a bunch of information about a print job, for example quantity, print format, type, article ID and so on. There is one xml file for each order, but every order may include several rows (jobs). I want to list these rows in a PDF. It does not have to be fancy. :)

<Rows>
<Row>
<ArticleNo>666777</ArticleNo>
<Quantity>20</Quantity>
<AssetId>565</AssetId>
<PrintFormat>A4</PrintFormat>
<Color>CMYK</Color>
</Row>
<Row>
<ArticleNo>666779</ArticleNo>
<Quantity>20</Quantity>
<AssetId>1020</AssetId>
<PrintFormat>A3+</PrintFormat>
<Color>BW</Color>
</Row>
</Rows>


What is the best way to approach this, any ideas? I have access to Switch with metadata module and Pitstop Server, would that be enough or is scripting needed? Thanks!
jan_suhr
Advanced member
Posts: 591
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: List in PDF from XML array

Post by jan_suhr »

You can use the Saxon configurator and an XSLT that translate your XML to what you want.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply