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

Export to PDF (Page Break)

25 Answers 715 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Veteran
Richard asked on 08 Mar 2015, 06:28 PM
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

25 Answers, 1 is accepted

Sort by
0
Jer
Top achievements
Rank 1
answered on 09 Mar 2015, 04:34 PM
I was just going to post the same thing! Please give us a way to set page breaks.
0
Peter Filipov
Telerik team
answered on 10 Mar 2015, 01:08 PM
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.

 
0
Richard
Top achievements
Rank 1
Veteran
answered on 10 Mar 2015, 01:15 PM
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
0
Peter Filipov
Telerik team
answered on 11 Mar 2015, 08:10 AM
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.

 
0
chrisL
Top achievements
Rank 1
answered on 20 Mar 2015, 11:54 PM
A big +1 from me for this feature too. Thanks.
0
David
Top achievements
Rank 1
answered on 01 Apr 2015, 03:28 PM
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.
0
Peter Filipov
Telerik team
answered on 06 Apr 2015, 08:16 AM
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.

 
0
David
Top achievements
Rank 1
answered on 06 Apr 2015, 01:13 PM

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

 

0
Jer
Top achievements
Rank 1
answered on 17 Jun 2015, 03:59 PM

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

0
Jer
Top achievements
Rank 1
answered on 18 Jun 2015, 03:23 PM

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!

0
Peter Filipov
Telerik team
answered on 18 Jun 2015, 03:29 PM
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
0
Jer
Top achievements
Rank 1
answered on 18 Jun 2015, 04:19 PM

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?

0
Peter Filipov
Telerik team
answered on 23 Jun 2015, 12:14 PM
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
0
Dan
Top achievements
Rank 1
answered on 22 Jul 2015, 09:54 AM

Are their plans to provide auto page breaking?  

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

0
David
Top achievements
Rank 1
answered on 22 Jul 2015, 12:37 PM

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

 

0
Richard
Top achievements
Rank 1
Veteran
answered on 22 Jul 2015, 12:48 PM

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

0
Jer
Top achievements
Rank 1
answered on 22 Jul 2015, 01:59 PM
[quote]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

[/quote]

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.

0
Dan
Top achievements
Rank 1
answered on 22 Jul 2015, 02:35 PM

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

0
Ivan Danchev
Telerik team
answered on 27 Jul 2015, 07:25 AM
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
0
Dan
Top achievements
Rank 1
answered on 27 Jul 2015, 05:33 PM
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.
0
Ivan Danchev
Telerik team
answered on 30 Jul 2015, 09:58 AM
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
0
Han Zhao
Top achievements
Rank 1
answered on 10 Mar 2016, 01:48 AM
Hi Ivan! Is auto page break included in the latest release?
0
Ivan Danchev
Telerik team
answered on 10 Mar 2016, 02:36 PM
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.
0
michael
Top achievements
Rank 1
answered on 18 Jan 2018, 01:50 PM
Its now 2018. Any updated to this? Is there now an auto page break feature or must we switch to another company control like Aspose to get that sort of functionality? Would love to stick with Telerik but need that feature.
0
Rumen
Telerik team
answered on 19 Jan 2018, 10:43 AM
Hello Michael,

I am afraid that the requested functionality is still not offered built-in by the ClientExportManager, but let me propose a solution based on the Kendo Drawing API and this article Multi-Page PDF Output. Here it is https://dojo.telerik.com/ayeRE/3.

Another approach is to use this advice https://www.telerik.com/forums/export-to-pdf-(page-break)#15bzvOjgc0qGzq1XGGxgcg and https://stackoverflow.com/questions/27142775/divide-one-html-page-into-multiple-pages-of-a4.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ClientExportManager
Asked by
Richard
Top achievements
Rank 1
Veteran
Answers by
Jer
Top achievements
Rank 1
Peter Filipov
Telerik team
Richard
Top achievements
Rank 1
Veteran
chrisL
Top achievements
Rank 1
David
Top achievements
Rank 1
Dan
Top achievements
Rank 1
Ivan Danchev
Telerik team
Han Zhao
Top achievements
Rank 1
michael
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or