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

Getting print of Exported PDF is not working

3 Answers 408 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Varinder
Top achievements
Rank 1
Iron
Varinder asked on 13 Aug 2020, 05:43 PM

Hi Team,

We are facing issue with exported PDF.

We are not able to get print out from the exported PDF file.

When we try to get print out then only small portion from the pdf is printed on single page.

Please help us how we can take print out from exported PDF.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 17 Aug 2020, 12:52 PM

Hello Varinder,

Are you experiencing issues with exporting to PDF or printing the already exported PDF file? 

If the issue is related to exporting the PDF file can you provide additional details? Can you modify this sample so the issue is reproduced?

If the issue is related to the printing of the already exported PDF file, note that when exporting to PDF, the document size might be larder than the default A4 paper size, if that is the target paper size. To fit the whole exported document you can set the scale of the printer to the printable area or the page size, depending on your preferences.

Regards,
Aleksandar
Progress Telerik

0
Varinder
Top achievements
Rank 1
Iron
answered on 18 Aug 2020, 10:18 AM

Hi Aleksandar

Please tell me where I have to define document paper size while exporting to PDF.

Please share some piece of code.

Thanks!

0
Aleksandar
Telerik team
answered on 19 Aug 2020, 02:08 PM

Hi Varinder,

The Scheduler API provides a pdf configuration option that allows you to set the paperSize.

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  toolbar: ["pdf"],
  pdf: {
    paperSize: "A4"
  },
  date: new Date("2013/6/6"),
  dataSource: [
    {
      id: 1,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview"
    }
  ]
});
</script>

Regards,
Aleksandar
Progress Telerik

Tags
Scheduler
Asked by
Varinder
Top achievements
Rank 1
Iron
Answers by
Aleksandar
Telerik team
Varinder
Top achievements
Rank 1
Iron
Share this question
or