I have found what I believe is a bug in the PDF Processing library in which the resulting PDF does not "match" the contents of the PDFs imported into it. I have created a very simple example in which I attempt to import a single PDF document into another PDF using the PdfStreamWriter class and associated classes. I also tried using the PdfFormatProvider and receive the same results.
A few things to note regarding the original PDF being used: it was generated from a Telerik Report using the ReportProcessor's RenderReport method. So, this PDF was created entirely through Telerik libraries and I would expect that it should be able to be imported into another PDF document unaltered using the Telerik PDF Processing library.
But, in the example provided, if you click the First button, the application will open the PDF being used so you can see what it should look like. Notice the table on the first page is completely filled in. Clicking the second button attempts to import the original source PDF into a temporary file and displays that result: notice in this case, the table on the first page is missing some of the data that appears in the original.
As I have tried both the PdfStreamWriter and PdfFormatProvider classes with the exact same results, I am at a loss as to what is wrong. I would expect that the results should be the exact same since everything was created using Telerik libraries...
A few things to note regarding the original PDF being used: it was generated from a Telerik Report using the ReportProcessor's RenderReport method. So, this PDF was created entirely through Telerik libraries and I would expect that it should be able to be imported into another PDF document unaltered using the Telerik PDF Processing library.
But, in the example provided, if you click the First button, the application will open the PDF being used so you can see what it should look like. Notice the table on the first page is completely filled in. Clicking the second button attempts to import the original source PDF into a temporary file and displays that result: notice in this case, the table on the first page is missing some of the data that appears in the original.
As I have tried both the PdfStreamWriter and PdfFormatProvider classes with the exact same results, I am at a loss as to what is wrong. I would expect that the results should be the exact same since everything was created using Telerik libraries...