This is a migrated thread and some comments may be shown as answers.

Import a PDF exported rom GridView ExportToPdf

2 Answers 55 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 26 Jan 2016, 04:25 PM

Hello,

I am trying to:

1 - Open a PDF created from Gridview's ExportToPdf function

2 - Draw a title on the page

3 - Save the PDF

When I run my code everything executes, but the final PDF is a blank page, but with the same length as the original PDF.

If I only open the page and then immediately save the PDF without attempting to draw on the page, the result is the same.

First, can PDFProcessing do this? I've heard that not all of your various PDF exports are compatible with all of the imports yet.

 If that is the case, do you have an alternate way for me to get some title text on the PDF file generated by GridView's ExportToPdf function?

 Thanks in advance,

 Scott

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 28 Jan 2016, 03:54 PM
Hello Scott,

Thank you for contacting us.

When you import the document with RadPdfProcessing you should use the PdfFormatProvider constructor that has no parameters, as mentioned in this documentation article. I suppose that you have tried to import RadFixedDocument with the PdfFormatProvider constructor mentioned in RadPdfViewer's documentation. Although the two product use the same PdfFormatProvider class their models are internally different. This is the reason why the exported pages are blank. We are currently actively working on improving RadPdfProcessing import to be feature equal to RadPdfViewer. Once this happens in some of the following releases RadPdfViewer will be using RadPdfProcessing's model and both PdfFormatProvider constructors will be valid for both products.

As for the import capabilities - we have improved PdfProcessing import during the last few Qs and it now supports larger variety of features. However, there are still some missing functionalities compared to RadPdfViewer and hopefully in the following releases they will be implemented as well. With the current state of the import you can rely that everything exported with RadPdfProcessing will be successfully imported later. This includes RadGridView's export to PDF.

I am attaching a demo project showing how to successfully import, modify and export using RadPdfProcessing.

I hope this information is helpful. If you have any other questions or concerns please do not hesitate to contact us again.

Regards,
Deyan
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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 03 Feb 2016, 04:03 PM
Thank you. As usual Telerik is helpful, polite, and professional.
Tags
PdfProcessing
Asked by
Scott
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Scott
Top achievements
Rank 1
Share this question
or