Export to PDF (Page Break)

24 posts, 0 answers
  1. Richard
    Richard avatar
    18 posts
    Member since:
    Sep 2011

    Posted 08 Mar 2015 Link to this post

    Is there a way to have the system create automatic page breaks as opposed to creating a single paged PDF document.  I was hoping to maybe use this as an option to export a page to a PDF report but the text cuts off because it's larger than a single A4 page.  I'm guessing that is beyond the scope of this but thought it was worth asking.

    Thanks,

    Richard
  2. Jer
    Jer avatar
    10 posts
    Member since:
    Jun 2012

    Posted 09 Mar 2015 in reply to Richard Link to this post

    I was just going to post the same thing! Please give us a way to set page breaks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 10 Mar 2015 Link to this post

    Hello,

    This feature will be included for the next release. We are based on the Kendo Drawing and they will include it for their release. 

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Richard
    Richard avatar
    18 posts
    Member since:
    Sep 2011

    Posted 10 Mar 2015 in reply to Peter Filipov Link to this post

    Peter - just to clarify.  It's coming to Kendo and the ASP.NET tools in the Q2 release (at least that is the plan of record - things can change).

    Thanks,

    Richard
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Mar 2015 Link to this post

    Hello Richard,

    Yes, that is the plan. 

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. chrisL
    chrisL avatar
    64 posts
    Member since:
    Dec 2005

    Posted 20 Mar 2015 Link to this post

    A big +1 from me for this feature too. Thanks.
  8. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 01 Apr 2015 Link to this post

    And for further clarification, will the Q2 release include resizing the export to a specified page size?

    Example, the page displays a metrics dashboard and I want it to print out on a single page.
  9. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 06 Apr 2015 Link to this post

    Hello David,

    The exported PDF could be scaled, so when your page is exported you could print it on every page size. You do not need to set paper size in the export settings. Before you print it e.g. in the Adobe reader you need to specify the size.

    Regards,
    Peter Filipov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  10. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 06 Apr 2015 in reply to Peter Filipov Link to this post

    Roger.

     

     I have quite a few non-technical folks in my customer pool and expect to have many tech-support calls asking why the PDF doesn't print right :(

    It looks like I will have to play with the RadDocument and iTextSharp options for setting up the print/size options.

     

    Thanks

     

  11. Jer
    Jer avatar
    10 posts
    Member since:
    Jun 2012

    Posted 17 Jun 2015 Link to this post

    Can we get an update on this feature? Q2 is almost over, i just wanted to make sure it's going to make it into the next release. Also when is the next release date?

    Thanks

  12. Jer
    Jer avatar
    10 posts
    Member since:
    Jun 2012

    Posted 18 Jun 2015 in reply to Jer Link to this post

    Looks like its in the beta version! 

    http://demos.telerik.com/aspnet-ajax-beta/client-export-manager/functionality/pdf-multi-page-export/defaultvb.aspx

    When can we expect this to be released? thanks!

  13. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 18 Jun 2015 Link to this post

    Hi Jer,

    The Q2 will be next week. In case that you want to review the feature before that, here is a link to our beta demos.

    Regards,
    Peter Filipov
    Telerik
    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
  14. Jer
    Jer avatar
    10 posts
    Member since:
    Jun 2012

    Posted 18 Jun 2015 in reply to Peter Filipov Link to this post

    Thanks Peter,

    I've messed around with the beta a bit and have a couple questions.

    When setting a papersize how can i scale the content to fit? it just cuts off the content if it doesn't fit.

    How can I set a pagebreak in long radgrid list? for example say i have 25 items in a radgrid, but only 20 will fit on a printed page, how would i set a pagebreak before the 21st item?

  15. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 23 Jun 2015 Link to this post

    Hi Jeremy,

    Please review the attached project and let me know if you have any other questions.

    Regards,
    Peter Filipov
    Telerik
    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
  16. Dan
    Dan avatar
    124 posts
    Member since:
    Feb 2011

    Posted 22 Jul 2015 in reply to Peter Filipov Link to this post

    Are their plans to provide auto page breaking?  

    Alternately - is it possible to print the HTML into a PDF using the PDFProcessing engine? 

  17. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 22 Jul 2015 in reply to Dan Link to this post

    Jer asked:  "When setting a papersize, how can I scale the content to fit? it just cuts off the content if it doesn't fit."

    Peter's previous response was "You do not need to set paper size in the export settings. Before you print it e.g. in the Adobe reader, you need to specify the size."

     

    Jer asked: "How can I set a pagebreak in a long radgrid list?"

    Dan asked: "Are their plans to provide auto page breaking?"

     

    I cannot answer for telerik, but Peters' response to Jer's question and some of my ticket traffic lead to to beleive that the answer lies in a convoluted css styling where you set the css class for the Radgrids footer to the RadClientExportManagers PageBreakSelector class. Then print out only one page at a time with the user navigating to the next page and exporting that next page.

    I have posted a Feedback item requesting integration of the RadClientExportManager with PDF processing so there can be some server side modifications of the resulting PDF {like scaling it to a specific page size}. Please comment/like at http://feedback.telerik.com/Project/108

     

  18. Richard
    Richard avatar
    18 posts
    Member since:
    Sep 2011

    Posted 22 Jul 2015 Link to this post

    In terms of features/requests for this export - does anyone know if it's possible to automatically put in page numbers (bottom, top, somewhere) when you export to PDF.  I've got it all working well for my situation but lack of page numbers on the export is my last hurdle.

    Thanks,

    Richard

  19. Jer
    Jer avatar
    10 posts
    Member since:
    Jun 2012

    Posted 22 Jul 2015 in reply to Richard Link to this post

    Richard said:

    In terms of features/requests for this export - does anyone know if it's possible to automatically put in page numbers (bottom, top, somewhere) when you export to PDF.  I've got it all working well for my situation but lack of page numbers on the export is my last hurdle.

    Thanks,

    Richard

    Richard,

    I ended up using jquery for the page numbers.

    Before exportPDF I use this:

    $(".pageBreak").each(function (i) {
    div = $("<div>").addClass("pageNumber").text(i + 1);
    $(this).before(div);
    });

    and then after exportPDF:

    $(".pageNumber").remove();

    This will do all the page numbers except the final page number, which I just have an html element that I show then hide during printing.

  20. Dan
    Dan avatar
    124 posts
    Member since:
    Feb 2011

    Posted 22 Jul 2015 Link to this post

    In my scenario, I have an HTML rendering of a contract - which may include long text blocks and multiple tables - followed by a signature area.  I am currently wrestling with how I would figure out where to insert page-break classes into the code.  The HTML was generated previously (in another system) and I am reading it in from the database - and displaying it for signature.

    Just to clarify, I am not trying to add page breaks to a single grid.  I don't mean to thread-jack - I believe the desired functionality is very similar to the OP's - but the work around for a large grid wouldn't work in my case

  21. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 27 Jul 2015 Link to this post

    Hello,

    Since the ClientExportManager does not place page breaks automatically you will have to manually do this and it could be a tedious task for a contract spanning multiple pages. Exporting page by page will show where the page break has to be placed and as an alternative there are custom solutions, for instance in this thread on stackoverflow, that could help you split the content.

    Regards,
    Ivan Danchev
    Telerik
    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
  22. Dan
    Dan avatar
    124 posts
    Member since:
    Feb 2011

    Posted 27 Jul 2015 in reply to Ivan Danchev Link to this post

    Thanks Ivan.  We had to go with another 3rd party tool to do this for now.  Would love to bring this back to Telerik when auto-paging is implemented.
  23. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 30 Jul 2015 Link to this post

    Hello Dan,

    I can suggest logging auto-paging as a ClientExportmanager feature request on our Feedback Portal.

    Regards,
    Ivan Danchev
    Telerik
    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
  24. Han Zhao
    Han Zhao avatar
    2 posts
    Member since:
    Sep 2015

    Posted 09 Mar in reply to Ivan Danchev Link to this post

    Hi Ivan! Is auto page break included in the latest release?
  25. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 10 Mar Link to this post

    Hello Han Zhao,

    An auto page break functionality has not been implemented yet and the control still relies on the PageBreakSelector property.

    Regards,
    Ivan Danchev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017