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

PDFViewer Print Not Working Correctly

4 Answers 138 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 09 Jun 2016, 07:49 PM

Hello,

 

We're having some issues with the Telerik RadPDFViewer not printing correctly. When we were on the UI for WPF version 2016.1.112 the print worked fine. Now that we are on the new version 2016.2.503 the print isn't working as intended. 

 

The problem is if you have a multi page PDF in the PDFViewer and try and print it.

The PDF is converted to a byte array (to save to the database), then made into a MemoryStream, and then is passed to the PDFViewer. When you run the PDFViewer.Print() function it will send the PDF to the printer, but data only actually is printed on the first page and the following pages are just blank pages. The printer spits out the correct number of pages that are in the PDF but the first page is the only one that actually has something on it.

 

The reason we take the PDF and convert it to a byte array is because it's saved to the database for record and display later. This allows a user can come back later on and load the PDF that was saved to the database. It's loaded in from the database into a MemoryStream then to the PDFViewer.

 

I can provide a sample project that demonstrates the issue we are experiencing and how we are converting everything around. I would attach it but it wouldn't let me.

 

Telerik UI for WPF version: 2016.2.503 - May 03,2016

.Net Framework version: 4.0

 

Thanks in advance,

Kevin

4 Answers, 1 is accepted

Sort by
0
Justin
Top achievements
Rank 1
answered on 09 Jun 2016, 09:49 PM
We've run into the same issue.  This issue can also be replicated in the First Look sdk example for the PDF Viewer, if you load the document and the print it some pages will be printed blank.
0
Vladimir
Top achievements
Rank 1
answered on 10 Jun 2016, 05:43 AM
Same issue here, but according to release notes for internal builds it should be fixed in 2016.2.516. So we're eagerly waiting for the next release.
0
Tanya
Telerik team
answered on 10 Jun 2016, 11:09 AM
Hi all,

Yes, there is an issue with the printing functionality of RadPdfViewer in the official 2016.2 503 version. As Vitalij already pointed out, the issue is fixed and included in out latest internal builds so you could download and test the fix. Our next official release is expected to be out in the next week as well.

@Kevin, the public forums allow you attaching only images. In case you would like to share a sample project to demonstrate particular scenario, you could submit a ticket through our support system where you can attach archives.

Hope this information is helpful.

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Kevin
Top achievements
Rank 1
answered on 10 Jun 2016, 01:35 PM

Tanya,

Thank you for getting back to me about this issue quickly. I'm happy to hear that the issue has been fixed and will be released soon. Also thanks for letting me know about the attachment and why I couldn't attach an archive, that is good to know.

Looking forward to that official release in the next week!

 

Thanks,

Kevin

Tags
PDFViewer
Asked by
Kevin
Top achievements
Rank 1
Answers by
Justin
Top achievements
Rank 1
Vladimir
Top achievements
Rank 1
Tanya
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or