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

Can't display PDF Files scanned with XEROX printer

12 Answers 536 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 21 Nov 2014, 01:57 PM
Hello,

I have a problems when i try to display certain PDF files in my company. All I get is a blank page.

Those pdf files come mostly from a XEROX Printer.

Please see the attached file and try it out. Note that the file is a PDF Document, the File Extension .png is just a workaround the allowed extensions. You need to remove ".png" after downloading the file.

I tried it with the current WPF Q3 2014 release from October 27, 2014.

Kindly Regards

Joel

12 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 24 Nov 2014, 10:06 AM
Hello Joel,

Thank you for contacting us.

Having a more detailed view on the sent document I can see that it is using JBIG2Decode filter. This is a feature which was not supported in Q3 2014. However, we have managed to implement it and if you use the binaries from the latest internal build you will be able to open the PDF file successfully.

I hope this is helpful. If you have any other questions or concerns please do not hesitate to contact us again.

Regards,
Deyan
the Telerik team
 

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
Tim
Top achievements
Rank 1
answered on 24 Nov 2014, 10:11 AM
Hey Deyan,

Thank you very much.

Regards,
Joel
0
Georges
Top achievements
Rank 1
answered on 16 Dec 2014, 10:53 AM
  Hello,

I have a similar problem with file scanned with a canon scanner. (see attached file - to rename in .pdf).
I tried with the latest (1208) version of telerik but nothing is displaying.

Thanks in advance for your answer!

Best regards
0
Tim
Top achievements
Rank 1
answered on 18 Dec 2014, 11:54 AM
Hey Deyan,
I can confirm that our XEROX PDF Files are working now.
Thank you.
Joel
0
Deyan
Telerik team
answered on 18 Dec 2014, 02:00 PM
Hello Georges,

Thank you for contacting us.

The sent file is using JPXDecode filter which is currently not supported in RadPdfViewer. We have created a feedback item for this feature request. You may vote for it and follow its implementation progress by following this link to JPX Decoder feedback item in Telerik's feedback portal.

If you have other questions or concerns do not hesitate to contact us again.

Regards,
Deyan
the Telerik team
 

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
Georges
Top achievements
Rank 1
answered on 19 Dec 2014, 09:08 AM
hello Deyan,

Thanks for the reply. I just voted for it, hopefully it will get implement soon.

Best regards

Georges
0
fedrick
Top achievements
Rank 1
answered on 09 Feb 2015, 07:26 AM
A few days onwards, I too faced this kind of problem because of this thread I can get the solutions to my issue.

*Edited by admin. Post does not comply with the terms of use of Telerik forums.*
0
fedrick
Top achievements
Rank 1
answered on 09 Feb 2015, 07:28 AM
A few days onwards, I too faced this kind of problem because of this thread I can get the solutions to my issue.

*Edited by admin. Post does not comply with the terms of use of Telerik forums.*
0
Johan
Top achievements
Rank 1
answered on 24 Mar 2016, 01:33 PM
Hello,

[quote]We have created a feedback item for this feature request. You may vote for it and follow its implementation progress by following this link to JPX Decoder feedback item in Telerik's feedback portal.[/quote]

Has the JPX Decoder issue been resolved? Otherwise I am trying to display a message saying that the decoding in the PDF is unsupported, by hooking up to the pdfViewer.DocumentSource.OnException event, described in the documentation here. The problem is, for some strange reason, the method hooked up to the event does not fire unless the first line in the method contains 'throw new Exception("..."); in which case I still cannot handle the exception.

Why would that happen?
0
Deyan
Telerik team
answered on 29 Mar 2016, 05:52 AM
Hello Johan,

As you may see from Aylin Hyumet's comment in the feedback item we have created and SDK example showing how to create custom JpxDecoder. This implementation uses a third party library in order to get the pixels of a JPEG2000 image.

I hope this is helpful. If you have any other questions or concerns please do not hesitate to contact us again.

Regards,
Deyan
the Telerik team
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Johan
Top achievements
Rank 1
answered on 29 Mar 2016, 07:07 AM

Hello Deyan

Thanks for your quick reply - I have got hold of the developer focused example where the JpxDecoder is registered through the FiltersManager. I can see when I compile the developer example that the filter is added an loads the PDF, and that it hits the Decode method in the JpxDecoder when trying to load the pdf. However in my program, I can see it registering the filter, but it never goes into the JpxDecoder's decode method.

I have several instances of PDF Viewers on the screen - hidden in multiple tiles in the TileView Control, and I register the JpxDecoder for each of them. Am I doing something wrong?

Thanks,

Johan

0
Johan
Top achievements
Rank 1
answered on 29 Mar 2016, 09:57 AM

Hi Deyan

I have managed to solve the problem I had, it was because the FreeImage dll was not signed and my project required the DLL to be signed. After I managed to sign the dll, the JPX decoder worked.

Thanks for the assistance

Tags
PDFViewer
Asked by
Tim
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Tim
Top achievements
Rank 1
Georges
Top achievements
Rank 1
fedrick
Top achievements
Rank 1
Johan
Top achievements
Rank 1
Share this question
or