Our customer sent us the attached TA13.pdf which contains an XFA form. When we used aspose to convert the pdf to xps, the generated xps contained this text:
Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.
Google revealed some aspose articles saying that to avoid this message, change the FormType, like this:
doc.Form.Type = Aspose.Pdf.Forms.FormType.Standard
I did this, and the XPS (attached as o1.xps) no longer contained the warning message, and instead its content looked very similar to the original pdf - but there are still some issues:
[1] If you open the pdf in Adobe Reader, the form has four coloured buttons at the top of p1. When you print the pdf from Adobe Reader these buttons do not appear. However, the aspose-generated xps does contain the buttons. Is this a bug or is there some flag I can set to stop them from appearing in the aspose xps?
[2] The round-cornered boxes (like the address box) in the aspose-generated xps clash with the text.
[3] the text (2nd edition) is vertically placed too high in the aspose-generated xps content.
[4] The Vacant possession paragraph header (and all the other paragraph headers in the document) rendered in xps with a thick black border - but there is no border in the source pdf. Also the [1] bullet is white on a blue background in the pdf, but appears as black on a blue background in the xps.
[5] the checkboxes look different - in pdf they have no border and have radiused corners. In xps they have black border and right-angled corners.
[6] The corner caps on paragraph header 5 are very peculiar.
Although the customer will be pleased that they get XPS content instead of a warning message, they will expect the appearance of the XPS to be the same as if created by adobe reader.