Sorry for the double-post. I guess I posted this to the wrong forum originally.

I'm evaluating the PDF Creator library for a project I'm working on. I can't reveal too much detail about the project itself, but the software I am writing essentially extracts data from a database based upon criteria specified in a request and outputs a report in one of several possible formats. I already have the code to generate the report as an XPS document, but I also need to support PDF. To do this, I was hoping to use PDF Creator to import the XPS Document, and then save it to a stream as a PDF (note that I'm using the non-gui version of the API).

This code creates the XPS document correctly. The XPS Document varies in size from 5 pages to 50 pages. However, when I save it as a PDF, I get a 1 page document that has numerous overlapping red square outlines arranged diagonally. I have no idea why this would be. I've checked the code several times, and everything seems to work until I call pdfDocument.Open. After that call, according to the debugger, the number of pages in the pdfDocument are 1. So, I know at that point something has gone wrong. Can anyone give me an idea of what I'm doing wrong?