In the code snippet from your previous post I see that you are using the PdfFormatProvider's constructor mentioned in this RadPdfViewer documentation article
. However, when you want to import and export PDF files you should use the constructor mentioned in this RadPdfProcessing documentation article
. Although the two products are sharing the same public API, they are currently differing internally and you cannot export documents imported with RadPdfViewer. We are currently actively working on improving RadPdfProcessing import functionality and once it becomes feature equal to RadPdfViewer the two models will be unified internally as well.
In order to easily test the import and export of the previously sent documents I am attaching a sample project that imports and exports frontcover-image.pdf
. Testing this application with the latest version of the product I can see that the page size of the imported document is the same as the page size of the exported one.
As for adding the imported document to another generated one - you could use the Merge method mentioned in this documentation article
Please write to us if you still experience any issues after testing the demo project.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items