generating a PDF from web page

2 posts, 0 answers
  1. Cory
    Cory avatar
    21 posts
    Member since:
    Sep 2015

    Posted 07 Nov Link to this post

    I've read through many of the posts here but none seem to directly apply to my issue.  I have a telerik AJAX based shipping application that is generating a Bill of Lading.  The bill of lading is a legal document that need to look exactly like what the user sees on the page.  I'm generating that to a web page, but of course printing a web page generates all sorts of "noise" to the document - additional page numbers... web page source name, etc.

     

    I would like to export the web page to a PDF and then have that print - all in one step.  The issue that I'm seeing is that ClientExportManager generates the PDF which shows up as a downloaded document.  The user has to open that doc, then click print, then gets to the print dialog.  That is a major pain.

     

    Is there a way to generate the PDF directly to a web page - so it is displayed in a RadWindow (for instance) with a print button exposed at that point?  My users a balking at the multiple step process above but I can't find a way around it.  Basically I just need to print a web page without all the extra junk that the browsers add - so if there is a way that you know to do that instead - that would work too.

     

    Thanks in advance!

    Cory

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 10 Nov Link to this post

    Hello Cory,

    Generating the exported file in a RadWindow is not supported. Once the content is exported it is handled by the browser, from this point on depending on how the specific browser is configured it may or may not open the file and instead ask you to save it. For instance Chrome can preview the file (screenshot) and allow you to print it without the need to open it with a dedicated PDF viewer (Adobe Acrobat for example). For this to work Chrome's own PDF Viewer plugin needs to be enabled in chrome://plugins/

    Regards,
    Ivan Danchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top