Import a PDF exported rom GridView ExportToPdf

3 posts, 1 answers
  1. Scott
    Scott avatar
    12 posts
    Member since:
    Jun 2014

    Posted 26 Jan 2016 Link to this post


    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,


  2. Answer
    Deyan avatar
    158 posts

    Posted 28 Jan 2016 Link to this post

    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.

    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
  3. Scott
    Scott avatar
    12 posts
    Member since:
    Jun 2014

    Posted 03 Feb 2016 in reply to Deyan Link to this post

    Thank you. As usual Telerik is helpful, polite, and professional.
Back to Top