Suppose i have a directory with n images. I would like to add one image per page.
For example :
In a directory called “Images”, i have the below 2 images:
newpage0.jpg and newpage1.jpg
I would like to map each image on a single page. How do i dynamically create page-sequences for the number of images present in the directory?
The below code works fine for one image.
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:external-graphic src="url(Images/newpage0.jpg)" width="100%"
scaling="uniform" content-width="scale-to-fit" />
</fo:block>
</fo:flow>
</fo:page-sequence>
Please help.