I'm getting an error when converting my docx file created in Word 2007 to pdf and using the viaIText solution.
The error i get is java.IOException: The document has no pages.
Please can anyone point me in the right direction.
I have a few problems which i'm sure are all related to this page thing.
In my DOCX file i copied the first page text to a second page so that there are two identical pages in it with mail merge fields. When i substitute the mail merge fields with values programatically it doesn't substitute them on the first page it just adds the values as null but it does then do it properly on the second page.
I'm not quite sure what to look for but is there a way to say get the amount of pages or to at least check whether the code picks up that there are two pages in this docx file?
Thanks in advance